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
The board can now be tested. Set the DIP switch to Switch1 ON, Switch2 OFF (15-second delay), Switch3 ON, and Switch4 OFF (4 rings to activate half for switching ON). To switch ON relay 1 (connected to RB0 of the...
This project involves building a clock using a PIC microcontroller, specifically the PIC16F84A. The design is inspired by Bob Blick's propeller clock, with several modifications made to improve functionality. Initially, programming the PIC proved challenging, requiring multiple attempts with homemade...
The choice of material to read or drive is the definition of three digits (Bit), RA0, 1,2 PORTA of the PIC at the entrance of 74HC138A. To select a material for reading or driving an output of 78HC138 is '0...
Communication with the MCP3028 ADC chip is achieved through a straightforward serial interface that adheres to the SPI protocol. The PIC16F84 or PIC16F628 does not possess a hardware SPI peripheral. However, a software-implemented SPI protocol can facilitate communication with the...
Installing a small dash-mounted two-speed fan in a motorhome. What is the best method? Use a one-channel relay or a four-channel relay with separate wires (one for low speed and one for high speed)? Any additional ideas? Would it damage...
Modern ICON electronic engine controls from BRP
The ICON electronic engine control system developed by Bombardier Recreational Products (BRP) represents a significant advancement in marine technology. This system integrates sophisticated electronic controls to enhance the performance and reliability of marine engines....
The latest addition to the collection of Infrared (IR) Repeater circuits, the Mark 5, is a significantly enhanced version of the Mark 1 circuit, featuring improved range and sensitivity. It is designed to be immune to the effects of ambient...
A microcontroller is an integrated circuit that includes components such as RAM, ROM, CPU, timers, and counters. The PIC microcontroller is a specific type of microcontroller that also features RAM, ROM, a CPU, timers, counters, and includes ADC (analog to...
The PC board has been designed to accept either a PIC16F84A or PIC16F628. With the introduction of the 628 to the world market, it has taken over from the PIC16F84A and we will be ceasing to design projects for the...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more