Category Archives: Gadgets

Everything about gadgets I love

TV-B-Gone mod for battery saving and region/range selection

TV-B-Gone is a small gadget that can turn on and off virtually any TV in the world developed and sold as a kit by Adafruit. They also provide the source code and compiled firmware under Creative Common Share Alike license.
I would like to thank original developers at Adafruit for this great work and sharing ideas.

At first, I downloaded the firmware v1.1 and flashed an ATtiny85-20 and made it with only one transistor and two wide angle IR LEDs with two supercaps as shown below. The switch is connected to the supercap + so it will beam only when you press the button.
simple TV-B-Gone with supercaps

It worked fine, but the problem was it drained the supercaps too quickly.  The first reason is, of course, low capacity (compared to batteries) of the supercaps, but there are other reasons, too. I didn’t have a resonator at 8MHz, so I burned the oscillator selection  fuse bit of the ATtiny85-20 as internal 8MHz.  The internal oscillator has benefits of omitting an external component and programmable, but there are serious down side; its frequency can be unstable and varies depending on the temperature and power supply, AND it consumes more power at high frequency settings.

I also tried v1.2 on a tiny bread board as shown below.

TV-B-Gone on breadboard

I haven’t taken a picture, but on the breadboard shown above, I added a 8MHz ceramic resonator and uploaded v1.2 firmware on an ATtiny85V-10 and found it can last double the time. One full cycle of pulsing all the codes takes a little less than a minute and with this latest testing configuration, more than 30 times of full cycle worked with 2 supercaps before the voltage dropped below 1.7V (two in series).

I have thought about to turn off the device before the full cycle finished. I thought about to add a power switch but that wasn’t very attractive to me.

A couple days ago, I suddenly got a good idea to utilize the Region Detection pin6. Once the program detects the region from the level of pin 6 (float (internal pull-up): US, pull-down: EU), it is not used until all the code pulsing is finished. So, in US mode for example, after it started pulsing and when you want to stop it, forcing the pin6 to ground will exit the do loop  in software and the device will go sleep. I tested both US and EU mode with modified code and worked fine. This way, you can save battery.

Here is the schematic for the US version. I also added a slide switch to select IR LEDs between 2 wide but short ones and 1 narrow but long beam LED.

TV-B-Gone JeonLab Mod-US

And EU version:

TV-B-Gone JeonLab Mod-EU

If you want to have both in hand like me, you can use following design with a DPDT slide switch to change region.

TV-B-Gone JeonLab Mod-Uni

More updates will be followed.

If you want to buy an ATtiny85v-10 chip with this modified firmware loaded, send me an email with your location.  It will be $5.00 + shipping.

The full kit will be ready soon, too.

Jinseok

About these ads

USB chargeable flashlight & circuit tester with charge indicator LED

This is another supercap (super capacitor) application. I like supercaps. Although it can hold much smaller charge than rechargeable batteries and a little bit expensive, it can be charged extremely quick (about 30 seconds through USB for 2x 2.5V, 10F), light, and has no memory effect. If the load is not very heavy, you can use it for many applications as a power source.

I used the small blue box that I have introduced for the Wii nunchuck mod and the JeonLab mini v1.0.  The inside of the box is just big enough for 2 supercaps and other parts. What I’d like to make with this box and the supercap is handy, portable, and quick USB chargeable LED flashlight AND a simple circuit tester (beeps when two probe touch a closed circuit like the one of the multi-meter functions). I also wanted to include a charge-complete indicator LEDs.

Not very critical but exciting part was the charge-complete indicator. At first, I thought I could use an NPN transistor, two resistors for a voltage divider to turn the transistor on and off (by the level of charge), and an LED (connected to the  collector and the emitter).  But I couldn’t find proper resistor combination from what I had. I didn’t want to add a variable potentiometer in such a small box. So I searched on internet to find better and simpler voltage indicator and found this post from a forum called ModRetro, written by Daftmike, and found his circuit for low voltage indicator is very similar to my design except for another LED to indicate the power which is connected to the emitter of the transistor and ground. I quickly added an LED and found a good resistor combination (2.2k and 3.3k for my case) with this additional LED. Adding an LED simply solved my problem.  I’d like to thank him for sharing the circuit idea.

Anyway, here is the whole circuit diagram.

USB light n tester

I have added a schottky diode (1N5818) to prevent discharge of the supercaps when they are not charging. There is about 0.5V of voltage drop across the diode, but it is fine for this kind of circuit to light an LED or beep a piezo buzzer. It is not necessary to be exactly 5V.

Here is a picture of parts before assembling.

supercap light & tester parts

Part list:

  • supercap: 2.7V(2.5V is fine as well), 10F x2
  • LEDs:
    • white: high intensity, 3V, 5mm
    • red: 3mm, 10mA, 2V
    • green: 3mm, 10mA, 2.1V
  • transistor: 2N3904
  • schottky diode: 1N5818
  • resistors:
    • 2.2k, 1/4W
    • 3.3k, 1/4W
    • 100, 1/8W x2
  • piezo buzzer: 2.73kHz, 5V, 9.6mm
  • slide switch: small
  • mini-B USB female connector
  • 2-pin socket (any)
  • blue box (Hammond 1551F, ABS)

Here are some pictures showing my tests to see what voltages for each stage.

1. Discharged, unplugged from USB (both red and green LEDs are off)
supercap light prototype_unplug n discharged

2. Charging, plugged (both LEDs are on)
supercap light prototype_charging

3. Charge indicating LED (red) is almost off at 4.6V
supercap light prototype_charging RED off

4. about 30 seconds after plugged in, it is 4.75V (red LED is completely off)
supercap light prototype_full charge

With USB, after it reaches about 4.8V, it takes long time (more than 10-15 minutes) to approach to 5V. Maybe impossible.  I just didn’t have enough patience to wait hours to see if the USB can charge this up to 5V. ;-)   But if you plug it in to 5V, 1A wall adapter, it is much faster (less than 5 seconds) to reach this point and even charged to over 5V.

Here is a picture showing the inside of the fully assembled ….. hmm what should I call it… JeonLight maybe? :-)

IMG_0014 (Large)

As for the circuit tester, you can connect any solid wire (about 20-18 AWG) or long header pins.

Some pictures with lights on.
IMG_0018 (Large)

IMG_0025 (Large)

IMG_0024 (Large)

There are some more detail pictures on my Flickr photo library.

Should you have any questions or comments, please leave a comment below or send me an email.

Thanks.

Jinseok