Technically, because TV-B-Gone is a brand name, this is a "TV-B-Gone clone."
The TV-B-Gone is a neat little device that can turn almost any TV on or off. It uses a microcontroller hooked up to IR LEDs to output a library of on/off codes. Adafruit sells a kit, and has the code as well as the schematic on their website.
Here's a micro clone of the TV-B-Gone that runs on a coin cell battery, is slightly bigger than a quarter, and costs about $3.50 (compared to $20) to make!
Remove these ads by
Signing UpStep 1: Materials and Tools
Materials:
- Attiny85v microcontroller - $1.82
- CR2032 battery holder - $0.62
- 8MHz resonator - $0.50
- Wide-angle IR LED - $0.20
- Narrow-bean IR LED - $0.18
- NPN transistor - $0.10
- 150 ohm resistor - $0.05
- 22uf capacitor - $0.02
- Small pushbutton - $0.27 (note: this is slightly different than the one I used)
You will also need some 2032 batteries to power it. DON'T FORGET!
Tools:
- 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 helpful
TV-B-Gone micro.sch122 KB























































Visit Our Store »
Go Pro Today »




Just one question: would it work with an ATTINY85-20PU?
As for the code, you shouldn't have to modify it. I would recommend leaving the button in the way it is right now to save battery, but if you want to wire it for single press operation there should be a schematic on Adafruit's website. The microcontroller would be wired directly to power but the sense pin (pin 6 I think) would have the button between it and ground.
Version 1.1 has worked perfectly fine for me and I've never found a TV I can't turn off.
Good luck and have fun! I'll try to respond more quickly next time if you have any more questions.
know arduino and i just need to know what type arduino you used and the software.
Figured it out, what i did was i used the ardunio-1.0.1 software and did the following:
1- Opened Arduino program and selected tools>board>Attiny85(external 20mhz clock)
2- Click open tab and click ArduinoISP.
3- Connected all wires of arduino uno to attiny85.
4- Then navigated to C:\Users\arduino-1.0.1\hardware\tools\avr\bin and opened this path in command prompt.
5- Entered the following command (remember to put your com port):
avrdude -p attiny85 -P com6 -c stk500v1 -b 19200 -U lfuse:w:0xfe:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
And everthing worked.
I have no idea where the website I got the files from are, but if you PM me your email I can send them to you, it seems you can't upload a file into a comment.
Also I have individual WAV files for each TV type, and I have them all combined into 4 WAV files, tell me which you want, or if you want all of them. All together the files are about 15MB.
I've found that there are no mp3 players that put out the required voltage to light the led's, you have to run the audio through some sort of amplifier, I wanted to make a very tiny in line amp that used a transistor and watch batteries, but I couldn't get enough quality, the sound degradation was so bad that the TV wouldn't recognize the signal, so you either have to use a bigger amp like I did, or make a high quality mini amp.
I have an Arduino to ATtiny programmer...do you think that would work?
avrdude -c arduino -p t85 -P COM2 -b 19200 -U flash:w:tvbgone.hex
Change the programmer to the Arduino, include the port to whatever port your arduino is on ie com port 2 would we '-P com2', make sure the p is capitalized, and change the baudrate to 19200, The baudrate was the thing that was messing me up