Instructables
Picture of DIY TV-B-Gone SHP (And Save $45)
SAM_0005.JPG
SAM_0006.JPG
SAM_0007.JPG
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!
 
Remove these adsRemove these ads by Signing Up
1-40 of 47Next »
eley.lewis19 days ago

Wow this is awesome, What will I need to make one?

tyguy210 months ago
Connect the Arduino to the ATtiny as follows:
Arduino +5V ---> ATtiny Pin 8
Arduino Ground ---> ATtiny Pin 4
Arduino Pin 10 ---> ATtiny Pin 1
Arduino Pin 11 ---> ATtiny Pin 5
Arduino Pin 12 ---> ATtiny Pin 6
Arduino Pin 13 ---> ATtiny Pin 7
jcksparr0w1 year ago
Just wondering why there are so many LEDs. More LEDs = More power? More reliability?
jcksparr0w1 year ago
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!
qquuiinn1 year ago
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.
Aaron10881 year ago
Hi is there a way to strip-board this because I don't like how fragile and ugly dead bug circuits are.
dark sponge (author)  Aaron10881 year ago
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.
hullr1 year ago
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.
And how much would it cost to ship to New Zealand if possible?
earthtown2 years ago
I do not promote smoking cigarettes...however, this is my inconspicuous (on the cheap) enclosure for my SHP clone. I used a snap action momentary switch, replaced the visual LED with an old cell phone vibrating motor. I haven't field tested it yet but I turned off my living room TV from about 35 feet away WITHOUT direct line of sight. I was pretty impressed. Big thanks to DARK SPONGE for the instructable, very easy to follow, well written and great pictures...not to mention the eagle files!
tvbshp01.jpgtvbshp02.jpgtvbshp03.jpgtvbshp04.jpgtvbshp.jpg
dark sponge (author)  earthtown2 years ago
Dang, that looks pretty awesome. The limit switch blends perfectly and the vibrating motor was a brilliant idea. Do you use a transistor to power the motor or is it being driven directly from the microcontroller pin? I don't know how much current they draw my initial thought is it could cause the micro to reset or shut down if driven without a transistor. You're welcome, and thanks for the pics!
I connected the motor directly to physical 7, doesn't seem to be an issue...yet. I used it today to turn off every TV I could find on a college campus, one of which was being watched by the person I was talking to, we were the only people in the room and within 3 feet of each other...he was none the wiser, a bit confused/annoyed but had no idea I was turning off his TV.
dark sponge (author)  earthtown2 years ago
Sounds like it works, then! I guess it's a very low current motor.
I just bought my arduino Uno Rev 3 and I have it connected to my computer. The blink test works. But I am having issues figuring out how to build the programing board. How do you know where to plug in the leads coming from the board onto the Arduino? I spent a good time searching and reading different forums and came up empty handed. Your assistance in any way possible would be greatly appreciated as I am a novice taking my first stab at micro-controllers. Thanks
dark sponge (author)  printingfreak2 years ago
Hmm... Is this what you are looking for?

Use Arduino as ISP: http://www.arduino.cc/playground/Code/MegaISP
Wiring diagram: http://arduino.cc/en/Tutorial/ArduinoISP
If I remember correctly Adafruit sells just the pre-programed chip if one doesn't have the means to program the chip or is too lazy to bother...

(Checks).... Yes I was correct, though it costs $5 USD, though there doesn't seem to be any shipping cost (just using their shipping calculator)...

I know one can use an Arduino in ISP mode, though I am note sure if it has the capabilities to change the ATtiny's "fuses" ... If it is possible I would love to see someone write the code for it... (I'm not quite proficient in coding to do it myself)
dark sponge (author)  BrefelanDesigns2 years ago
The preprogrammed chip sold by Adafruit has slightly different firmware that uses an PNP transistor so this circuit would not work. Because I'm using an obsolete version, I had to flash the code myself, but I posted a revised schematic in step 20 of my other instructable for using the new chip. I'm pretty sure that any ISP programmer (including Arduino) can do fuses though avrdude without modification, but don't take my word for it.
TobaTobias2 years ago
How would I do this If Im using ArduinoasISP, Do I have to install anything else. I have avrdude, a got the code for arduino as isp.
Randofo posted good 'ible on how to use an Arduino to program an ATtiny in ISP mode.
http://www.instructables.com/id/Program-an-ATtiny-with-Arduino/
dark sponge (author)  TobaTobias2 years ago
You should not have to install anything else. In AVRdude, use a command such as

avrdude -c avrisp -p insert_part_name -P insert_com_port -b 19200 -U flash:w:filename.hex

I just was browsing the Arduino forums, for more information try http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1277933355
Malthe2 years ago
Does it work in EU, and would you post a link to the codes.
Anybody in australia, How well should this work? Thanks :) (I want to attach this to my sonic screwdriver :D)
~Shadow
yoyology2 years ago
I always love looking at these "dead bug" style electronics projects. Great instructable with lots of detailed photos. Thank you!

I keep thinking of making a TVBGone ballcap, with the LEDs in the brim and a switch on the back. Would there need to be any modifications made if the LEDs were at a distance from the rest of the circuit, say 12" of wire or so?
dark sponge (author)  yoyology2 years ago
Thanks a lot! If the LEDs were at any reasonable distance from the circuit, it should not make any difference at all. At larger (tens of feet or more) distances you might notice some brightness decreases, but that's not much to worry about. Good luck!
Bigfoot #142 years ago
Question: how hard would it be to do this with a PIC16f628a or PIC18f4550 instead of an ATtiny.
dark sponge (author)  Bigfoot #142 years ago
It is possible, but you would have to change the coding language and recompile, as well as have a PIC programmer on hand. They have different architectures even though they are used for basically the same thing. If you have experience writing code for and programming PICs, go ahead and open the source files, it shouldn't be a huge shift. If not, I would not recommend trying to learn it just for this. Sorry for the late reply, and good luck!
rafhit2 years ago
hello!
im from Portugal and i bought the tv-bgone chip from adafruit
i mounted the circuit like this one and i see that it lights up the led and with a camera i can see the IR light up too...what im thinking is that they sold me a version that work only in america...could you tell me where you from?
is there anyway to bypass this? i dont have a programmer for reporgram the chip
thank you
dark sponge (author)  rafhit2 years ago
Hi! I found a forum topic discussing how to change it between US and European codes by adding a switch, which should be easy enough to do.

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

Sorry for the extremely late reply. Good luck, have fun, and update me on if it works or not if you have time!
moonpelt2 years ago
is it possible to use the adafriut micro controller found here http://www.adafruit.com/products/75
dark sponge (author)  moonpelt2 years ago
Yes, if you follow the instructions in step 20 of my other Instructable:

http://www.instructables.com/id/350-DIY-TV-B-Gone-Mico/step20/Update-Using-a-v12-Preprogrammed-Chip/
hey hey if you want to increase the range further you should put this in a case with some aliminum foil behind the LED's its bounces the signal out to the front. hence increasing the range.
ive learnt that from http://www.instructables.com/member/Kipkay/
dark sponge (author)  curious youth3 years ago
In this case I don't think it would increase the range very much because of the viewing angle of the LEDs. They already output almost all of their light directly to the front. Also, if it is directly behind the array it would be likely to short the connections.
Drakz3 years ago
Hey darksponge,

I've recently gotten back into electronics and decided to give your instructable a go, and here's the result!

I decided to breadboard it out first, and it works great. I had a glee-filled half hour screwing with my girlfriend's chick flick from down the hallway. I'll be moving it to a more permanent enclosure and taking it to walmart or similar in the next week.

Thanks for a great instructable!

-D
DSC_0351.JPG
Drakz Drakz3 years ago
(removed by author or community request)
Drakz Drakz3 years ago
Update =p

Found a nice inconspicuous enclosure in an old cell phone. I gutted the thing and slapped the components on a pcb. Only real issue is the thickness of the 9v battery. I managed to retain the case's functionality, at least. So it still flips up and has enough springiness to stay closed -- the back battery door is taped on, though, because of the extra 1cm that the battery sticks out. The electrical tape blends in well, though, and you can't really tell. 

The button is superglued to one of the plastic exteriors of one of the pre-existing buttons on the side of the phone, which means I'm not pushing some awkward mini button with my finger. Instead, I can hold this phone loosely at my side, which looks completely natural, and press/hold the button with my thumb that is resting on the side of the case. Totally unseen unless someone notices the 12 LEDs behind the exterior LCD window (the lcd being ripped out).

Pictures!
DSC_0352.JPGDSC_0353.JPG
dark sponge (author)  Drakz3 years ago
I love the cell phone case idea, it looks nearly seamless! For the fuses I used a website (http://www.engbedded.com/fusecalc) where I defined a few parameters (such as whether to use the external oscillator or not) and it generated the fuse codes for me. Some of the choices include number of start-up clock cycles (to allow the oscillator to stabilize), brown-out detection (shuts down the microcontroller if the voltage drops to low), and some other settings I don't worry about. In this case I just chose a high start-up value simply because the extra milliseconds didn't really matter in this application.
can you write the code fore arduino pleeessssss ive ben  loking all over for weeks  now and i cant find it
mrmath3 years ago
Nothing about the instructable, but I hate tv-b-gones. If you're in a public place that has TVs for customer enjoyment, what gives any one person to turn off all the TVs? It's arrogant to think that your need for silence in a public place is more important than anyone else's rights.
maxs mrmath3 years ago
I'm not sure there is anything about the TV-B-Gone that says you have to use it on TVs located in public spaces. However, those that do use it in public spaces in inappropriate ways (TV in a bar when a popular game is on) should be the ones to blame, not the TV-B-Gones. As with all technology, common sense must still be applied.

I think we are in agreement, though, that people who use these things to kill others' enjoyment are jerks.

I was thinking of building one of these things to use at my friend's house. Hide it an object that can be put on his coffee table. Of course, it's important to use common sense in this situation, too.

Nice ible.
1-40 of 47Next »