TV Remote Light Switch





Introduction: 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


IR Reciever


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.



  • Epilog Challenge 9

    Epilog Challenge 9
  • Gluten Free Challenge

    Gluten Free Challenge
  • First Time Author Contest 2018

    First Time Author Contest 2018

We have a be nice policy.
Please be positive and constructive.




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

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.

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.

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



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

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


Many thanks. I look foreword to trying this.