Remote controlled LED lighting effects

LED’s have become most important component in lighting industry due to its miniature size and less power consumption. Also LED lights are lot more attractive than the primitive lights used once. This project focused on building an remote controlled LED with multiple lighting effects. Imagine setting the mood of your room using remote, will be cool isn’t it.Remote controlled LED lighting effects

DESIGN OF RECEIVER AND CONTROLLER:

The receiver and Controller part comes with TSOP1738, a receiver capable of receiving IR beam of 38Khz which is the operating frequency of a normal household remote. This receiver acts as an activator for the controller connected to it. PIC12F1822, a 8 pin low end microcontroller is deployed as a controller in this project. Other low end microcontrollers can also be used for this purpose.

The Microcontroller cannot produce enough current to drive a large set of transistors. So we are using a Transistors as a driver element in this circuit, RA2 pin from the controller feeds the signal to the base of these transistors. The reason for using two individual transistors is to create attractive effect when driven by a pulse from the Microcontroller. When the Pulse from MCU is Logic 1 Q1 will activate the LED’s connected to it, when it was logic 0 Q2 will activate all the LED’s connected to it.

TSOP 1738:

TSOP1738 is a simple IR receiver capable of receiving IR pulses of frequency 38Khz. The output of this component is active low which means that this component gives low output when IR beam is incident on it and high output in the absence of IR beam. Refer the “Datasheet” for more information about this component.

METHODS TO IMPLEMENT MULTIPLE EFFECTS IN LED LIGHTS:

We are going to add effects using two methods in this project. You can choose the method you find it comfortable to use.

1) USING INBUILT PWM:

This is a pretty old trick in sleeves of every designer when comes to controlling. The PIC12F1822 has an inbuilt PWM module using which we are going to control the illumination of led.Remote controlled LED lighting effects schematich

CODE:

  1. #include <main.h>
  2. #bit TRIS_PIN1=0x8C.0
  3. #bit PIN1=0x0C.0
  4. void main()
  5. {
  6. int16 i=0;
  7. TRIS_PIN1=1;
  8. setup_timer_2(T2_DIV_BY_16,255,1); //819 us overflow, 819 us interrupt
  9. setup_ccp1(CCP_PWM|CCP_SHUTDOWN_AC_L|CCP_SHUTDOWN_BD_L);
  10. while(TRUE)
  11. {
  12. set_pwm1_duty(i);
  13. if((PIN1==0)&&(i<=600))
  14. {
  15. i=i+100;
  16. }
  17. else if((PIN1==0)&&(i>600))
  18. i=100;
  19. }
  20. }

 

 

For more detail: Remote controlled LED lighting effects

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter