Setup guide and code for the little yellow robot retro-fit
sudo apt-get install lirc
/boot/config(only using the
gpio_in_pinargument, as we aren't transmitting) to uncomment/add
LIRCD_ARGS="--uinput" LOAD_MODULES="true" DRIVER="default" DEVICE="/dev/lirc0" MODULES="lirc_rpi" LIRCD_CONF="/path/to/scph-10150.conf" LIRCMD_CONF=""
This repository assumes specific pins are in use for the code. If you are using different components, these may have to change:
- for the motor board, the Pololu DRV8835, the BCM pins used are 5, 6, 12 and 13;
- the eyes of the robot are wired onto BCM 21 and the ground pin 40 next to it;
- the IR receiver is wired onto 5v pin 2, ground on pin 14 and BCM pin 27
When the robot it switched on, it should pulse its eyes when ready to receive commands.
On the PS2 remote, numbers 1-0 change the power being sent to the motors (1 is 10%, 9 is 90%). Steering is done with the direction keys and it is programmed to power off when you press
STOP on the remote.