Raspberry Pi: Amazing Projects from Scratch

Explore the powers of Raspberry Pi and build your very own projects right out of the box

Raspberry Pi: Amazing Projects from Scratch

Ashwin Pajankar et al.

4 customer reviews
Explore the powers of Raspberry Pi and build your very own projects right out of the box
Mapt Subscription
FREE
€29.98/m after trial
eBook
€43.68
RRP €62.38
Save 29%
Print + eBook
€64.99
RRP €64.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€43.68
€64.99
€29.98p/m after trial
RRP €62.38
RRP €64.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781787128491
Paperback593 pages

Book Description

Looking for inspiration for your next Raspberry Pi project? Not sure where to begin? This Learning Path is the perfect place to begin, providing you with an accessible yet comprehensive journey through Raspberry Pi. Following three modules, you’ll soon be confident and prepared to get creative with your microcomputer.
Raspberry Pi by Example is the first module in this Learning Path – and it does exactly what it says. It doesn’t just teach, it shows you how to go and build some awesome Raspberry Pi projects immediately. Build and play your own games with the Pi, build a complete Internet of Things home automation system that controls your house through Twitter… let your imagination run wild!
In the next module we’ll look in more depth at building a home security system. You’ll be using some of the skills you devoped through the first module, but apply them to something more intricate and impressive. Using a Linux based operating system as the foundations, you’ll gradually build up an entire security infrastructure adding cameras, remote controls, and even intrusion alerts!
In the final module, we’ll take you into the world of Raspberry Pi robotics. By the end of it, you’ll have built a biped robot that can interact with its environment!
This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products:

  • Raspberry Pi By Example by Ashwin Pajankar and Arush Kakkar
  • Building a Home Security System with Raspberry Pi by Matthew Pole
  • Raspberry Pi Robotics Essentials by Richard Grimmett

Table of Contents

Chapter 1: Introduction to Raspberry Pi and Python
Single-board computers
Raspberry Pi
Operating systems
Setting up the Raspberry Pi
Getting started with Python
Summary
Chapter 2: Minecraft Pi
Introduction to Minecraft Pi
Playing Minecraft Pi
Python programming for Minecraft Pi
Summary
Chapter 3: Building Games with PyGame
Introducing PyGame
Installing PyGame
Drawing a binary fractal tree
Building a snake game
Summary
Chapter 4: Working with a Webcam and Pi Camera
Working with webcams
Working with the Pi Camera and NoIR Camera modules
Summary
Chapter 5: Introduction to GPIO Programming
Introducing GPIO pins
Building an LED Blinker
Installing PiGlow
Using PiGlow
Building a binary clock
Summary
Chapter 6: Creating Animated Movies with Raspberry Pi
Introducing stop-motion animation
Setting up the prerequisites
Rendering the video
Summary
Chapter 7: Introduction to Computer Vision
Introducing Computer Vision
Introducing OpenCV
Setting up Pi for Computer Vision
Introducing NumPy
Working with images
Working with Webcam using OpenCV
Retrieving image properties
Arithmetic operations on images
Splitting and merging image color channels
Logical operations on images
Colorspaces and conversions
Tracking in real time based on color
Summary
Chapter 8: Creating Your Own Motion Detection and Tracking System
Thresholding images
Noise
Morphological transformations on images
Motion detection and tracking
Summary
Chapter 9: Grove Sensors and the Raspberry Pi
Introducing the GrovePi
Setting up the GrovePi
Displaying the weather
Intruder detection system
Summary
Chapter 10: Internet of Things with the Raspberry Pi
Introducing the Internet of Things
Installing the Twitter API for Python
Setting up a SQLite database in Python
Building a tweeting weather station
Summary
Chapter 11: Build Your Own Supercomputer with Raspberry Pi
Introducing a Pi-based supercomputer
Installing and configuring MPICH2 and MPI4PY
Setting up the Raspberry Pi cluster
Setting up SSH access from the host to the client
Running code in parallel
Performance benchmarking of the cluster
Introducing N-Body simulations
Installing and running GalaxSee
Summary
Chapter 12: Advanced Networking with Raspberry Pi
Introducing DHCP
A few networking concepts
Configuring a Raspberry Pi to act as a DHCP server
Introducing Domain Naming System (DNS)
Setting up a DNS server on the Pi
Configuring the setup for a web server
Automating node discovery in a network
Summary
Chapter 13: Setting Up a Web Server on the Raspberry Pi
Introducing and installing Apache on Raspbian
Installing PHP and MySQL
Installing WordPress
Summary
Chapter 14: Network Programming in Python with the Pi
The basics of sockets
The difference between TCP and UDP
Looking back
A Telnet client in Python
A chat program
References
Exercise
Summary
Chapter 15: Newer Raspberry Pi Models
The Raspberry Pi Zero
The Raspberry Pi 3
Chapter 16: Setting Up Your Raspberry Pi
Which flavor of Pi?
Preparing the SD card
Setting up your Pi
Summary
Chapter 17: Connecting Things to Your Pi with GPIO
Prerequisites
Say hello to the GPIO
Getting acquainted with the GPIO
The most elaborate light switch in the world
Summary
Chapter 18: Extending Your Pi to Connect More Things
Prerequisites
The I2C bus
Give me power
Building an I2C expander
Using ready-made expansion boards
Summary
Chapter 19: Adding a Magnetic Contact Sensor
Prerequisites
The working of magnetic contact sensors
Setting up the I2C port expander
Connecting our magnetic contact sensor
Monitoring the sensor
Anti-tamper circuits
Getting into the zone
Summary
Chapter 20: Adding a Passive Infrared Motion Sensor
Prerequisites
Passive infrared sensors explained
Give me power (again)
Connecting our PIR motion sensor
12V alarm zone circuits
Wireless PIR motion sensors
Logging detection data
Summary
Chapter 21: Adding Cameras to Our Security System
Prerequisites
The Raspberry Pi camera module
Be a video star
You have new mail
Night vision
Using USB cameras
The multicamera setup
Summary
Chapter 22: Building a Web-Based Control Panel
Installing the web server
Being in control
The master configuration file
Creating the web page
Remote access to our control panel
Summary
Chapter 23: A Miscellany of Things
Arming and disarming the system
Driving inductive loads
Beyond intrusion
Remote administration for our Raspberry Pi
Summary
Chapter 24: Putting It All Together
Alarm system diagram
Designing the control scripts
Building the control script
Automatically starting the system
Preserving the SD card
Conclusion
Summary
Chapter 25: Configuring and Programming Raspberry Pi
Configuring Raspberry Pi – the brain of your robot
Installing the operating system
Adding a remote graphical user interface
Programming on Raspberry Pi
Summary
Chapter 26: Building the Biped
Building robots that can walk
How servo motors work
Building the biped platform
Using a servo controller to control the servos
Communicating with the servo controller with a PC
Connecting the servo controller to the Raspberry Pi
Creating a program to control your biped
Summary
Chapter 27: Motion for the Biped
A basic stable pose
A basic walking motion
A basic turn for the robot
Summary
Chapter 28: Avoiding Obstacles Using Sensors
Connecting Raspberry Pi to an infrared sensor
Connecting Raspberry Pi to a USB sonar sensor
Summary
Chapter 29: Path Planning and Your Biped
Connecting a digital compass to the Raspberry Pi
Accessing the compass programmatically
Dynamic path planning for your robot
Summary
Chapter 30: Adding Vision to Your Biped
Installing a camera on your biped robot
Downloading and installing OpenCV – a fully featured vision library
Edge Detection and OpenCv
Color and motion finding
Summary
Chapter 31: Accessing Your Biped Remotely
Adding a wireless dongle and creating an access point
Adding a joystick remote control
Adding the capability to see remotely
Summary

What You Will Learn

  • Discover an aweome range of Raspberry Pi projects
  • Bridge the gap between software and hardware through your Pi and find out how to make an operating system interact with cameras and other hardware
  • Find out how to use your Raspberry Pi for gaming
  • Secure your home with this tiny computer!
  • Make science fiction a reality – build a walking robot

Authors

Table of Contents

Chapter 1: Introduction to Raspberry Pi and Python
Single-board computers
Raspberry Pi
Operating systems
Setting up the Raspberry Pi
Getting started with Python
Summary
Chapter 2: Minecraft Pi
Introduction to Minecraft Pi
Playing Minecraft Pi
Python programming for Minecraft Pi
Summary
Chapter 3: Building Games with PyGame
Introducing PyGame
Installing PyGame
Drawing a binary fractal tree
Building a snake game
Summary
Chapter 4: Working with a Webcam and Pi Camera
Working with webcams
Working with the Pi Camera and NoIR Camera modules
Summary
Chapter 5: Introduction to GPIO Programming
Introducing GPIO pins
Building an LED Blinker
Installing PiGlow
Using PiGlow
Building a binary clock
Summary
Chapter 6: Creating Animated Movies with Raspberry Pi
Introducing stop-motion animation
Setting up the prerequisites
Rendering the video
Summary
Chapter 7: Introduction to Computer Vision
Introducing Computer Vision
Introducing OpenCV
Setting up Pi for Computer Vision
Introducing NumPy
Working with images
Working with Webcam using OpenCV
Retrieving image properties
Arithmetic operations on images
Splitting and merging image color channels
Logical operations on images
Colorspaces and conversions
Tracking in real time based on color
Summary
Chapter 8: Creating Your Own Motion Detection and Tracking System
Thresholding images
Noise
Morphological transformations on images
Motion detection and tracking
Summary
Chapter 9: Grove Sensors and the Raspberry Pi
Introducing the GrovePi
Setting up the GrovePi
Displaying the weather
Intruder detection system
Summary
Chapter 10: Internet of Things with the Raspberry Pi
Introducing the Internet of Things
Installing the Twitter API for Python
Setting up a SQLite database in Python
Building a tweeting weather station
Summary
Chapter 11: Build Your Own Supercomputer with Raspberry Pi
Introducing a Pi-based supercomputer
Installing and configuring MPICH2 and MPI4PY
Setting up the Raspberry Pi cluster
Setting up SSH access from the host to the client
Running code in parallel
Performance benchmarking of the cluster
Introducing N-Body simulations
Installing and running GalaxSee
Summary
Chapter 12: Advanced Networking with Raspberry Pi
Introducing DHCP
A few networking concepts
Configuring a Raspberry Pi to act as a DHCP server
Introducing Domain Naming System (DNS)
Setting up a DNS server on the Pi
Configuring the setup for a web server
Automating node discovery in a network
Summary
Chapter 13: Setting Up a Web Server on the Raspberry Pi
Introducing and installing Apache on Raspbian
Installing PHP and MySQL
Installing WordPress
Summary
Chapter 14: Network Programming in Python with the Pi
The basics of sockets
The difference between TCP and UDP
Looking back
A Telnet client in Python
A chat program
References
Exercise
Summary
Chapter 15: Newer Raspberry Pi Models
The Raspberry Pi Zero
The Raspberry Pi 3
Chapter 16: Setting Up Your Raspberry Pi
Which flavor of Pi?
Preparing the SD card
Setting up your Pi
Summary
Chapter 17: Connecting Things to Your Pi with GPIO
Prerequisites
Say hello to the GPIO
Getting acquainted with the GPIO
The most elaborate light switch in the world
Summary
Chapter 18: Extending Your Pi to Connect More Things
Prerequisites
The I2C bus
Give me power
Building an I2C expander
Using ready-made expansion boards
Summary
Chapter 19: Adding a Magnetic Contact Sensor
Prerequisites
The working of magnetic contact sensors
Setting up the I2C port expander
Connecting our magnetic contact sensor
Monitoring the sensor
Anti-tamper circuits
Getting into the zone
Summary
Chapter 20: Adding a Passive Infrared Motion Sensor
Prerequisites
Passive infrared sensors explained
Give me power (again)
Connecting our PIR motion sensor
12V alarm zone circuits
Wireless PIR motion sensors
Logging detection data
Summary
Chapter 21: Adding Cameras to Our Security System
Prerequisites
The Raspberry Pi camera module
Be a video star
You have new mail
Night vision
Using USB cameras
The multicamera setup
Summary
Chapter 22: Building a Web-Based Control Panel
Installing the web server
Being in control
The master configuration file
Creating the web page
Remote access to our control panel
Summary
Chapter 23: A Miscellany of Things
Arming and disarming the system
Driving inductive loads
Beyond intrusion
Remote administration for our Raspberry Pi
Summary
Chapter 24: Putting It All Together
Alarm system diagram
Designing the control scripts
Building the control script
Automatically starting the system
Preserving the SD card
Conclusion
Summary
Chapter 25: Configuring and Programming Raspberry Pi
Configuring Raspberry Pi – the brain of your robot
Installing the operating system
Adding a remote graphical user interface
Programming on Raspberry Pi
Summary
Chapter 26: Building the Biped
Building robots that can walk
How servo motors work
Building the biped platform
Using a servo controller to control the servos
Communicating with the servo controller with a PC
Connecting the servo controller to the Raspberry Pi
Creating a program to control your biped
Summary
Chapter 27: Motion for the Biped
A basic stable pose
A basic walking motion
A basic turn for the robot
Summary
Chapter 28: Avoiding Obstacles Using Sensors
Connecting Raspberry Pi to an infrared sensor
Connecting Raspberry Pi to a USB sonar sensor
Summary
Chapter 29: Path Planning and Your Biped
Connecting a digital compass to the Raspberry Pi
Accessing the compass programmatically
Dynamic path planning for your robot
Summary
Chapter 30: Adding Vision to Your Biped
Installing a camera on your biped robot
Downloading and installing OpenCV – a fully featured vision library
Edge Detection and OpenCv
Color and motion finding
Summary
Chapter 31: Accessing Your Biped Remotely
Adding a wireless dongle and creating an access point
Adding a joystick remote control
Adding the capability to see remotely
Summary

Book Details

ISBN 139781787128491
Paperback593 pages
Read More
From 4 reviews

Read More Reviews

Recommended for You

Raspberry Pi Cookbook for Python Programmers Book Cover
Raspberry Pi Cookbook for Python Programmers
€ 25.18
€ 17.64
Raspberry Pi Networking Cookbook - Second Edition Book Cover
Raspberry Pi Networking Cookbook - Second Edition
€ 39.58
€ 27.72
Python Machine Learning Book Cover
Python Machine Learning
€ 39.58
€ 27.72
Modern Python Cookbook Book Cover
Modern Python Cookbook
€ 41.98
€ 29.40
Getting started with Shiny [Video] Book Cover
Getting started with Shiny [Video]
€ 142.78
€ 121.38
Getting Started with Spring 5.0 [Video] Book Cover
Getting Started with Spring 5.0 [Video]
€ 142.78
€ 121.38