Wireless controlled lightdimmer using PIC12F629

The meaning from this design is to build it in -i.e. a shaded lamp- and to switch this lamp on and off the normal way, just like it was switched before the dimmer was build in, then you could by exception dimming the lamp more or less with your TV remote control.
When you switch the power on there will follow a soft-start till the lamp burns at the previously adjusted dim level.
With the β€˜0’ button in TV mode you can dim the lamp, turn more and less bright.


The remote control should send more then one RC5-signal per button-press seeing that the first one is ignored, this does imply that when the remote button is pressed a short time, there nothing happens.
With the P+ and P- button from a system at choice you can adjust the maximum and minimum dim-levels and with the β€˜1’ button the start-up brightness.
The next time when the 230V power is switched on the lamp starts up at the adjusted dim-level.

(Re)adjust the dim-levels:
(only necessary when changing the maximum-, minimum- or start-up- level)
First you should select an unused system on your remote control, i.e. SAT, AMP, VCR2 or DCC mode.

Adjust maximum level: Keep, while switching the power on, the P+ button from the remote control pressed and wait until the lamp burns on desired maximum level.

Adjust minimum level: Keep, while switching the power on, the P- button from the remote control pressed and wait until the lamp burns on desired minimum level. Recommended is to adjust the minimum dim level not to β€œlamp off” level, because then it’s easy to forget to switch the power off and use unnecessary power.

Adjust start-up level: Keep, while switching the power on, the β€˜0’ button from your remote control pressed and wait until the lamp burns on desired level.

Re-adjust the default values (reset): Keep, while switching the power on, the MUTE button from the remote control pressed.

During adjusting the dim-levels, the dim-level changes slower then normal to make adjusting easier.
When letting the button loose and the adjustment is ok, the red- en green LED blinks for a while.
With the -for the dimmer reserved- system selected on the remote control, the P+ (dim-level up) / P- (dim-level down) and button β€˜0’ (up/down turn by turn) works too.
Button β€˜1’ dims directly to the adjusted start-up level.
Which system on the remote control is choosen doesn’t matter, the β€˜0’ button works always in the TV-mode too.

Above described applies to the here downloadable .BAS and .HEX examples, but you can ofcourse modify it to your own wishes.
Keep in mind that a remote control does not always send that what you expected.
The volume from TV, SAT, VCR1 and VCR2 are all the same.
Just as the volumegroup from TAPE, TUNER, CD, etc.
And the β€˜0’-β€˜9’ buttons from system TAPE for example send nothing at all.

See the lists: RC5 system codes and RC5 command codes

For more detail: Wireless controlled lightdimmer using PIC12F629


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.