Escolar Documentos
Profissional Documentos
Cultura Documentos
Table of Contents
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
License: Attribution Non-commercial Share Alike (by-nc-sa)
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!
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 wither internet access; I predict you are using one right now :-)
Soldering iron with solder
Helping hands tools, very helpful
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes
1. CR2032 battery holder.
2. Attiny85v.
3. 8MHz resonator.
4. IR LEDs, the wide angle one should have a blue tint.
5. NPN transistor.
6. 150 ohm resistor.
7. 22uf capacitor.
8. Pushbutton.
File Downloads
It is much more accurate and doesn't vary near as much as the internal oscillator. This can make the difference between it working and not.
Disadvantages:
I highly recommend you use one, but it is not required. I'll include instructions for both ways.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
step 4: 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. I included images of this, but 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.
Image Notes
1. The next four pictures (including this one) are what you would do if you were
using the fuse calculator yourself.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
step 5: 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
and wait for it to put the code on the chip. Now let's get building!
Image Notes
1. Make sure you have the oscillator on the breadboard at this point. The outer
pins of the oscillator go to pins 2 and 3 of the microcontroller, the center pin goes
to ground.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
step 6: Begin Construction!
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.
Image Notes
1. Pins 1 and 8 soldered together.
When the button is pressed, it will give the chip power. When the button is un-pressed, the chip gets no power and will turn off.
Image Notes
1. Two leads of the button cut off.
The resistor limits the amount of current that the microcontroller can give to the transistor. Pins 5 and 6 are the outputs, and bending them together doubles the amount of
current they can source to 20 ma. This is probably not needed, but is used as a precaution.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes
1. Pins 5 and 6.
The transistor allows the microcontroller, which can source only 10 ma per pin, to drive these LEDs, which can draw up to 100 ma. When a current goes through the
base, it allows power to flow through the LEDs (at the collector) to ground (the emitter) in this circuit.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes Image Notes
1. Pin 4. 1. Pin 4.
Bend the outer two pins of the resonator inward, and the inner pin upwards. Solder the the outer two to pins 2 and 3 of the microcontroller. Bend the leftover emitter lead
from the transistor over, and solder it to the middle pin of the resonator to connect it to ground.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes
1. This view shows how the center pin of the resonator is connected to ground.
From now on, most of the pictures will be wrong. I did it a different way, then experimented and found that this one was better. Pretend the LEDs in the rest of the pictures
are like this, sorry for the inconvenience!
Image Notes
1. Flat sides (negative).
2. Positive.
3. Negative.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes
1. Negative of LEDs and the collector of the transistor soldered together.
2. Positive of LEDs.
The capacitor filters the power from the battery to provide a smooth voltage for the microcontroller even with the LEDs flashing really fast.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes Image Notes
1. Pin 4. 1. Another view.
The positive goes to the far end of the button, giving power to the LEDs and, when pressed, the microcontroller.
The negative goes to the negative of the capacitor, grounding what needs to be grounded.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Image Notes Image Notes
1. Far pin of the button soldered to positive of the battery holder. 1. Common ground soldered to the negative of the battery holder.
Materials:
3mm LED - $0.06
Another 150 ohm resistor - $0.05
First, take your LED and bend the positive lead (not on the flat side) straight out. Keep the negative lead (with a flat side) pointing the same direction and cut it so that it's
about 3mm long. Solder this to pin 7 of the microcontroller, with the positive lead facing toward the switch.
(look at picture 2)
Next, cut the positive lead very short. Cut one lead of the resistor very short also, and solder the two together. Bend the other lead of the resistor around to the positive
battery terminal, cut it, and solder it into place.
(pictures 3 and 4)
Now when you press the button, the LED will blink between each code. It will also blink 4 times quickly when all the codes have been sent.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
File Downloads
Note: I am not responsible for what you do with this, act at your own risk.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Related Instructables
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
Advertisements
Comments
50 comments Add Comment view all 57 comments
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
dark sponge says: Aug 19, 2010. 7:46 PM REPLY
Quiet... I was planning on doing that :-) Actually I don't think I'll get around to it, someone else can get the credit and make an Instructable.
:-)
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
dark sponge says: Aug 19, 2010. 7:25 AM REPLY
At the end: "Note: Using a RF Jammers to block communication by disrupting the signal is an exclusive right of the authorities... Federal
Communications Commission (FCC) rules apply and they take a dim view against illegal use of RF jamming devices."
I am dying to try this project. I love how you explain, at each step, not only what to do, but the purpose of that component in the circuit. Perfect for
electronics noobs like myself. The only thing keeping this from a full five stars is the photo quality. Since you mention buying more components in bulk, can
we look forward to a revamp with more photos?
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/
JamesRPatrick says: Aug 17, 2010. 9:49 PM REPLY
I think a schematic would clear up any confusion.
Pretty much any NPN transistor with the pinout of E,B,C in that order should work, as long as it has a high gain.
Pretty much any NPN transistor with the pinout of E,B,C in that order should work, as long as it has a high gain.
http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/