I want to control an Infrared system. with the USB-UIRT I could extract the Pronto Remote code and I have to pass through a microcontroller and an IR LED.
USB UIRT being USB is not a good choice for IR on a small micro.
IRman (no longer sold) used serial RS-232.
There are many RC5 code (the most common IR code) projects on AVRfreaks.net, projects section, and elsewhere. You use a $3 IR receiver module and process the serial data that comes from that, as RC5 data frames. Sending IR involves a playback of the received timing of when the IR receiver module’s bits change state. A microprocessor’s hardware timer is often set to twice the 38KHz IR carrier then a pin on the micro toggles at 38KHz. You start/stop the timer to reproduce the IR carrier bursts. Feed that to two or so strong IR emitters.
wael_007:
with the USB-UIRT I could extract the Pronto Remote code and I have to pass through a microcontroller and an IR LED.
the signal frequency is 37.7 kHz.
Unless I’ve read it wrong, why would you need to “extract” the Pronto code from a remote using a USB-UIRT ? You seem to already have the Pronto code for some command, you just need to implement the code’s timings. The details of the Pronto code are discussed below. Basically the code contains the on and off times for the modulated waveform to be sent. The timing unit is 1 period of the IR modulation. An IR stream of 5 on cycles followed by off time equal to 6 cycles would be represented as 0005 0006 in the code.
The modulating frequency is also in the code, the 6D says it was measured by the learning remote as 38028.9 Hz. The formula at the link above is : Frequency = 1000000/(N * .241246). Let’s call it 38 kHz, a pretty common frequency, which makes each unit of time in your Pronto code worth 26.3 usec (1/38000).