更新时间:2021-07-16 11:24:46
coverpage
Raspberry Pi By Example
Credits
About the Authors
About the Reviewers
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
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
Chapter 3. Building Games with PyGame
Introducing PyGame
Installing PyGame
Drawing a binary fractal tree
Building a snake game
Chapter 4. Working with a Webcam and Pi Camera
Working with webcams
Working with the Pi Camera and NoIR Camera modules
Chapter 5. Introduction to GPIO Programming
Introducing GPIO pins
Building an LED Blinker
Installing PiGlow
Using PiGlow
Building a binary clock
Chapter 6. Creating Animated Movies with Raspberry Pi
Introducing stop-motion animation
Setting up the prerequisites
Rendering the video
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
Chapter 8. Creating Your Own Motion Detection and Tracking System
Thresholding images
Noise
Morphological transformations on images
Motion detection and tracking
Chapter 9. Grove Sensors and the Raspberry Pi
Introducing the GrovePi
Setting up the GrovePi
Displaying the weather
Intruder detection system
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
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
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
Chapter 13. Setting Up a Web Server on the Raspberry Pi