robotics with the Raspberry Pi

Robotics with the Raspberry Pi





The Raspberry Pi has got to be one of the best $40 purchases I have ever made. It was so good, I bought more than a dozen more. Not only does it make for an extremely cheap Linux computer, it also makes for a superb bridge between the Python programming language and robotics. The Raspberry Pi is just a credit-card sized computer. You'll need a usb mouse, a cell phone charger (micro usb), a usb keyboard and an HDMI monitor, but, otherwise, it's a full computer. Think of it like buying a computer tower, without the power cord. Many people have a 5v 1000mA micro usb cell phone charger lying around, however, as well as many of the other parts.

There are all sorts of projects that people have used the Raspberry Pi for. You can also learn about cluster computing by stacking your Pis.

In this tutorial series, we have a simple four-wheeled car. Each side's wheels function together. The car can go forward, reverse, turn left, turn right, or even pivot in place. The car's onboard computer (Raspberry Pi) is powered by the Ankur portable cellphone charger. That's the tube structure on top.

Next up, there is a front ultrasonic distance sensor, the HC-SR04, which informs the car of objects in its way.

The final modification is somewhat difficult to see, but it is the Raspberry Pi Camera Module. That's hidden in the front-center. You can see the camera lens through the center hole facing out.

The distance sensor's purpose is to allow for some autonomy, so the car can drive itself. We probably should add a rear sensor as well though! The camera streams via HTTP access protocol back to a computer. For this, we use VLC Media player to play the network stream.

This series is dedicated to teaching you how to do all of this.


The next tutorial:






  • Robotics with the Raspberry Pi
  • Programming GPIO example
  • Running GPIO
  • Building Autonomous / RC car intro
  • Supplies needed
  • Motor Control
  • Connecting the four motors
  • Forward and Reverse
  • Turning
  • Pivoting
  • User Control
  • Remotely controlling the car
  • Adding a distance sensor (HC-SR04)
  • Programming with the distance sensor
  • Autopilot and/or auto-correct
  • Autonomous Beginnings
  • Testing Autonomous Code
  • Streaming video example one
  • Less latency streaming option