Professional Documents
Culture Documents
Serial Port Controlled Infrared Transmitter With PIC PDF
Serial Port Controlled Infrared Transmitter With PIC PDF
NOTE for beginners: PICs are general purpose microcontrollers which have to be programmed before you can use them in the actual
circuit! Check out this link to learn more.
description
This is a programmable infrared (remote control) transmitter, which can be controlled from a PC serial port. It is capable of sending many
remote control formats, including the Philips RC-5 standard. Exact formats with the timing parameter names are shown on the pictures:
operation
The controller will accept commands on the serial port. Settings are: 19200 bps, 8 bits, no parity, 1 stopbit, no flow control (XON/XOFF or
RTS/CTS). Commands consist of hex coded bytes and must be written on the port as ASCII characters separated by space, terminated by
ENTER (ASCII char 0d) The list of commands is here:
This command can be used to repeat a given ir command, but not to transmit more commands one by one, because the
toggle bit is only set after sending out all the ir commands. To send more than one ir commands, repeat the SENDRC5
command with the appropriate second byte(s).
57 <second byte> [second byte] ...
ir_T is given in 10 usecs, other timing values are given in ir_T steps
You can use a terminal emulator program to test out the circuit (for example minicom on linux, NC terminal on DOS, or hyperterminal on
windows), but the settings usually won't work at first, so it is recommended that you write a small program to set the parameters and
send commands by pressing keys on the keyboard.
examples
To program the controller to send a "channel +" command to an ITT 3520 video recorder, you need to send:
55 38 10 8 1 1 1 3 1 1
This command will set these parameters: T=560 usec, header pulse=16T, header gap=8T. bit0 pulse=1T, bit0 gap=1T, bit1 pulse=1T,
bit1 gap=3T, tail pulse=1T
56 31 ce 01 fe
This command will send the required command bytes to the video recorder. You can see that this format contains some type of ID and a
command code. Each byte is transmitted normally then with all bits reversed. You can repeat this second command more times to ensure
reception.
You can actually measure all the signal times of header, bit0, bit1 and the tail pulse in a sound editor and decode the bits by hand. The
yellow bars on the picture show the decoded bits. The last 16 bits contain the button code. The actual code calculated from the bits is "31
ce 01 fe", and will control the video to step one channel up. Another example for the Panasonic remotes POWER button digitized is here:
The encoding scheme is quite similar, with the difference being only in the header/bit pulse/gap times. You can decrypt the command
shown yourself. It shows the sequence 02 20 90 00 3d ad, where the first 4 (!) bytes are the device identifier and the last two (3d ad)
are the actual command. These remotes employ some strange checksum/code integrity mechanism, where the codes are in byte pairs
and the second byte is actually calculated (?) from the preceding one or they contain more than 8 bits and mirror some of the bits.
schematic diagram
The first picture shows the controller and the IR transmitter parts. The second shows the (nonstandard) serial interface level translator,
which converts the TTL voltages to/from RS232 levels of the serial port.
FAQ Search Memberlist Usergroups Register Profile Log in to check your private messages Log in
jap.hu Forum Index -> Serial port controlled infrared transmitter with PIC Mark all topics read
jap.hu Forum Index -> Serial port controlled infrared transmitter with PIC All times are GMT + 1 Hour
Page 1 of 1
New posts No new posts Announcement You can post new topics in this forum
You can reply to topics in this forum
New posts [ Popular ] No new posts [ Popular ] Sticky You cannot edit your posts in this forum
You cannot delete your posts in this forum
New posts [ Locked ] No new posts [ Locked ] You cannot vote in polls in this forum