Pivore
My first robot is a fairly simple 2WD photovore with a Raspberry Pi for the brains. I really liked that I could program a simple robot in my favorite high-level language, Python!
I also posted the code on GitHub: https://github.com/anseljh/pivore
The Pivore has two photocells mounted up front on some tiny boards I soldered together, which are hooked up to an analog/digital converter (MCP3008). Motors are driven by the usual L293D, with an I/O expander (MCP23008) in between. There is a bumper switch in front for when it runs into stuff. Of course there are also some blinky LEDs!
One challenge I ran into is varying the speeds of the two motors. Unfortunately, the Pi has only one PWM output, so I'll have to do something different, like:
- using Picaxes to drive the PWMs: https://www.robotshop.com/letsmakerobots/node/36745
- software PWM: https://www.robotshop.com/letsmakerobots/node/36745
I'll figure that out for bot #2!
Roams around looking for light
- CPU: Raspberry Pi
- Operating system: Occidentalis v.02
- Programming language: Python
- Sensors / input devices: Photoresistors, bumper switches