Advertisement

IR Link PIC tranceiver

Not rated 7,998

#IR #PIC #transceiver #serial communication #RCX #Lego #UIRT #PIC16F84A #remote control
IR Link PIC tranceiver
IR Link PIC tranceiver

Description: I just finished a half duplex serial asynchronous link from a simple PIC circuit to the RCX. It is able to receive codes from the RCX (or Lego RCX remote control), store them in RAM & EEPROM, and transmit any IR op-code to the RCX in turn. Included in the firmware is a routine that takes any opcode(s) and expands it to the proper IR packet for transmission to the RCX. I've used the UIRT circuit with a few modifications for the hardware. The UIRT includes a serial port programmer for the PIC16F84A, so you won't need a separate programmer. More: UIRT modifications:

1) connect a jumper from MCLR (PIC16F84A pin 4) to the V+ (+ end of the 100uf capacitor). This keeps the PIC from resetting.

2) Build a 5V power supply. I used a 7805, a 0.1uf cap, and a 9V battery connected across the 100uf capacitor.

The described circuit establishes a half-duplex serial asynchronous communication link between a PIC microcontroller and the Lego RCX, facilitating the exchange of control codes and commands. The use of the PIC16F84A microcontroller allows for versatile programming capabilities, enabling the storage of received codes in both RAM and EEPROM for later retrieval and execution.

The firmware includes a specific routine designed to convert received opcodes into the appropriate infrared (IR) packet format necessary for communication with the RCX. This conversion is crucial for ensuring that the commands sent from the PIC to the RCX are correctly interpreted and executed.

Modifications made to the UIRT circuit enhance its functionality and reliability. The first modification involves connecting a jumper from the MCLR pin of the PIC16F84A to the positive terminal of a 100 µF capacitor. This connection is essential as it prevents the microcontroller from resetting during operation, which could disrupt the communication process.

The second modification entails the construction of a 5V power supply utilizing a 7805 voltage regulator. This regulator provides a stable 5V output necessary for powering the PIC microcontroller and associated components. The inclusion of a 0.1 µF capacitor helps filter any noise from the power supply, ensuring reliable operation. The power supply is connected to a 9V battery, which is also linked across the 100 µF capacitor, providing the necessary voltage and current to the circuit.

Overall, this setup is designed to enable efficient and robust communication between the PIC microcontroller and the Lego RCX, making it suitable for various applications in robotics and remote control systems.I just finished a half duplex serial asynchronous link from a simple PIC circuit to the RCX. It is able to receive codes from the RCX (or Lego RCX remote control) store them in RAM & EEPROM and transmit any IR op-code to the RCX in turn. Included in the firmware is a routine that takes any opcode(s) and expand it to the proper IR packet for transmission to the RCX.

I've used the UIRT circuit with a few modifications for the hardware. The UIRT includes a serial port programmer for the PIC16F84A so you won't need a separate programmer. UIRT modifications: 1) connect a jumper from MCLR (PIC16F84A pin 4) to the V+ (+ end of the 100uf capacitor). This keeps the PIC from resetting. 2)Build a 5V power supply. I used a 7805, a 0.1uf cap. and a 9V battery connected across the 100uf capac

Related Circuits