infrain and infraout are dandy if you have a 38Khz remote and use the sony protocol. In fact in the US the 99 cents only chain sells universal remotes that can be programmed to the sony standard for 99 cents. These work great with the picaxe.
However, I have a device (A Wowee Robosapien) that wants a 1200 baud 39.2 Khz ir signal. No problem, I setup the pwmout to provide close enough to 39.2 kHz and feed that into an AND gate. The other input of the AND gate is an output from the picaxe. I send T1200 signals out from the output and into the AND gate which results in a 39.2 Khz carrier modulated at 1200 baud. Great so far!
BUT! The Wowee protocol wants a header that looks like this %11111111 followed by a time spaced pattern where a high is 0001 and a low is 01. If I code up a typical pattern for say "Walk forward" or $86 it looks like %11111111,%000101010,%01010001,%00010100
It took me the longest time, but I think I know what isn't working. Looking at the output on a scope there is a single low to high transition between each 8 bit transmission. This is messing up all my timing. I assume this is the "1 stop bit" in the 8n1.
Anyone have any ideas how I can modulate that pwm signal at 1200 baud continuously for 2 words with no stop bits? I have fiddled with pulsout without much success.
I have searched the forums on this without much success. I know I could do it with a raw pic, but what would be the fun of that!
Here is a link to my quick writeup of the work so far: http://profmason.com/?p=448
Thanks for any help!
profmason
However, I have a device (A Wowee Robosapien) that wants a 1200 baud 39.2 Khz ir signal. No problem, I setup the pwmout to provide close enough to 39.2 kHz and feed that into an AND gate. The other input of the AND gate is an output from the picaxe. I send T1200 signals out from the output and into the AND gate which results in a 39.2 Khz carrier modulated at 1200 baud. Great so far!
BUT! The Wowee protocol wants a header that looks like this %11111111 followed by a time spaced pattern where a high is 0001 and a low is 01. If I code up a typical pattern for say "Walk forward" or $86 it looks like %11111111,%000101010,%01010001,%00010100
It took me the longest time, but I think I know what isn't working. Looking at the output on a scope there is a single low to high transition between each 8 bit transmission. This is messing up all my timing. I assume this is the "1 stop bit" in the 8n1.
Anyone have any ideas how I can modulate that pwm signal at 1200 baud continuously for 2 words with no stop bits? I have fiddled with pulsout without much success.
I have searched the forums on this without much success. I know I could do it with a raw pic, but what would be the fun of that!
Here is a link to my quick writeup of the work so far: http://profmason.com/?p=448
Thanks for any help!
profmason