Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

RasPiRobot Board V2: Expand Your Raspberry Pi Into a Powerful Robot Controller

Compatible with Raspberry Pi 2 and later models.

The RasPiRobot Board V2 is a ready‑to‑use expansion board that transforms your Raspberry Pi into a fully‑featured robotic controller. Sold fully assembled, it includes a switch‑mode power supply, allowing you to power the Pi and your robot from a variety of battery packs.

Mounting directly onto the Pi’s GPIO header, the board offers bi‑directional control of two DC motors via an L293D H‑bridge driver and independent PWM speed control for each motor. Its integrated 5 V/2 A supply lets you run a fully loaded Raspberry Pi and motors from a 6‑cell AA battery pack (battery not included).

Where to Buy

In the United States, the RasPiRobot Board is available from Adafruit for $29.95. In the United Kingdom and worldwide, Seedstudio offers it for approximately £15 (prices vary with exchange rates). It is also available on Amazon.co.uk for £17.50.

Key Features

Documentation

The RRB2 builds on feedback from its predecessor to deliver improved reliability and usability.

How It Works

The board is powered by a 6 V–12 V DC battery pack. While 4 × AA batteries can theoretically supply 6 V, battery voltage often drops quickly; therefore we recommend at least 6 × AA batteries (rechargeable or heavy‑duty) or a 7.2 V LiPo pack.

The RRB2 supplies 5 V at up to 2 A directly to the Raspberry Pi and the motors, eliminating the need for an external power supply.

Most 6 V motors will operate reliably at 5 V.

Installing the Python Libraries

On your Raspberry Pi, run the following commands from a terminal:

$ wget https://github.com/simonmonk/raspirobotboard2/raw/master/python/dist/rrb2-1.1.tar.gz
$ tar -xzf rrb2-1.1.tar.gz
$ cd rrb2-1.1
$ sudo python setup.py install

Connect the RRB2 to your Pi first. For initial testing you can power the board via the Pi’s USB power connector; no batteries or motors are required at this stage.

Open a Python 2 console (Python 3 is not supported) with sudo python and execute the following commands to verify the board’s LEDs and switch:

from rrb2 import *
rr = RRB2()
rr.set_led1(1)
rr.set_led1(0)
rr.set_led2(1)
rr.set_led2(0)
rr.sw1_closed()

The last line should return False because no switch is connected.

Connecting a Battery and Motors

To build a mobile robot, pair the RRB2 with a chassis such as the Magician Chassis (widely available on eBay) or a comparable low‑cost kit. These kits typically provide a laser‑cut frame, gear motors, a battery box, and mounting hardware.

After assembling the chassis, secure the Raspberry Pi and the RRB2 on the frame. The motor leads should be routed to the L and R screw terminals; reversing the leads will reverse motor direction, so double‑check the wiring.

Important: Do not power the Raspberry Pi from both the battery pack and the USB power connector simultaneously; choose one source only.

Leave the wheels off during initial setup to prevent unintended movement. When you connect the battery pack to the third pair of screw terminals (+V outside), the Pi’s power LED should illuminate, and the RRB2 LEDs will light as well.

For wireless control, consider adding a USB Wi‑Fi dongle to enable SSH access over your network.

API Reference

The library provides an RRB2 class. All Python scripts that import this library must be executed with super‑user privileges. For detailed usage, refer to the official documentation.

Manufacturing process

  1. Ironing Board Manufacturing: Design, Materials, and Production Process
  2. Printed Circuit Boards: Design, Manufacture, and Future Trends
  3. Surfboard Construction and Design: From Polynesian Roots to Modern Innovation
  4. Build a Professional Raspberry Pi Universal Remote with LIRC
  5. Converting RF to DC with a Raspberry Pi: Building and Troubleshooting an Envelope Detector
  6. Cycle Chaser: Transform Your Bike into a Nighttime Light Show with Raspberry Pi
  7. Build a Raspberry Pi‑Based Thief Detector – Step‑by‑Step Guide
  8. Build a Raspberry Pi Geiger Counter – Open‑Hardware Radiation Sensor Tutorial
  9. Build a Raspberry Pi Home Temperature Monitor with MCP9808, InfluxDB & Grafana
  10. Build a Raspberry Pi‑Powered Home Automation System for Remote Control