Raspberry Pi Zero W Wireless Projects

Book description

Build DIY wireless projects using the Raspberry Pi Zero W board

About This Book

  • Explore the functionalities of the Raspberry Pi Zero W with exciting projects
  • Master the wireless features (and extend the use cases) of this $10 chip
  • A project-based guide that will teach you to build simple yet exciting projects using the Raspberry Pi Zero W board

Who This Book Is For

If you are a hobbyist or an enthusiast and want to get your hands on the latest Raspberry Pi Zero W to build exciting wireless projects, then this book is for you. Some prior programming knowledge, with some experience in electronics, would be useful.

What You Will Learn

  • Set up a router and connect Raspberry Pi Zero W to the internet
  • Create a two-wheel mobile robot and control it from your Android device
  • Build an automated home bot assistant device
  • Host your personal website with the help of Raspberry Pi Zero W
  • Connect Raspberry Pi Zero to speakers to play your favorite music
  • Set up a web camera connected to the Raspberry Pi Zero W and add another security layer to your home automation

In Detail

The Raspberry Pi has always been the go?to, lightweight ARM-based computer. The recent launch of the Pi Zero W has not disappointed its audience with its $10 release. "W" here stands for Wireless, denoting that the Raspberry Pi is solely focused on the recent trends for wireless tools and the relevant use cases. This is where our book - Raspberry Pi Zero W Wireless Projects - comes into its own.

Each chapter will help you design and build a few DIY projects using the Raspberry Pi Zero W board. First, you will learn how to create a wireless decentralized chat service (client-client) using the Raspberry Pi's features?. Then you will make a simple two-wheel mobile robot and control it via your Android device over your local Wi-Fi network. Further, you will use the board to design a home bot that can be connected to plenty of devices in your home. The next two projects build a simple web streaming security layer using a web camera and portable speakers that will adjust the playlist according to your mood. You will also build a home server to host files and websites using the board. Towards the end, you will create free Alexa voice recognition software and an FPV Pi Camera, which can be used to monitor a system, watch a movie, spy on something, remotely control a drone, and more.

By the end of this book, you will have developed the skills required to build exciting and complex projects with Raspberry Pi Zero W.

Style and approach

A step-by-step guide that will help you design and create simple yet exciting projects using the Raspberry Pi Zero W board.

Table of contents

  1. Preface
    1. What this book covers
    2. What you need for this book
    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. Introduction to Raspberry Pi Zero W
    1. The Raspberry Pi family
    2. Raspberry Pi Zero W
    3. Specifications
    4. Camera support
    5. Accessories
      1. An OTG cable
      2. PowerHub
      3. A GPIO header
      4. MicroSD card and card adapter
      5. An HDMI to mini HDMI cable
      6. An HDMI to VGA cable
      7. RCA jacks
    6. A Raspberry Pi Zero W case
    7. Distributions
      1. The NOOBS distribution
      2. The Raspbian distribution
    8. Distributors
    9. Common Issues 
      1. Debugging steps
      2. MicroSD card issue
      3. Case protection
    10. Summary
  3. IoT and Networking
    1. Internet of Things
    2. Basic communication protocols
      1. Internet protocols
      2. IoT Protocols
        1. Bluetooth
        2. Zigbee
        3. Z-Wave
        4. 6LowPAN
        5. NFC
        6. Wi-Fi
        7. LoRaWAN
    3. Connecting your Pi
      1. Pi Zero W setup
      2. The internet
      3. Local network
      4. Port forwarding
      5. Connecting to the internet
      6. Networking administration
      7. Connect for command execution
      8. Automatic authentication
    4. Connecting for file transfer
      1. FileZilla
      2. SCP
    5. Secure the Raspberry Pi and remove others
      1. Firewall
    6. Summary
  4. Chatbot
    1. User input
      1. Server installation
      2. The chatbot development
    2. Chat services
      1. Chatfuel
      2. Frow XO
      3. Converse
      4. Facebook messenger
      5. Google cleverbot
    3. Secure data transfer
    4. Summary
  5. Mobile Robot
    1. Fundamentals of robotics
      1. DC motors
      2. Torque
      3. Wheel
      4. Encoders
    2. Hardware overview
      1. DC motor and wheels
      2. Encoder
      3. Arduino microcontroller
      4. Motorshield
      5. Servo
      6. Ultrasonic sensor
      7. Bluetooth
      8. Breadboard
      9. Battery
      10. Other components
    3. Motor soldering
    4. Programming the controller
      1. Basic concept
      2. Controller development
    5. Future ideas
      1. Four motor mobile robots
    6. Summary
  6. Home Bot
    1. Introduction to home bots
    2. Socket programming
      1. Simple client-server communication
        1. Simple server
        2. Simple client
      2. Advanced client-server communication
        1. Advanced server
        2. Advanced client
    3. Home automation
    4. Summary
  7. Security Camera
    1. Installing a camera
    2. Installing MotionPie
      1. Set up multiple network cameras
      2. Connecting a camera outside of your local network
    3. Configuring MotionPie settings
      1. General settings
      2. Wireless network
      3. Video device
      4. File storage
      5. Text Overlay
      6. Video Streaming
      7. Still images
      8. Motion Detection
      9. Motion Movies
      10. Motion Notifications
      11. Working Schedule
    4. Installing OpenCV 
    5. Face recognition
    6. Summary
  8. Portable Speakers
    1. Market speakers
    2. Software setup
    3. Networking
    4. MusicBox
    5. Audio
    6. Music files
      1. Online music services
      2. Security
    7. Sound players
      1. Alsamixer
    8. Connect your speaker
    9. Music on Pi
    10. Mood selection
      1. Hardware
      2. Code
    11. Summary
  9. WebPi Hosting
    1. Web hosting
      1. Definition
      2. Hosting services
      3. Domain name
      4. DNS
      5. Setup
    2. Client-server communication
      1. Client request
      2. Communication protocols
      3. Server response
      4. Proxy servers and caching
    3. Website development
      1. XAMPP/LAMPP
      2. Accessing the website
    4. Remote control
      1. SSH
        1. SSH clients
          1. Windows
          2. Linux
        2. Automating the SSH procedure
      2. SFTP
        1. FileZilla
        2. Terminal
    5. Networking
      1. Router access
        1. Port forwarding
        2. Home IP address
        3. Security layers
      2. Security
        1. Router Interface
        2. Computer
        3. ISP
    6. Summary
  10. AlexaPi
    1. Creating an Amazon Developer account
    2. Setting up Raspberry Pi
    3. Installing Alexa
    4. Voice recognition
    5. Official Alexa vs AlexaPi
    6. Network administration
    7. Summary
  11. WeatherPi
    1. The Sense HAT module
    2. Weather station
    3. Initial State
    4. Startup
    5. Summary

Product information

  • Title: Raspberry Pi Zero W Wireless Projects
  • Author(s): Vasilis Tzivaras
  • Release date: August 2017
  • Publisher(s): Packt Publishing
  • ISBN: 9781788290524