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)

Testing our LEDs

We now need to attach the cables to the correct GPIO points on your Pi Zero. First, you should detach your cables from your LEDs by disconnecting the poppers. Gather all of the cables together and cut them, so they are all about the same length; make sure that you keep your identification markings on each cable! Now, you can cover them in some heat shrink and apply some heat. Each cable now needs to be stripped and tinned, ready to be soldered on to your Pi Zero.

The diagram here shows you which GPIO point to connect which cable to. Feed all the cables through the hole in the bottom of your Pi Zero case, and then carefully solder each one and snip any excess cable using side snips:

Once we have finished soldering all of your cables to your Pi Zero, we can write a short program to test if they all work. Reconnect your cables to your LEDs, ensuring that you press...