Hybrid Pi
Connect the littleBits Arduino module to a Raspberry Pi and you open a world of projects and a world of fun.
Connect the littleBits Arduino module to a Raspberry Pi and you open a world of projects and a world of fun.
littleBits [1] are neat little electrical components that snap together magnetically to make electrical circuits. The littleBits electronics come collected into kits, or you can purchase the components individually. We decided to combine littleBits modules, including the Arduino module, with Lego Mindstorms building blocks and a Raspberry Pi to create a hybrid rover (see the "Rover Parts List" box).
Rover Parts List
For the rover project, we used the following components:
littleBits
1 Raspberry Pi B
1 Powered USB hub
1 USB wireless network adapter
1 Portable phone charger
1 Wii remote
1 USB Bluetooth adapter
A variety of Lego parts
The steps for building the project were:
The Arduino software could be loaded on either the Rasp Pi or on a PC, but because the Rasp Pi was sandwiched inside the rover, we thought using a PC would be easier. The Arduino software is free and available for download [3].
PuTTY is a Windows SSH client that allowed us to communicate and control the Raspberry Pi through the wireless adapter that was plugged into one of the Rasp Pi's USB ports. By using PuTTY, we were able to use the PC's monitor and keyboard to program the Rasp Pi when it was inside the rover. SSH should be enabled by default on the Rasp Pi. To check, go to a terminal session and enter:
sudo raspi-config
Then navigate to ssh and enable the option.
We needed three USB connections, so we used a small USB hub. A USB network adapter was plugged directly into one of the USB ports on the Raspberry Pi. On the USB hub, we had a USB Bluetooth adapter for our Wii remote, and a short USB cable was used to communicate with the littleBits Arduino module.
To power the Raspberry Pi, we used a small USB phone charger ($10 and up). The littleBits Arduino module is powered with the 9V battery that comes with the Power module. The littleBits Power module is connected to any one of the three input connectors on the littleBits Arduino module.
Building the rover with wheels and axles from a Lego Mindstorms kit was the most challenging and time-consuming part of the project. Securing the littleBits DC motors required a lot of supporting structure (Figure 1). To get the motor modules to work together, we had to set one motor to direction "left" and the other motor to direction "right" (Figure 2).
The base of the rover houses the Rasp Pi, a phone charger, and a USB hub (Figure 3). On the top level of the rover, we mounted the littleBits Arduino module, 9V battery, and some Lego friends (Figure 4). The switch on the Arduino should be set to "pwm" (pulse-width modulation) to control the DC motors.
Pages: 6
Price $15.99
(incl. VAT)