A while ago I posted my $3.50 DIY TV-B-Gone Micro, which was great and all but didn't have near enough juice. The TV-B-Gone SHP is supposed to be able to turn of TVs from 100 meters away, but cost $50. So for about $5, I made a clone of one that seems to work pretty close to that limit. It's also very tiny compared to the commercial one.

Technically, because TV-B-Gone is a brand name, this is a "TV-B-Gone clone."

I used an ATtiny 85v as the "brains" of this, programmed with Adafruit's original code. It runs off of a 9v battery with a 5v regulator to power the microcontroller. The the LED array has 12 infrared LEDs in it, and the microcontroller is connected to a transistor that can power the whole array. The 12 LEDs blast out almost every TV on-off code, allowing you to turn pretty much any TV on or off. A 3mm green LED blinks between each code to show that it's working. When the battery is removed it is significantly smaller than the original TV-B-Gone, allowing for easy hiding.

Also, I'm entering in the microcontroller contest. If you think I'm worthy enough, give me a vote!

Step 1: Materials


Each name is a link to a Mouser part you can click (you don't have to use Mouser, I just like them because of great service and how close to my house they are). You could also use an IC socket if you want to be extra careful with your chip or think you might reprogram it in the future.

  • AVR programmer (I used a USBtinyISP, a good, cheap programmer made from a kit)
  • Computer with internet access; I predict you are using one right now :-)
  • Soldering iron with solder
  • Helping hands tools, very, VERY helpful (probably required for this project)
Now let's start making!

Step 2: Prep for Programming

If you have a programming board, you can skip this step. If you are using a USBtinyISP or similar, use a breadboard to wire the chip to the proper connections of the programmer. More instructions on how to do this can be found here. The pinout for the chip can be found on the datasheet here.

Step 3: Program the Chip Part 1: Fuses

"Fuses" are a very small part of the microcontroller's memory that tell it how to operate, such as which oscillator to use, enabling the reset pin, and so on. Will will need to change the fuses to run off of an external oscillator. I used http://www.engbedded.com/fusecalc, which is a free AVR fuse calculator. You don't need to use the calculator because I listed the commands here.

I use AVRdude to interface between the programmer and my computer. A tutorial on how to use AVRdude can be found here.

Now type:

Avrdude -c usbtiny -p attiny85 -U lfuse:w:0xfe:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

Proceed to the next step for programming the real code!

Step 4: Program the Chip Part 2: Code

The first thing you will want to do is connect the oscillator on the breadboard. Because it is now set to run with one, it has to have one to be programmed with one.

Download the firmware v1.1 from Ladyada.net at http://ladyada.net/media/tvbgone/tvbgone11.zip. This is for their kit, but I used it to program this and it worked. Unzip the folder and find the tvbgone.hex file. Copy this and put in C:\users\username where AVRdude can find it. Now, in AVRdude, type...

avrdude -c usbtiny -p attiny85 -U flash:w:tvbgone.hex

...and wait for it to put the code on the chip. Now let's get building!

Step 5: Begin Construction!

This first step is simple enough. Bend pins 1 and 8 around so that they nearly touch, and solder them together. These are Vcc and RESET, which will both be connected to the button.

Step 6: Add the Voltage Regulator

Find the voltage regulator in your pile of parts. Lie the flat part along the corner of the chip and bend the middle pin underneath it as shown in the pictures. Bend pin 1 so that it meets the two pins you soldered together in the previous step. Solder this connection, and then solder the middle pin of the voltage regulator to pin 4 of the microcontroller, which is ground.

Step 7: Add the Capacitor

The capacitor smooths out any peaks or lows in electrical current caused by the LEDs' rapid pulsing. Position it under the microcontroller so that its leads face the regulator side. bend the positive lead up and solder it to the 5v side (pin 1) of the regulator. Solder the negative end to pin 4 of the microcontroller, where pin 2 of the voltage regulator was also soldered.

Step 8: Add the Resonator

Position the resonator under the capacitor with the leads facing the opposite way as the voltage regulator's leads. Bend its outer two pins inward and solder them pins 2 and 3 of the microcontroller (the two middle pins of that side). Bend the resonator's middle pin up and solder it to the lead extending from pin 4 (ground) of the microcontroller.

Step 9: Add the Transistor

The transistor allows a low-current pin of the microcontroller to control the high-current LED array. When current is delivered to the middle (base) pin, power flows from pin 3 (collector) to pin 1 (emitter) and ground the LED array to turn it on momentarily. Position the transistor at the same level as the voltage regulator, with the flat side facing outward and the leads facing down. Bend pin 1 (The emitter) and solder it to pin 8 of the microcontroller to ground it.

Step 10: Add a Resistor

This 150 ohm resistor connects the outputs of the microcontroller the transistor's base and limits the current flow from these pins. Bend pins 5 and 6 of the microcontroller together and solder them to one end of the resistor. Solder the other end to the middle (base) pin of the transistor.

Step 11: Make the LED "Triplets"

Find your LEDs in the diminishing pile of parts. Solder the 6 wide narrow beam LEDs into two groups of three (making sure to connect positive to negative) and repeat with the wide angle LEDs.

Step 12: Make the LED Array

Group the triplets together so that all of the negatives are on one side and the positives on the other. Bend them into a line on each side and solder them together. Cut off the last two pins when you are done; you should now have a 4 x 3 block of LEDs.

Step 13: Unite the Two Halves

Position the LED array in front of the other electronics with the positive side facing up and the negative side facing down. Bend down pin 3 (collector) of the transistor and solder it to the bottom negative row of the array.

Step 14: Add the Button

Find your button and fit it between the positive of the LED array and the voltage in pin of the voltage regulator. Solder these two connection points. When the button is pushed, it allows power to the voltage regulator and therefor the microcontroller.

Step 15: Add the LED

Bend the two pins of the LED outward. Fit it on top of the microcontroller and run the negative wire underneath the wire coming from pins 1 and 8. Solder it to pin 7 of the microcontroller.

Step 16: Add the LED's Resistor

This 150 ohm resistor limits current to the LED. Solder one end of it to the positive lead of the LED. Bend the other end around and solder it to the same cluster as pins 1 and 8 of the microcontroller. This is where it connects to positive power, and the microcontroller grounds it to turn it on.

Step 17: Add the 9v Battery Clip

Cut and strip the wires of your 9v battery clip. Solder the positive end of it to the top of the LED array. Solder the negative end of it to pin 4 of the microcontroller, the ground pin.

Step 18: Find a Fresh 9v Battery and Have Fun!

...but not too much fun. The ability to blast TVs on and off from a great distance should be used with care. I am not responsible for what you use this for.

Right now the connections are exposed and could short out. You might want to consider covering it with hot glue or sugru.

If you make one, please send pictures! If you have any questions or comments, post them and I'll do my best to answer them immediately. I like comments :-)

Also, I'm entering in the microcontroller contest. If you think I'm worthy enough, give me a vote!
<p>How many LED's could you connect to this? Would more LED's require a different ohm resistor etc? </p>
<p>I can&acute;t find the </p>ATtiny85V-10PU<p>which IC could I use instead?</p><p>Thanks :)</p>
<p>Just but ATtiny85. It can be 85V-10PU or 85-20PU or 85-20SUR or any version of ATtiny85.</p>
<p>is it possible to use a 555 instad of the attiny</p>
<p>I just checked it out. It is just impossible. 555 is not a mirco controller, it has no memory to store the program.</p>
<p>I am curious to know more about it. AtT Tiny is relatively expansive actually, if you compare with 555, and want to make various devices. I don'tknow so much about microcontrollers. Do you just replace the ATtiny, with no other hardware change ? As for software, do you just load the same program ? Otherwise, how do you change it ?<br>Thanks you in advance for whatever track of explanation.</p>
<p>Dark Sponge,</p><p>What could be used to increase the range on this? </p><p>thank you.</p>
<p>Dark Sponge,</p><p>What could be used to increase the range on this? </p><p>thank you.</p>
<p>Dark Sponge,</p><p>What could be used to increase the range on this? </p><p>thank you.</p>
<p>Dark Sponge,</p><p>What could be used to increase the range on this? </p><p>thank you.</p>
<p>Dark Sponge,</p><p>What could be used to increase the range on this? </p><p>thank you.</p>
<p>Dark Sponge,</p><p>What could be used to increase the range on this? </p><p>thank you.</p>
<p>I just made one! the hard part is finding/looking for those parts.</p>
<p>I havent made one yet. im also looking now for those parts :)</p>
<p>Only $5!!!</p><p>and $25 for the usbtinyisp</p>
<p>Around 5$ you can get the usbtinyisp and the parts are around 5$ together... you can get the usbtinyisp here: http://www.aliexpress.com/item/USBtinyISP-AVR-ISP-Programmer-For-Arduino-Bootloader-Meag2560-Uno-R3/1832671667.html?spm=2114.13010208.99999999.261.58PQB7</p>
<p>can i skip the oscillator</p><p>if i program the chip to 8 mhz clock</p><p>please answer sorry bad english</p>
<p>Well did you skip the oscillator? if so let us know. :)</p>
Sry I dont no much about electronics, but how can i get the avr programmer to the chip? Do i have to buy an extra tool for the 4 pin connector?
<p>will this work when programming the attiny?</p><p>https://www.instructables.com/id/Program-an-ATtiny-with-Arduino/</p>
Yes on my mega it worked
<p>how can i programm the ATTiny85 with Arduino? Is this the same command?</p>
<p>Yes you can load the ArduinoISP schetch on your uno/arduino,use avr dude -c ? to see all supported programmers: use &quot;arduino&quot;.</p><p>I could load attiny using ide and this schetch.</p><p>the source code is ncluded in the ide .</p>
<p>when you mean ide do you mean the aduino ide??</p>
Use the ide as the environment and am arduino uno as a programmer see arduin as isp
<p>Also with another attiny85 you can build an usbtinyisp.</p>
<p>can i use arduino to programm the ATTiny85?</p>
<p>Just a quick question: Do you have to hold down the push button or just click it once to make it go through all the codes? Thanks.</p>
<p>is it necessary to use 6x wide beam and 6x narrow beam IR leds as i cannot find it can i use 12x &quot;http://hacktronics.co.in/home/121-ir-receiver-transmitter-pair.html&quot; this IR led or what</p>
Okay... Thanks for the advice man :)
<p>Thanks, I did some modifications but it works great, I used 3xAA instead of a 9v battery so it lasts longer. </p>
<p>Hi, could i see the back of your board to see how u join it? Because, the schematics were a little confusing .. </p>
<p>I'm not at home atm so I can't take a picture. The only changes respect the circuit posted in this instructable are the way the LEDs are connected, in this case they're all in parallel, with a single resistor for all. I know each LED should have it's own resistor to spread the current evenly, but I was running out of space. Oh, yes, the transistor is a Darlington type, BD159.</p>
<p>Hey man, I'm fairly new to this website and also pretty new to embedded electronics or whatever you want to call it. Is there any way I can talk with you like in a PM or Skype or whatever? I kinda need some help starting up, like what I should buy and what not. Anyway, this message wasn't totally aimed on you, but rather to anyone on here that has some experience. But your comment is pretty recent compared to alot others and you seem to have a working on!</p><p>So yeah, I kinda would understand if you didn't want to help me out in your time, but I won't ask too much and it would totally be so awesome!</p>
<p>Also this sticky of the /ohm/ electronics general on 4chan might help you and other begginers out. </p><p>&gt;I'm new to electronics, where do I get started? <br><br>There <br> are several good books that are commonly recommended for beginners and <br>those wanting to learn more. There are also plenty of good Youtube <br>channels that teach about the basics as well as advanced concepts. The <br>best way to get involved in electronics is just to make stuff. Don't be <br>afraid to get your hands dirty. Take something apart or build something <br>you find cool on one of the many electronics websites.<br><br>&gt;What books are there? <br><br>Beginner:<br><br>Getting Started in Electronics by Forrest Mims III<br>Make: Electronics by Charles Platt<br>How to Diagnose and Fix Everything Electronic by Michael Jay Greier<br><br>Intermediate:<br><br>All New Electronics Self-Teaching Guide by Harry Kybett, Earl Boysen<br>Practical Electronics for Inventors by Paul Scherz and Simon Monk<br><br>Advanced:<br><br>The Art of Electronics by Paul Horowitz<br><br>&gt;What Youtube channels are there?<br><br>https://www.youtube.com/user/EEVblog<br>https://www.youtube.com/channel/UChturLXwYxwTOf_5krs0qvA<br>https://www.youtube.com/channel/UCosnWgi3eorc1klEQ8pIgJQ<br>https://www.youtube.com/channel/UChtY6O8Ahw2cz05PS2GhUbg<br>https://www.youtube.com/channel/UC1rxMIOt82ieNE19w15U5YQ<br><br>&gt;What websites feature electronics projects? Where can I get ideas for projects?<br><br>https://www.adafruit.com/<br>https://www.instructables.com/tag/type-id/category-technology/<br>http://makezine.com/category/electronics/<br><br>&gt;Where do I get components and lab equipment from?<br><br>http://www.jameco.com/<br>https://www.sparkfun.com/<br>http://www.ramseyelectronics.com/<br>http://www.allelectronics.com/<br>http://futurlec.com/<br>http://www.ladyada.net/library/procure/hobbyist.html<br>http://www.mouser.com<br>http://www.alliedelec.com<br>http://www.newark.com<br>And sometimes even just ebay.<br><br>&gt;What circuit sim software do you use?<br><br>This mostly comes down to personal preference. These are the most common ones though:<br><br>NI Multisim<br>LTSpice<br>CircuitLab<br>iCircuit for Macs<br><br>&gt;What software should I use to print circuits<br><br>Circuit Wizard<br>ExpressPCB<br>EAGLE</p>
<p>Check your inbox. </p>
<p>Hi! What's the firmware version you use?</p><p>thank U!</p>
<p>The schematic is it is exact, functional? mine don t work :( thanks you guys</p>
<p>You guys are among the highest ranks of genius that you can find on the internet to me, I know a bit of what you're talking about, but other than that, it's all just numbers and 1100010110 Illuminati type stuff! </p>
<p>Wow this is awesome, What will I need to make one?</p>
Connect the Arduino to the ATtiny as follows: <br>Arduino +5V ---&gt; ATtiny Pin 8 <br>Arduino Ground ---&gt; ATtiny Pin 4 <br>Arduino Pin 10 ---&gt; ATtiny Pin 1 <br>Arduino Pin 11 ---&gt; ATtiny Pin 5 <br>Arduino Pin 12 ---&gt; ATtiny Pin 6 <br>Arduino Pin 13 ---&gt; ATtiny Pin 7
Just wondering why there are so many LEDs. More LEDs = More power? More reliability?
If i were to change the ir LED assembly to say 5w 940nm High Power Infrared IR LED or 2, how might i need to change the circuit? if you do not have the spare time or if this is a complete rebuild i totally understand if you cannot do this. Thanks!
Still waiting for someone to make a version that uses a 10*10 array of IR LEDs. Or better yet, a TV-B-gone-clone IR LED cube. It could be done.
Hi is there a way to strip-board this because I don't like how fragile and ugly dead bug circuits are.
Personally, I think dead bug circuits are a beautiful form of art when done correctly. But if you insist, just look at the schematic I posted and you should be able to figure out a decent board layout. If you have any questions about specifics, feel free to ask.
Was wondering if I could buy a working one from someone, I don't have the hands to make this anymore.
I was wondering the same thing too :/
Is there any way I could buy a pre-made one of this DIY TV-B-Gone SHP, I'm really keen on this but I can't get my hands on a programmer so I can't make one myself. <br>And how much would it cost to ship to New Zealand if possible?

About This Instructable




Bio: Hi! I've loved electronics and electricity for as long as I can remember, and electric projects are something I do in my free time ... More »
More by dark sponge:DIY TV-B-Gone SHP (And Save $45) $3.50 DIY TV-B-Gone Micro $4 DIY TV-B-Gone 
Add instructable to: