Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

LittleYellowRobot

Setup guide and code for the little yellow robot retro-fit

LIRC

First, you will need an IR receiver (I have used a TSOP38238, from eBay) and get that setup on your Raspberry Pi. From this guide, this guide and also this guide you will need to:

  • sudo apt-get install lirc
  • Edit /boot/config (only using the gpio_in_pin argument, as we aren't transmitting) to uncomment/add
dtoverlay=lirc-rpi
dtparam=gpio_pin_in=27
  • Edit /etc/lirc/hardware.conf
LIRCD_ARGS="--uinput"
LOAD_MODULES="true"
DRIVER="default"
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
LIRCD_CONF="/path/to/scph-10150.conf"
LIRCMD_CONF=""

Python

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

In use

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.

About

Code twiddles for the yellow robot retro-fit

Resources

License

Releases

No releases published

Packages

No packages published

Languages