Instructables
Picture of $3.50 DIY TV-B-Gone Micro
I previously made a slideshow on my DIY TV-B-Gone, and many people requested I make an Instructable. So, the first in a series of DIY TV-B-Gone clones, is the TV-B-Gone Micro!

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 adsRemove these ads by Signing Up

Step 1: Materials and Tools

Picture of Materials and Tools
TVBGONE schematic.JPG
Here is a list of what you will need.

Materials: All of these prices are if you buy only one of each part. If you buy in bulk, like I did, it will actually have a cheaper unit price. For me the total was less than $3.50, for you maybe more if you only buy one of each part.

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
Now let's get started!
« Previous41-80 of 288Next »
mbotond1 year ago
Which microprocessor replaces the Attiny85v? I can't find Atmel products in Romania.
pabhilash1 year ago
Hi! Great I'ble.. so i have a question. I have a spare ATMEGA328 i can use(got it off an arduino clone). Can i use that instead of the ATTINY? (p.s, i'm assuming it already has a bootloader installed because i have uploaded sketches to it a few times.) Thanks! :)
dark sponge (author)  pabhilash1 year ago
Sadly, no. If you want to use the precompiled code, you need to use an Attiny85v.
karabey1 year ago
Does anybody have the actual Codes?
dark sponge (author)  karabey1 year ago
There is a link in step 5 for a .zip download containing the code.
degen S.1 year ago
hey i,m new at this programing i was wondering if you could just give me a step by step instruction on the arduino software i've done a lot of research on arduino and if you could just give me a step by step tutorial that would be great. i bet it would help a,lot of people too. but if you could that would be fantastic. and ya that,s were i
know arduino and i just need to know what type arduino you used and the software.
ke7ofi1 year ago
What would I need to do to only use the narrow beam LED and a AA batter? I can't really code, but I could struggle through it. Range isn't really an issue, as I'm fitting it in a sonic screwdriver with a reflective cone to boost range a bit, and I'll be close enough that it shouldn't matter.
nodoubtman1 year ago
20$ shipping cost is ridiculous..!!! mouser :(
RippedNerds2 years ago
(removed by author or community request)
dark sponge (author)  RippedNerds2 years ago
Whoa, fun video! I noticed a bunch of people asking where you got it, maybe you could post a link.
earthtown2 years ago
Packaged mine in a "door alarm" from Big-Lots (4 for $1...also got a reed switch, batteries, and speaker in parts). Added some sparkfun.com swag just to be flashy...the "geek" sticker wouldn't fit on there, I tried.
tvb01.jpgtvb02.jpgtvb03.jpg
dark sponge (author)  earthtown2 years ago
That looks awesome! Thanks for posting pics!
If i use the internal oscillator, I just omit the external one from the schematic, right?
dark sponge (author)  Michael_Bell2 years ago
Correct.
batman962 years ago
Hi Dark Sponge, You seem to know the most about tv b gones. I build electronic stuff, but I use discrete components, and have yet to use any micro controllers. I wanted a Tv B Gone, but wanted to build my own, I think I asked you about using a universal remote as one a couple of years ago. So here is what I did. I found the Tv B Gone data as a wav file on the net. I loaded it onto my mp3 player only to find that it can't play wav files. I converted it to mp3 and then heard some nice fax machine sounds. I made a Infa Red plug for my mp3 player out of a mono jack and two leds one facing each direction, (I found how to wire it in a article about using a Iphone as a universal remote). So the Idea is that I bring my mp3 player when I am going to be in waiting rooms and such, so when i want to shut off a tv I just plug that in instead of headphones. But my mp3 player doesn't have enough power to light them, If I run it though a small amp taken from a set of old computer speakers it works fine and shuts off all of my tvs, but that is to big to take with me. I already tried turning up the audio file on the computer, it is louder, but still doesn't light them. I know it works, obviously the I phone puts out enough power to work, the IR leds I am using are the dark ones, although I tried the ones out of a ball mouse too. Are there any that have a lower voltage? Thanks, Batman96
sorry for replying to such an old comment, but can you post a link to the wav file?
That's OK.

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.
dark sponge (author)  batman962 years ago
In that situation I would advise just building a simple amplifier with a transistor that would plug into the mp3 player and be powered by a separate battery. I don't know why it doesn't already light them, it should have enough power. But If it works with the computer amp, a smaller pocket amp should work too. You could maybe even get it to run off of a coin cell. Good luck!
Is there a way to use Arduino code?

I have an Arduino to ATtiny programmer...do you think that would work?
avrdude -c arduino -p t85 -P [your arduino comport here for example if it was comport 15 it would be '-P com15'] -b 19200 -U flash:w:tvbgone.hex
dark sponge (author)  blinkyblinky2 years ago
I think you can use the Arduino as a programmer to send this code to the ATtiny chip. You could also try to write your own code in arduino, but I would recommend just using the premade stuff.
Yeah, you can. Can you program the original code in through it though?
TobaTobias2 years ago
Hi, great project. Do you think I could program the Attiny with Arudino as ISP on my mac?
Nevermind I figured it out. You need to change the command abit:

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
sorry for the bump, but have you had any luck with this?
dark sponge (author)  TobaTobias2 years ago
That should be able to work, but I'm not sure. I know it has been done on a PC but I am not very familiar with ISP programming on macs. You might be able to find instructions on a forum somewhere...
acerpeng2292 years ago
what pnp transistor to use
dark sponge (author)  acerpeng2292 years ago
Pretty much any generic PNP transistor will work for version 1.2 unless you find something with a really low gain or low power handling. Just make sure you match up the emitter, base, and collector according to the package and you should be fine.
can it be used in malaysia and all around the world??

Thanks, DARK SPONGE
malaysia eh?nk troll orang ke?hahaha
dark sponge (author)  acerpeng2292 years ago
It depends on what models of TVs are common there. You would probably want to install a switch like the one detailed in this forum

http://forums.adafruit.com/viewtopic.php?f=23&t=24377

in order to change between American and European codes. I don't know how well either of these codes would work in Malaysia, it depends on where the TVs there come from and if they are different models. Most likely they are not, but that's just my initial thought.
Hi great work,
i have a very limited knowledge of electronics and i would really appreciate a reply, do you think that, as i have no way of programming a micro-controller i could use this: http://www.adafruit.com/category/20 without changing any of the other steps? this guy used it but his instructions aren't that clear: http://www.instructables.com/id/Sonic-ScrewDriver-TVBG/
do you think you can shed any light?
thanks
dark sponge (author)  IHaveNoBudget2 years ago
That Instructable actually used the preprogrammed chip that you gave a link to, and I briefly go over how to use it in Step 20 of this Instructable. I just realized my link is dead, so I'll fix that...
madbob22 years ago
For the 1.2 version, do we have to use the external resonator?
dark sponge (author)  madbob22 years ago
Yes. The 1.2 version comes preprogrammed, so the fuses are already set to be with a resonator. You could change the fuses, but that would defeat the purpose of using the preprogrammed chip instead of programming a blank one.
XOIIO2 years ago
Also, what is the max filke size you can throw on this (or program it to or whatever it is) for tv codes, sorry, I don't know shity baout microcontrollers, this is gonna be my first thing.
dark sponge (author)  XOIIO2 years ago
This microcontroller has 8kb of internal flash memory, so the entire program (including the codes) can be no larger than that.
sorry the adress for the controller i meant was actually this: http://www.adafruit.com/products/75
http://ecetechprojects.com/2011/08/06/arduino-upload-hex-files-to-attiny85-using-your-arduino-and-avrdude/
MrGentlemen2 years ago
Hi dark Sponge,

Im from Germany and want to build this too, but i dont have found any ATtiny85V-10PU.
What I have found is an ATTINY 85V-10 SU ( I think this is the SMD version of the controller)

Can I use it instead of the PU-version?

thx
« Previous41-80 of 288Next »