Dirt Cheap ATtiny-85 Tv-B-Gone(switches Off Any TV!), Plus Arduino As Isp

17,466

138

32

Posted

Introduction: Dirt Cheap ATtiny-85 Tv-B-Gone(switches Off Any TV!), Plus Arduino As Isp

The TV-B-Gone is a great little piece of engineering, and coding. Along with the appropriately named tiny, AT-Tiny, we can make an amazing universal tv remote which can turn of any TV. This was originally sold as a kit, but we are going to make it ourselves, using Mitch Altman's code. The total cost for me was under 4$

Step 1: Materials, and Tools

Materials-

Atiny 85 A crystal (depends on your attiny 85 model, If confused leave a comment, and i shall tell you if you need it, or not)

ir leds

a transistor

status led, and an accompanying 330 ohms resistor (optional)

perf board/proto board

wire, and solder

c2032 battery, and an accompanying battery holder.(if you use a different battery, get a voltage regulator if the battery's voltage is higher than 5v.)

push button, preferably a small one

22uf capacitor

150 ohm ressistor

A programmer, I used arduino uno as isp ( more on that later)

*** if using arduino as isp, then you also need a 10uf 16 v capacitor, and a 220 ohm ressistor

Tools-

Soldering iron (plus solder)

wire strippers

glue gun(optional)

Next we shall make it

Step 2: Programing

fuses - Depending on your at tiny model, you might need an external resonator. I had an attiny 85-20pu which ran on an external resonator, so I burned an alternate the boot loader (found in the boards section of arduino) which allowed it to run on the internal oscillator. If all this confuses you, then stay on the safe side, and use a ATtiny85V-10PU

Using an Arduino as isp- First go to examples, and Arduino as ISP, and burn that on your Arduino, then follow the tutorials below to burn the appropriate tvbgone code(found below).

Using these comprehensive tutorials, program the attiny with a arduino.

Link 1, click here (opens in new tabs)

Link 2, click here (opens in new tabs)

If you have an avr programmer then use these tutorials

Link 1, click here (opens in new tabs)
Link 2, click here (opens in new tabs)

the files to be flashed on the Attiny are availible here- ATtiny code

If you do have a breadboard on hand, I do recommend making the circuit on the next page first on the breadboard, just to verify that your at tiny has been flashed properly.

Step 3: Soldering

Solder your project using the schematic above. Since 1 battery is very unstable, and did not give me enough amp output, I wired 2 batteries in parallel, to support my 3 high power IR leds. If you use lower power IR leds, or fewer leds, then 1 battery should be able to support the amp draw.

If you want to use different batteries such as 9 volt batteries, then attach a voltage regulator if the battery's voltage is higher than 5v. Attaching a voltage regulator is extremely easy, and there are plenty of tutorials online. Just remember, this is only needed if the battery your using is over 5v.

Step 4: Finishing Touches.

You can now hide this in any casing to make it more discrete, or you could apply clear heat shrinking over the whole pcb. I left mine bare, as I like it that way.

Please don't hesitate to leave any questions,coment, or concerns below.

For more personal questions you could also email me at- saraltayal@woodstock.ac.in

Thanks to Dark Sponge, and his tvb gone, which inspired me to make this build.

Share

Recommendations

  • Science of Cooking

    Science of Cooking
  • Pocket-Sized Contest

    Pocket-Sized Contest
  • Spotless Contest

    Spotless Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

31 Comments

Great job..I have a question for your tvbgone tutorial..why u use 2 pins of attiny as IR output>>??

i have an attiny85 20pu. i wave not changeed any bootloaders or fuses( i am running at 1 mhz). what should i do? use an external oscilaotor and how can i boost it to 8mhz?

No external crystal is needed. Well I assume as I will build this next.When you buy a new ATtiny 85 chip it runs on 1mHZ. So set the Arduino IDE to 8mHZ, then burn the boot loader and it changes to 8mHZ> then upload program by holding down the shift key. Good luck Arduino folks.

Does this work for europe aswell?

Yes, check out this link https://learn.adafruit.com/tv-b-gone-kit/download ... It contains version 1.2 which supports an external swtich to control EU vs US televisions.

Thanks for the reply, another thing is you do not really specify how to change the fuses to use an external oscillator and how to mount it to the attiny85

Hey again,

I do apologize if any information was not clear. After all, I do this as a hobby and to educate people, not as a paid incentive.

For the fuses, you can either use internal or external ones. I chose to use the external one, as I heard that the internal ones are not too accurate, and they drain a lot of power. Plus, I had external ones laying around.

You choose the fuses when you are uploading the bootloader to the Arduino. For how to attach the external oscillator, please refer to the schematic that I created for this instructable. All of that information should be there. If you have any more concerns, please ask. I am glad to help any maker.

okay i did that and the ir leds are only glowing,,not blinking,where could i be wrong

Strange, perhaps you have a capacitor attached to the leds that are making them glow rather than pulse. Also, please do reupload the code, and make sure that it compiled properly. If you have a spare arduino, then you could also upload the code to it and test with less variables that could fail. The only reason that I used the ATtiny was due to its discrete size.

Good luck

what code should i use for the arduino software ?