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: http://letsmakerobots.com/node/36745
- software PWM: http://letsmakerobots.com/node/36745
I'll figure that out for bot #2!