/Projects/IR light dimmer v1

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.

dimmer2

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.

dimmer1

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!

Author (sent by): Trax

Download counter: 52,736

Rating: (2.98, votes 6893)

Vote:

Date: 07-02-2009

Lokalna verzija ove stranice: IR dimmer svjetla v1

617_ir_light_dimmer_v1.zip

Bookmark and Share Comments (386)

Buy original and new electronic components, go to Allchips electronic components supply chain

comment [366]

Napajanje mi je eksterno tj. iz 12V switch trafoa (1A). Ploca je komleksna, na njoj su 4 IR prekidaca i 2 IR dimera, svi vezani na JEDAN TSOP. Sve radi ok osim dimera. Ti si mi savetovao da probam da stavim mali trafo 220v/12v I sekundar vezem izmedju mase I pina br. 5 na PICu,zbog detekcije nule. Probao sam ali isto radi. Mozda da smanjim 1Mohm otpornik, ali koliko? A evo i slika.
IP: n/a

comment [365]

Shema je tvoja, nisam nista menjao osim niskostrujnog napajanja. IR dimmer je sa 12F629 i BT138, naravno dodao sam i MOC 3023 zbog izbora triaca.On-off sa tasterom je ok, osim sto nema soft-starta. Pri pojacavanju sa daljinskim, prvi stisak ide na 10\% uz prethodni kratki bljesak na 100\% i dalje ne ide. Kad krenem unazad, prvi stisak ode na oko 60-70\%, dalje na dole obara za po jedan stepen do gasenja.
IP: n/a

comment [364]

Mozes li ti postaviti na forum svoju shemu, odnosno to sto si do sada napravi? Jedino tako ti mogu pomoci, ovako samo nagadjam sta si i kako spojio :)
IP: n/a

comment [363]

Zdravo trax. Ako se secas mog problema, eksterno switch napajanje za dimer, nema detekcije nule pa dimer brljavi. Predlozio si mi da probam da dodam mali trafo izmedju minusa i pina za detekciju nule. Probao, trafo je 12V, ne radi, i dalje brlja,nema soft-starta itd. Mozda da smanjim otpornik 1M, ali koliko? Ili imas neko drugo resenje? Pozdrav.
IP: n/a

comment [362]

Hi again! i'm currently about to change the Pic-flash and would ask some general questions: which purpose does the 1Meg-Resistor have? could i use this Port for a Second switch? why is Pin4 /GP3-MCLR not connected? could this port be used generally for a switch? i changed already the schematic to fit in in an old Bus-based-switch (this one: http://www.jung.de/en/online-catalogue/63908786/ )and want to use this switch with "up" and "down" keys. i'll send you all (schematics, source and pictures wh
IP: 93.132.237.173

comment [361]

I used his schematics, modified them by my own, so i could made it with the smd-PIC. and on his website were no files for download (firmware) so i used yours :P and - well - i found his schematic first and made it compatible... so how could i modify your firmware for my wall switch? if you want, i could send you my layout and parts list, i already mounted it and it works great.
IP: 93.132.251.212

comment [360]

Why would you use his schematics and my firmware??? It is not meant to be compatible.
IP: n/a

comment [359]

Hi! I mounted the Ir Light Dimmer v.1 smd from http://www.ivica-novakovic.from.hr/Lightdimmer-eng.htm used your hex file as firmware. how to modify the wall pushbutton funktion ?? i want it to be short pressed for ON/OFF Trigger and long pressed for dimmer up or down, and if pressed for two cycles to get Programming mode...
IP: 95.115.22.179

comment [358]

It is somebody there which tested the IR light dimmer v1 for 220V/50Hz For me the hex file not works Please help
IP: 109.64.121.100

comment [357]

You can download schematics by clicking on the RED DOWNLOAD button just above these comments...
IP: n/a


Comment page: <12345678...>


add comment

name

e-mail (will not be published)

website

How much is = also add letter "a" at the end of your result! Eg.: 7a

Please log-in!

You can log-in on forum link: Login page. After logging-in, return to this page and click refresh in your browser.

site friends

sponsored links

ads