0

Flashing LED until button pushed, HELP...
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Flashing LED until button pushed, HELP...

by ncdude on Sat Dec 22, 2007 7:44 pm

Hey all,

I built this TV B Gone today and when batteries are installed the green LED flashes and when I push the button the led stops flashing. Is this normal operation??

Thanks,

Scott.. :?:
ncdude
 
Posts: 1
Joined: Sat Dec 22, 2007 7:41 pm

by caitsith2 on Sat Dec 22, 2007 8:55 pm

It is normal for the LED to start flashing on battery install. (This would be a power on reset.)

Next, when you push the button, what happens next depends on the hardware version, and therefore the firmware version. In Version 1.0, the button is tied to an IO line, and that IO line is set to cause an interrupt. THe interrupt then sets up a watchdog timer, to reset the chip.

In the case of Version 1.1, the button is directly tied to reset.

In either case, the blinking will start from the beginning again. After it has run through all of the poweroff codes, the blinking should stop on its own.
caitsith2
 
Posts: 217
Joined: Thu Jan 18, 2007 11:21 pm

by Tanner8 on Sun Dec 23, 2007 12:40 am

Since it is open source do you think it is possible to make it stop scanning on re-click of the button? Sometimes after it finds the TV and powers it, I want to shut off the scanning so it dosnt perform an operation on the other TV's in the room in future codes.
Tanner8
 
Posts: 26
Joined: Mon Dec 17, 2007 9:27 pm

Re: Flashing LED until button pushed, HELP...

by adafruit on Sun Dec 23, 2007 1:33 am

ncdude wrote:Hey all,

I built this TV B Gone today and when batteries are installed the green LED flashes and when I push the button the led stops flashing. Is this normal operation??


sure. when the batteries are put in it starts automatically since its just 'turned on'

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Please be positive and constructive with your questions and comments.