Introduction: TV Remote Light Switch

Picture of TV Remote Light Switch

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

Picture of What You Need

Arduino

IR Reciever

Relay

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

Step 2: Wiring Schematic

Picture of 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.

Comments

naman159 (author)2015-10-01

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

BoKKeR (author)2015-09-11

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

jaknieper23 (author)BoKKeR2015-09-12

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.

annaa.navi (author)2014-11-09

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.

itsSubhadeep (author)annaa.navi2014-11-18

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.

jmalik4 (author)annaa.navi2014-11-09

I want to try out that one. Can you please help me out with it.

thanks

rrm (author)2014-11-08

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

jaknieper23 (author)rrm2014-11-08

Thanks for letting me know. I will fix that right now

rrm (author)jaknieper232014-11-09

Many thanks. I look foreword to trying this.

Wired_Mist (author)2014-11-08

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!

jaknieper23 (author)Wired_Mist2014-11-09

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

ScottMurchison (author)2014-11-09

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.

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/

JimTheSoundman (author)2014-11-09

Very nice instructable but if you ever want to upgrade it, there are remote control extenders that will make it more stealthy.
http://www.amazon.com/Monoprice-5-Feet-Extender-Re...

Haha thats pretty cool. I never seen these before. Thanks for showing me that.

bremus (author)2014-11-09

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

jaknieper23 (author)bremus2014-11-09

Good Idea. This would work pretty nice. Thanks.

ZaneEricB (author)2014-11-06

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!

jaknieper23 (author)ZaneEricB2014-11-06

Thanks! I couldn't agree more.

seamster (author)2014-11-06

This is an excellent idea! It looks incredibly useful, and I love that you made it to use your basic tv remote. So clever.

About This Instructable

24,457views

304favorites

License:

Bio: I am an Electrical Engineering Student at SVSU and I have a coop at Dow Corning,
More by jaknieper23:Netflix Button! Arduino IR Controlling Xbox 360TV Remote Light Switch
Add instructable to: