roamer to Special communication (C32 to Pic16F690)
Parallel communication between the ROAMER (C32) and the SPECIAL (PIC) allow the ROAMER to receive messages regarding the battery level and lamp statuses. Below is a summary of the communication between the two:
Battery Status
- Charging/Discharging state (PIC RC0 to C32 T0)
- 1 = Charging
- 0 = Discharging
- Battery charge level (PIC RC5 to C32 T7)
- PWM duty cycle corresponds to the battery level percentages
- e.g. 60% duty cycle = battery charge at 60% of capacity
Lamp Status
- Control lamps: on/off (command to SPECIAL)
- 1 = on, 0 = off
- Right lamp (PIC RA0 to C32 M3)
- Center lamp (PIC RA1 to C32 M4)
- Left lamp (PIC RA2 to C32 M5)
- Lamp status: on/off (returned from SPECIAL)
- 1 = on, 0 = off
- Right lamp (PIC RC2 to C32 M0)
- Center lamp (PIC RC3 to C32 M1)
- Left lamp (PIC RC4 to C32 M2)
*Communication between the PIC and the SPECIAL is detailed in the "Project Description" (you can find this under The Mission)
Battery Status
- Charging/Discharging state (PIC RC0 to C32 T0)
- 1 = Charging
- 0 = Discharging
- Battery charge level (PIC RC5 to C32 T7)
- PWM duty cycle corresponds to the battery level percentages
- e.g. 60% duty cycle = battery charge at 60% of capacity
Lamp Status
- Control lamps: on/off (command to SPECIAL)
- 1 = on, 0 = off
- Right lamp (PIC RA0 to C32 M3)
- Center lamp (PIC RA1 to C32 M4)
- Left lamp (PIC RA2 to C32 M5)
- Lamp status: on/off (returned from SPECIAL)
- 1 = on, 0 = off
- Right lamp (PIC RC2 to C32 M0)
- Center lamp (PIC RC3 to C32 M1)
- Left lamp (PIC RC4 to C32 M2)
*Communication between the PIC and the SPECIAL is detailed in the "Project Description" (you can find this under The Mission)