This is a very simple IR light dimmer that you will wish to have sooner or later, especially those who are lazy enough to get up and turn off the lights. There are two versions of PCB for two sizes of capacitors, so PCBs are: 32.5 x 26.5mm and 28.5 x 27mm. You can download the project files at the bottom of this page by clicking on red "download" button.
Features of current beta version of firmware:
- Soft start (gradually turning on the light bulb) - Soft down (gradually turning off the light bulb) - Learning IR codes from RC5 and NEC remotes - Dimming in 10 levels by using only IR remote - Previous dimm-level remembering when operating with remote - Sleep timer in duration of 1.6min for 60Hz version and 2min for 50Hz version - ON/OFF control with wall pushbutton
Dimmer is connected to existing home wiring installation inside a junction box, which is usually located above the light switch. In order to properly connect the dimmer to installation one should follow the schematics provided for that purpose. If connected differently there is a very big chance of some freaky side effects such as burned PIC microcontroller, serious fire and who knows what else.
Learning remote control IR codes (programming procedure) After connecting dimmer to installation you must program the remote control buttons. Here is how to do that:
1. Hold the wall pushbutton for 11 sec so that dimmer can enter programming mode. After those 11 sec, LED will start to blink fast, and light will dimm to third (3.) level. Now you have 11 sec to complete the programming sequence: 2. Press the first button on your remote that will increase light level or turn on the light when it is turned off (ON/UP) 3. Press the second button on your remote that will be used to decrease the light level (DOWN) 4. Press the third button that will be used for activating/deactivating sleep mode (SLEEP) 5. Finally, press the fourth button that will be used to turn off light completely (OFF)
During programming, both the light bulb and LED will blink to confirm IR code reception. If your remote control does not have all 4 buttons that you can use, you can repeat previous button but that will cancel out some features. For example, if your remote has only two buttons (A and B), and if during programming you press: A A A B, that means that key A will be used for ON/UP function, and key B will be used to completely turn off the light. If you choose combination A B B B, it means that the key A will be again used for ON/UP function, and key B will be used to decrease light level (it will also turn the light off completely in 10 button presses - until zero level). Programming notice: If during programming, you notice that LED blinks even when you don't press any buttons on your remote control, it is probably because you used TSOP11xx instead of TSOP17xx receiver module. In that case, you will probably not be able to program your dimmer properly. If you are not satisfied with your choice of remote controller buttons, you can repeat the learning procedure as much as you like. If you are planning to use your TV's remote controller, you should probably choose those teletext buttons: red, green, yellow and blue to avoid, for example, switching channels when operating the dimmer.
Sleep timer Sleep timer can be activated by a bit longer wall-pushbutton press, more than 1.8 sec to be precise, or by pressing the appropriate button on the remote controller. Sleep timer cancellation is accomplished just like the activation. It is possible to increase/decrease the light level when sleep timer is active. Dimmer will automatically set the light level to six (6) when entering the sleep mode, but only if previous level was greater than 6.
Important notice: This device is connected to mains power line, so it requires a lot of respect. If you are not sure in what you are doing, you better leave the installation part to the experienced electrician.
Dimmer in operation:
Note: Dimmer works better with TIC206 rather than TIC216!
Hi GREAT PROJECT!!! I am working on a similar project for my own, and just cant make it work.
Could u explain a little more on how u trigger TIC206 (setting 5v or 0v on the pic???) and why
this value of resistor 820ohms for the gate?
Was a disipator need it for the TIC206?
The way u this components maybe could help me on my problem. THANKS IN ADVANCE IP: 186.122.120.251
Imam samo jos dva pitanja i necu vise: :)
1. Da li se moze povecati broj koraka na 15 nekako, u hex-u ili nesto, i da li moze da se
napravi da dugim drzanjem ide recimo sekundu po sekundu korak po korak vise ili manje
osvetljenja?
2. Koliko W moze da isporuci TIC? IP: n/a
trax, replaces R2 with 330R +390 st in this series and work as normal, may have a problem? 470R
can put in place, or better, and keep it that way, another thing he can control a fan? IP: 201.68.253.9
@ebicempre: i can't see that image. R1 and C1 should be close to those values noted in
schematics. you have to experiment! maybe you didn't program your PIC correctly? WDT=off,
PWRTE=on, INTOSC_NOCLKOUT=on, MCLR=off... maybe your soldering is wrong? put some pictures of
dimmer so we can see it. IP: n/a
trax thanks for the response, which values can subistitui R1, C1, R2, about the oscillation,
I'm not using the dimmer bulb flourecente for, say, when he is near a place that has it
oscillates Fluorescent tube too, I can use it to control fan or even lamps are common, thank
you for helping me, otherwise I can use this scheme here to do a test that turns the problem of
oscillation, so I will use part of the scheme's power circuit, the rest as in normal his
scheme.
http://www.rlocman.ru/i/Image/2007/11/02 IP: 201.68.253.9
Evo, stigli delovi, medju njima i TSOP 31236 i sada radi kako treba... A onaj SFH sto pise u
dokumentaciji da moze, ne moze :)
Hvala trax i ostalima na pomoci, hvala puno.
pozdrav, Damir :) IP: n/a
@ebicempre; you can NOT use fluorescent lights with this dimmer! you can use only normal
incandescent light bulbs! it seams that the dimmer doesn't have enough power, so that is why
you see flickering on maximum power. try experimenting with the resistor value on GATE of
triac, and also experiment with values of R1 and C1 ! IP: n/a
trax, please help me, as I said before, I made two designs go a dimmer worked normal when I
turn the other until it reaches the maximum rate that the bulb still be sending control signal
oscillates the bulb, I realized that if you leave the LED off this does not occur, what can be,
I'm using a TIAC206M if can help me thank you, I noticed also that bind him in a place that has
a lamp ballasts flourecente he is wavering endlessly, has some kind of filter that I use or
mount if possible also if you have any s IP: 201.27.202.191
trax, I'm using a tic 206m ran normal the other is this happening, this turned into 110v 60hz,
if you leave without the LED works normal but the time that he led the league and then
oscillates to have any solution? IP: 201.43.195.178
@ebicempre: You must use the exact same TRIAC as in the schematics: TIC206. Also, I think that
in Brazil you have 220V/60Hz system, so use 220V schematics and 60Hz HEX file! IP: n/a