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

Get help and show off your TV-B-Gone kit!

Moderators: adafruit_support_bill, adafruit

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

Postby jeonlab » Wed Nov 23, 2011 2:44 pm

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.

I added these two lines (first three lines below) into the code.
Code: Select all
     // exit do loop if REGIONSWITCH is pressed
     if ((region == US && !(PINB & _BV(REGIONSWITCH)))
     || (region == EU && (PINB & _BV(REGIONSWITCH)))) break;
   
      // delay 250 milliseconds before transmitting next POWER code
      delay_ten_us(25000);


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.

Image

And EU version:

Image

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

Image

Cheers!

http://jeonlab.wordpress.com/2011/11/23/tv-b-gone-mod-for-battery-saving-and-regionrange-selection/
http://jeonlab.wordpress.com
jeonlab
 
Posts: 7
Joined: Thu Nov 10, 2011 10:34 pm
Location: Toronto, Ontario, Canada

Return to TV-B-Gone Kit

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]