Dimming the living room lights using your TV remote

As part of a complete home theater setup [Andy] wanted to be able to control the lights from his couch. He started thinking about the best way to do this when he realized that his TV remote has buttons on it which he never uses. Those controls are meant for other components made by the same manufacturer as the TV. Since he doesn’t have that equipment on hand, he built his own IR receiver to switch the lights with those unused buttons.

He monitors and IR receiver using an AVR microcontroller. It is powered from mains via the guts from a wall wart included in the build. Also rolled into the project is a solid state relay capable of switching the mains feed to the light circuit. [Andy] mentions that going with a solid state part mean you don’t get that clicking associated with a mechanical relay. An electrical box extension was used to give him more room for mounting the IR receiver and housing his DIY circuit board.


  1. MrX says:

    Be careful with which solid state relays you chose. Some of them work in series with the circuit you are trying to relay – meaning that even when the relay is off, there is a small current leaking through the circuit. While this is fine with incandescent lamps, it won’t play nice with electronic/fluorescent ones.

  2. snx says:

    I’m trying to get something similiar done, but I’ve come upon one problem.
    How to get relay and normal light switch to be interoperable? When it’s connected in series, you must first switch on the light using the normal switch, then switch it on (or off) by remote. When it’s conected in parallel, you can’t switch off the lights using wall switch if you used the relay to switch it on earlier.
    Is the only way is to ditch the normal contact switches and just cram the relay and the remote controllable circuit in the wall and install momentary switch in there too?

  3. n0lkk says:

    Nice work. I had to grin at the thought that where there will be some that will read Andy’s page and read the word arduino, and go; “where’s the arduino, can’t see it”. They would likely move on not considering duplicating it, because there aren’t enough construction details, not like it would be difffult figure out how it was dome to make on yourself. Like how made in New Zealand was incorporated in the box extension. While I don’t believe these the home built items are inherently dangerous, but the use of unapproved devices could set up a situation that an insurance company could try to deny a claim in the event of a loss due to fire.

  4. Haku says:

    I’ve got my 10 meters of LED strips in this room controlled by remote, normally run it all at 50% brightness because it’s enough light and it keeps the LEDs cool for a longer life, but allows max brightness if I need it.
    I bought a pile of old Maxell iPod remotes from a 99p store for their parts http://i5.ebayimg.com/08/i/001/32/95/858d_35.JPG and found the receiver module outputs a serial signal which I read in with a Picaxe microcontroller. Works a treat.

  5. David says:

    An easier way to do this would be to use the IR receiver to drive an X10 transmitter. Then you could use X10 wall switches.

  6. Hitek146 says:

    In response to the question on the linked page regarding more than two switches, it would seem like the easiest way would be to add DPDT switches wired with the outside poles crossed, placed in series with the two parallel lines in the diagram between the two SPDT switches…

  7. wowme@wtf.com says:

    Now, if only he would move a toilet and a fridge into his THEATER, he could avoid actual body motion all together. LAZY

    • Trav says:

      That sounds rather negative. I could see letting people get settled in to watch a movie, then turning down the lights as the movie starts like in an actual theater instead of turning off the lights and then stumbling over things/others to get your seat. Just because one wants to use a remote doesn’t necessarily demonstrate laziness, but sometimes just a better way of doing something.

    • Velli says:

      Hack together a catheter from an old juice box! Use a peristaltic pump and a manifold to drive multi-can spray-cheeze delivery. I think you might be on to something!

      Oh, you were being sarcastic? I’m sure you chase down your own meat and kill it with your bare hands. Technology. We use it.

  8. mikemac says:

    The title seems a bit misleading as the article (and the use of a relay) mentions switching the light on and off. There’s nothing about “dimming” the lights in the article. The code doesn’t do any PWM type of thing either.

  9. NoSpam says:

    Lame…Just buy the Leviton Decora electronic pwm dimmer with IR remote…then code the tv programmable remote to turn on/off the lights when the entertainment centre is powered on/off…I did that 10 years ago and it cost $30

  10. Arokia says:

    Hai i am facing one problem in your way how can i use the tv remote to control
    my robot ?andhow to access it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 96,357 other followers