|
|
| Author |
Message |
chagy
Joined: 18 Mar 2006
Posts: 4
|
|
Posted: 18 March 2006, 21:52 PM Post subject: Storing IR Pulses |
|
|
| I was just wondering if anyone knows how to store an IR pulse train after being accepting/decoded by the input capture pin. It would be useful to me to know how to store a pulse and retransmit that same pulse at anytime. Thanks for any kind of help! |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2493
Location: Portland, OR
|
|
Posted: 18 March 2006, 23:52 PM Post subject: |
|
|
You could just store the data gathered by InputCapture(). That would make it easy to re-transmit the IR stream using OutputCapture(). If you do this, I would guess that it would be a good idea to normalize the data so that the pulse widths are the ideal size rather than the detected size.
On the other hand, it would likely take less space to store the bit pattern that is extracted from the InputCapture() data. For transmission, you'd have to create the pulse width data needed by OutputCapture using the bit pattern information.
In case you haven't seen it, there is an application note describing how to receive and decode IR signals. See AN-204. |
|
| Back to top |
|
 |
chagy
Joined: 18 Mar 2006
Posts: 4
|
|
Posted: 19 March 2006, 4:46 AM Post subject: IR Signals |
|
|
| I've successfully decoded Sony IR signals using Application Note 204 and am now tring to save those decoded signals and replicate them out of Pin 27-Output capture. Can I save each byte (different devices/commands from sony remotes) and retransmit that command without the use of a sony remote anymore. I'm tring to inferface each command with the computer keyboard so I can control IR device via computer. |
|
| Back to top |
|
 |
|