TV Remote Light Switch

24,742

304

21

Introduction: TV Remote Light Switch

About: I am an Electrical Engineering Student at SVSU and I have a coop at Dow Corning,

I wanted to have the ability to turn my lights and fan on and off with my TV remote. I like this much better than a smartphone enabled light switch because it's much cheaper, and more convenient. Instead of unlocking my phone, going to the app, letting it load, and then turning the lights off, I can just point the remote at the switch and turn the lights and fan on and off with the press of a button.

Step 1: What You Need

Arduino

IR Reciever

Relay

Buttons ( I started with push button and upgraded to capacitive touch)

Step 2: Wiring Schematic

The actual wiring looks very messy so I made a drawing of the schematic. If you use push buttons, the wiring will be slightly different

Step 3: Code

Below is the code I used to make the Arduino work. I am not a very good programmer so I am sure it is just barely working and I apologize for the sloppy coding. A big thing to realize is that if you just copy and paste it, it will not work. You need an IRlibrary. If you google it, you will be able to figure it out.

Step 4: Finishing the Build

Once the arduino is wired like the schematic shows, remove the light switches. Remember to turn off electricity in the room you are working in. The leads that went into the light switch now go into your relay. In theory, you should be able to draw power required for the arduino from the same wire going to the lights, but I didn't want to risk messing it up so I drew power from a nearby outlet. For the final result, I swapped out the push buttons with capacitive touch buttons with tin foil on them for extra working area. I also made a box from leftover laminate flooring. I hope you enjoyed this project. I absolutely love using it and hope you will too.

Share

    Recommendations

    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    21 Discussions

    Could uu leasemake a more clear schematic diagram I'm not able to understand or pls make a video on attaching them

    Hey I took apart the light in my room we have a light which have 2 switches at each side of the room and it only does what the last did, after opening I found 3 Cables connected with 3 small switches I am not sure which one is which if you need a picture I can send you as I am not sure how to connect it to the arduino switch

    1 reply

    I think I get what you are saying, but if I am wrong then a picture would help. Your room has "3 way light switch wiring" so your light switch has 3 screws in it instead of 2 like most light switches. So yes, it will be different wiring for sure. You might be lucky and be able to hook it up without any problems because the relay has 3 terminals also... but without doing it myself I wouldn't feel confident in saying exactly how to wire it, so I would just recommend researching 3 way light switch wiring to see how to wire it up.

    I did make a more simple version:

    I used an Dimmer with Infrared Receiver built in already and connected it to a 5 Way Power Outlet.
    The dimmer was able to have two modes programmed: Dimmer or ON/OFF function.
    So, in my case i programmed the dimmer to use ON/OFF only.
    My dimmer was without any remote because it is programmable to an existing remote.

    That way i assigned one of my unused buttons on the universal remote and can control whatever i plugin to the outlet.

    No need to have an Arduino or any other small computer running.
    But if you plan to use Arduino for other things too, then you should go for a build like this, then you can control it from internet or an app too, if you feel like it.
    What i have seen, it is not troublesome to create an own app with free software that can be found, just search for "app creator".
    But be careful what you download, it is alot of shit online, so read about the software online in forums before.

    3 replies

    Can you show me the schematic of the dimmer?? Is the dimmer working for both resistive load & inductive load??

    So, what you're saying, on a website solely devoted to do-it-yourself projects, is that you bought a pre-made product designed to do exactly this.

    The link to "Remote Code.dosx" does not work. It returns a '403' error.

    https://www.instructables.com/files/orig/FFT/W3XW/I236XSD3/FFTW3XWI236XSD3.docx

    2 replies

    I thought about doing something like this before, Try fitting the relay In the Electrical housing in the wall, power it with a 5v USB wall charger; you should still have room for the rest. you could finish it with a blank wall plate. You could hide the capacitive sensors under it for a really sharp finish. I hope it works well for you :) Good job, got my vote, love to see more!

    1 reply

    Thanks for voting for me! I totally agree, that would look nice. If I get some time I will probably do that and update this page. Thanks again for the suggestion

    I like it, but it would never pass electrical code here in Ontario Canada. However, I have been collecting the parts to make something similar. In my case, the stand beneath my TV holds my DVD player and TV box. I find it too dark there, especially when I want to load a DVD. I have a LED strip that I want to mount above the DVD player and I will use one of the TV remote buttons to control it. I just need to figure out how to decipher the code for the button I choose so that I can test for it. I may just post my first indestructible project about it when I'm done.

    1 reply

    Thats a pretty good idea. The code I put in this instructable should help out a little bit for you. Also there are lots of resources if you search for "IR Reciever Arduino". Here is a link to another instructable that will help you out https://www.instructables.com/id/Arduino-Infrared-Remote-tutorial/

    So if you're going to modify your home eletrical, you could always buy these and splice them into your home wiring.

    http://www.amazon.com/Etekcity%C2%AE-Wireless-Control-Battery-included/dp/B00DQ2KGNK/ref=sr_1_6?ie=UTF8&qid=1415546703&sr=8-6&keywords=remote+light+switch

    1 reply

    Makes you wonder why this isnt a fixture readily available in places like Home Depot/Lowes. I know they sell the remotes for this...but why not just integrate it into the remote you already have.... god knows there are a bunch of useless buttons already.... Great Job!

    1 reply