Book Image

Wearable-Tech Projects with the Raspberry Pi Zero

By : Jon Witts
Book Image

Wearable-Tech Projects with the Raspberry Pi Zero

By: Jon Witts

Overview of this book

With Wearable-Tech Projects with the Raspberry Pi Zero, you will begin with learning how to install the required software for your upcoming projects. You will also learn how to control electronic devices with the GPIOZero Python library. Next, you will be creating some stylish wearable-tech projects such as a motion-reactive LED cap and a Tweet-activated LED T-shirt. Toward the end of the book, you will be creating some useful health and fitness wearable-tech projects; these will help you monitor your heart rate, track your movements with GPS, and count your footsteps with your own pedometer. By the end of the book, you will have created a range of wearable-tech projects and learned enough about your Raspberry Pi Zero that you should be able to adapt these projects further or come up with your own creations!
Table of Contents (10 chapters)

Configuring our Pi Zero to connect to the hardware

You may have noticed from the labelling on the GPS module and from the pins that we connected the module to our Pi Zero on that we are using a serial device. The tell-tale sign for this was the TX and RX labelled pins on the GPS module board. You may also have noticed that we crossed these connections over to our Pi Zero; in that, we connected the TX from the GPS module to the RX on the Pi Zero and vice versa.

To make use of the Pi Zero's hardware serial pins, we need to make a number of changes to our software. The changes that are needed will depend upon whether you are using Pi Zero or Pi Zero W. The reason for the differences between the two editions of Pi Zero are because the Bluetooth added to Pi Zero W and Pi 3 boards make use of the serial port, so we need to take an extra step to stabilize our serial communications...