Supercharge your Raspberry Pi

We've shown you how to send output via the GPIO, but as the name suggests, they can also receive input. With this, it's even more important to ensure you don't send too much power into the pins.

To get input, just set the mode to input with gpio –g mode in then read the value withgpio –g read .

Gertboards and Arduinos

Connecting directly to your Pi's GPIO pins can provide you with basic input and output control, but there are limitations. There are two additional items that you can obtain to help you interact more precisely with the world around you.

The Gertboard is a fairly complete expansion pack for connecting between your Pi and the real world, including a micro controller, and a range of input and output options. It comes as an unassembled kit, so you will have to get your hands on a soldering iron to put it together.

Meanwhile, the Arduino is a micro controller that can connect to your Pi (or any other computer) via the USB port. Typically, it comes assembled, but kit forms are also available. In its raw form, it has fewer features than the Gertboard (which includes an Arduino microcontroller), but it can be expanded with a huge range of shields.

The Sense HAT allows your Raspberry Pi to detect what's happening in the world around it

The Sense HAT allows your Raspberry Pi to detect what's happening in the world around it

Also check out the official Sense HAT, a plug-in board that provides your Pi with sensors to monitor the outside world. It even comes with an LED matrix to allow you to display data without the need for a monitor.

Last, but not least, the RasWIK is a wireless kit specifically designed to teach you how to build wireless sensors and actuators – and many of its included projects don't even require any soldering.

TOPICS