Search This Blog

Sunday, 22 February 2015

Lego Raspberry Pi digger



  • Raspberry Pi model B
  • Edimax USB WiFi dongle
  • 3x power functions motors
  • 2x 1980s lego lights (4.5v wired in series)
  • 2x L293D motor controllers
    • Chip A - 1 channel per track
    • Chip B - 1 channel for bucket
    • Chip B - 1 channel for lights (used as simple toggle)
  • 8x 1.2v AA batteries
  • 1x USB 5v power pack to power Pi
The Pi ran a simple Python TCP server that accepted simple strings and mapped these to actions.  E.g. "FWD" switched both tracks on in a forwards direction.  A vb.net app on a laptop provided a basic UI to capture keyboard events and send them via TCP to the Pi.  A later UI allowed a list of instructions to be created on the laptop and send at specific times.

No comments:

Post a Comment