TV Kill Switch , Arduino Tv-B-Gone!!

About: thank you sunshiine for supporting me : ) i am mahmoud , i live in Egypt , i like to inventing new things form junk and old toys and

So, What is this thing?! and What does it do?!
TV-B-Gone is a universal remote control , that turns off or shuts down most TVs , it has a lot of TV shut down codes , so it transmits these codes through the IR Led , and it can take up to 2 minutes to find the right code for your TV , the TV-B-Gone Arduino library has two lists of shut down codes , US for American TVs and EU for European TVs , and there is a switch to toggle between them , so lets get started :D


All rights reserved to Ken Shirriff's blog

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Let's Gear UP! :D

We will need the following components to get this remote up and running.

-Arduino *Duh*
-Small Breadboard.
-IR Led.
-Normal Led.
-Push Button.
-Toggle Switch.
-Jumper Wires.
-10kohms Resistor.
-power source to power up the arduino like 9v battery or power bank.

Step 2: Wiring.

Now, just connect the jumper cables and the rest of the components like shown on the schematics.
But make sure that the IR led placed correctly out side of the Arduino so it can transmit clear IR signals to the tv.
The led is for making sure that the tv-b-gone is working and transmitting IR signals.
The push button is used as a trigger to transmit the IR signals.
The toggle switch is used to switch between US and EU TV Codes.

Step 3: Programming Your Arduino!

Now connect your Arduino to your computer or laptop , download This Libraryand add it to your Arduino IDE by following these pictures , then open the sketch , upload it to your Arduino and start shutting down some TVs :D!!

If there is compiling error just use old Arduino IDE version (Arduino 1.0.6 1.5.2).

Step 4: Questions&Answers!

So, How does it works?!
When you push the trigger button the IR Led starts to transmit various Codes to shut down the TV, there are 2 list of codes that you switch between them by toggling the toggle switch, the (Default) US codes for the US TVs and the EU codes for the EU TVs.
What should you do if it isn't working?!
If the TV didn't turn off , toggle the toggle switch to use EU list of Codes and check if your IR Led working by pointing your mobile's camera to it because mobile's camera doesn't have IR filter so it can by captured by the camera.


Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    6 Discussions


    3 years ago

    I used Arduino 1.0.6 IDE and opened all the three tabs namely WORLDcodes.cpp ,main.h ,TVB.pde when i compile it gives this error :

    Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"

    TVB\WORLDcodes.cpp.o:( multiple definition of `NApowerCodes'

    WORLDcodes.cpp.o:( first defined here

    TVB\WORLDcodes.cpp.o:( multiple definition of `EUpowerCodes'

    WORLDcodes.cpp.o:( first defined here

    TVB\WORLDcodes.cpp.o:(.data.num_NAcodes+0x0): multiple definition of `num_NAcodes'

    WORLDcodes.cpp.o:(.data.num_NAcodes+0x0): first defined here

    TVB\WORLDcodes.cpp.o:(.data.num_EUcodes+0x0): multiple definition of `num_EUcodes'

    WORLDcodes.cpp.o:(.bss.num_EUcodes+0x0): first defined here

    Please help


    3 years ago

    hey I had error in compiling this

    TVB:78: error: variable 'NApowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    TVB:79: error: variable 'EUpowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    variable 'NApowerCodes' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

    This report would have more information with

    "Show verbose output during compilation"

    enabled in File > Preferences.

    can you help me


    4 years ago

    Ok sounds good, can't wait to try it!


    4 years ago

    This is awesome, I am going to try it tomorrow, it is usually fast or does every TV take 2 minutes?

    I tried looking for a Arduino TV-B gone a while ago and I could not find one, so thanks so much!

    1 reply