TV-B-Gone and Flora

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rubidium
 
Posts: 43
Joined: Sun Nov 18, 2012 10:36 am

TV-B-Gone and Flora

Post by rubidium »

Has anyone successfully loaded the TV-B-Gone code linked in the respective Flora tutorial (https://github.com/adafruit/Flora-TV-B-Gone/) onto the Flora and gotten it to work? I'm finding a factor of 2 discrepancy in the duration of the codes. I searched the forum and didn't find any related posts.

For example, using the first code (i.e. purportedly for Sony power on/off) that is exemplified in the original TV-B-Gone tutorial (http://www.ladyada.net/make/tvbgone/design.html), I expect a frequency of 38400Hz, and 13 pulses to occur within 32*0.6=19.2ms. With the Flora SCL pin hooked to a scope, and keeping pin D9 grounded to allow an infinite loop to repeatedly bang out the first code in the list (Sony) I'm satisfied to see the 38400Hz frequency, but on a longer time scale the leading 13 pulses of the Sony code are delivered in 38.4ms. So there's a factor of 2 screwed up somewhere. Ironically, if I compile the exact same code for the Arduino Micro (i.e. 16MHz) and load it onto a Micro, all of the timing is correct! I am compiling/uploading on the Adafruit version of Arduino throughout - selecting the appropriate board in both cases. Is there something off within the Flora board definition?

Locked
Please be positive and constructive with your questions and comments.

Return to “TV-B-Gone Kit”