0%

Book Description

Leverage the cheapest and smallest computer to build exciting wearable-tech projects.

About This Book

  • A practical and imaginative guide that exposes you to amazing wearable-tech projects
  • Create our own heart-rate monitor device and cool projects such as a Tweet-activated LED T-shirt
  • A practical guide packed with real-world, useful wearable-tech projects

Who This Book Is For

Everyone.

While some prior knowledge of Python programming and use of the terminal on the Raspberry Pi would be advantageous, they are by no means necessary. Each chapter clearly sets the steps to be taken on your wearable-tech adventure. The first chapter assumes no prior knowledge to get your Pi Zero and you, up and running. The complexity of the electronic devices used, progress incrementally as you work through the chapters; there are clear steps to follow and pictures to help you at every turn along the way.

What You Will Learn

  • Make use of your Raspberry Pi Zero to create wearable-tech projects
  • Interface with electronic devices and use Python to control them; incorporate these into real-world, practical, wearable-tech projects
  • Add LED devices to clothing and connect them to your Pi Zero
  • Change how LEDs react based upon your movement or messages sent through Twitter
  • Create a pedometer and heart rate monitor
  • Create your own GPS tracker

In Detail

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!

Style and approach

This book showcases interesting and cool projects that use the Raspberry Pi Zero in wearable-tech. This book is for readers who are looking to progress to the next level of integrating hardware into their projects. Upon completion of each project, you will have a functional device that can be worn either to enhance your style or to provide you with practical data.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

Table of Contents

  1. Preface
    1. What this book covers
    2. What you will need
    3. Who this book is for
    4. Conventions
    5. Reader feedback
    6. Customer support
      1. Downloading the example code
      2. Downloading the color images of this book
      3. Errata
      4. Piracy
      5. Questions
  2. About the Raspberry Pi
    1. What we will cover
    2. A little history
    3. The bill of parts
    4. Installing our software
      1. Using Etcher to copy our image
    5. Connecting to GPIO headers
      1. Hammer headers
      2. Solder headers
        1. Getting your equipment ready
    6. Headless access
      1. Enabling SSH access
      2. Setting up your Wi-Fi network
      3. Connecting to your Pi
        1. SSH from Windows
        2. SSH from macOS
        3. SSH from Linux
      4. Final setup
        1. Changing your password
        2. Changing the hour hostname
        3. Installing basic software
    7. Basic electronics
      1. Wiring up the electronics
      2. Writing the Python program
      3. Breaking down the program
    8. Summary
  3. Scrolling LED Badge
    1. What we will cover
    2. The bill of parts
    3. Putting the hardware together
      1. Wiring up the Scroll pHAT HD
      2. Wiring up the Pi
      3. Attaching the Pi and the Scroll pHAT HD
    4. Installing and writing the software
      1. Testing our Scoll pHAT HD
      2. Our scrolling badge program
      3. Making our program start automatically
        1. Creating our systemd service definition
    5. Finalizing our hardware setup
      1. Wiring an off switch to our Pi Zero
      2. Write our shutdown program
        1. Making our shutdown program run automatically
    6. Putting it all together
      1. Installing the Pi Zero into its case
      2. Making our Scroll pHAT HD badge
    7. Summary
  4. Sewable LEDs in Clothing
    1. What We Will Cover
    2. The bill of parts
    3. Modifying our item of clothing
      1. Our hidden pocket
      2. Adding our sewable LEDs
      3. Connecting our Pi Zero
    4. Writing our Python program
      1. Testing our LEDs
      2. Our final LED program
    5. Making our program start automatically
    6. Summary
  5. A Motion-Reactive LED Cap
    1. What we will cover
    2. The bill of parts
    3. Connecting our hardware
      1. Connecting our accelerometer
      2. Testing our accelerometer
      3. Connecting our Blinkt
      4. Testing Blinkt
    4. Modifying our cap
    5. Writing our program
      1. Understanding our accelerometer readings
      2. What did we just do?
    6. Making our program start automatically
    7. Summary
  6. A Tweet-Activated LED T-Shirt
    1. What we will cover
    2. The bill of parts
    3. Creating our personal t-shirt design
    4. Adding our LEDs to our fabric
    5. Testing our LEDs
    6. Writing our main Python program
      1. Preparing your Twitter account
      2. Installing the Python libraries
        1. Our first Python Tweet
      3. Our final program
    7. Connecting our Pi Zero to the internet
    8. Making our program start automatically
    9. Finalizing the garment modifications
    10. Summary
  7. An LED Laptop Bag
    1. What we will cover
    2. The bill of parts
    3. Creating our electrical circuit
    4. Controlling our LED strip with Python
    5. Adding our LED strip to the bag
    6. Writing our main Python program
    7. Making our program start automatically
    8. Summary
  8. Creating Your Own Pedometer
    1. What we will cover
    2. The bill of parts
    3. How a pedometer works
    4. Setting up our hardware
    5. Counting steps with Python
      1. Graphing our steps
      2. Creating our main program
    6. Making our program run automatically
    7. Summary
  9. Creating Your Own Heart Rate Monitor
    1. What we will cover
    2. The bill of parts
    3. Setting up our hardware
    4. Reading our heart rate
    5. Making our program run automatically
    6. Summary
  10. Creating Your Own GPS Tracker
    1. What we will cover
    2. The bill of parts
    3. Setting up our hardware
    4. Configuring our Pi Zero to connect to the hardware
    5. Reading our GPS data
    6. Creating KML files
      1. Uploading KML files to Google Maps and Earth
        1. Uploading KML files to Google Maps
        2. Uploading KML files to Google Earth
    7. Creating our final program
    8. Making our program run automatically
    9. Testing our GPS tracker
    10. Summary
3.133.109.211