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)

Setting up our hardware

The first thing we are going to do is to set up our pieces of hardware so that the Pi Zero can communicate with each piece correctly. The Pulse Sensor Amped is a 5V analog device designed for use with the Arduino products. Arduino boards have a builtin Analog to Digital Converter (ADC), which allows you to connect analog sensors and monitor them digitally. The Pi Zero does not have an ADC; this is where the Enviro pHAT comes in. We will use the ADC of the Enviro pHAT to connect our analog heart rate sensor to our Pi Zero and finally use the Scroll pHAT HD as our display system. There is one more problem, which we need to solve with this sensor; the problem is that it's output is at 5V and our Pi Zero and the Enviro pHAT wants the input at 3.3V. To achieve this, we are going to use a simple resistor-based voltage divider. We are going to use 3 x 330...