Raspberry Pi By Example

Start building amazing projects with the Raspberry Pi right out of the box
Preview in Mapt

Raspberry Pi By Example

Ashwin Pajankar, Arush Kakkar

2 customer reviews
Start building amazing projects with the Raspberry Pi right out of the box
Mapt Subscription
FREE
$29.99/m after trial
eBook
$6.40
RRP $31.99
Save 79%
Print + eBook
$39.99
RRP $39.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
$6.40
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Raspberry Pi By Example Book Cover
Raspberry Pi By Example
$ 31.99
$ 6.40
Vaadin 7 UI Design By Example: Beginner’s Guide Book Cover
Vaadin 7 UI Design By Example: Beginner’s Guide
$ 29.99
$ 21.00
Buy 2 for $23.90
Save $38.08
Add to Cart
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
 

Book Details

ISBN 139781785285066
Paperback294 pages

Book Description

Want to put your Raspberry Pi through its paces right out of the box? This tutorial guide is designed to get you learning all the tricks of the Raspberry Pi through building complete, hands-on hardware projects. Speed through the basics and then dive right in to development!

Discover that you can do almost anything with your Raspberry Pi with a taste of almost everything. Get started with Pi Gaming as you learn how to set up Minecraft, and then program your own game with the help of Pygame. Turn the Pi into your own home security system with complete guidance on setting up a webcam spy camera and OpenCV computer vision for image recognition capabilities. Get to grips with GPIO programming to make a Pi-based glowing LED system, build a complete functioning motion tracker, and more. Finally, get ready to tackle projects that push your Pi to its limits. Construct a complete Internet of Things home automation system with the Raspberry Pi to control your house via Twitter; turn your Pi into a super-computer through linking multiple boards into a cluster and then add in advanced network capabilities for super speedy processing!

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

What You Will Learn

  • Set up your Raspberry Pi and get it ready for some interesting real-life projects
  • Work with images, videos, webcams, and the Pi camera and create amazing time-lapse videos
  • Explore the amazing world of Minecraft Pi
  • Get to know how to use PiGlow for GPIO programming
  • Interface your Pi with Grove Sensors and implement IoT applications
  • Build your own cluster with Raspberry Pi
  • Understand the networking and network programming fundamentals

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

Book Details

ISBN 139781785285066
Paperback294 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Raspberry Pi Cookbook for Python Programmers Book Cover
Raspberry Pi Cookbook for Python Programmers
$ 26.99
$ 18.90
Python Machine Learning Book Cover
Python Machine Learning
$ 35.99
$ 25.20
Raspberry Pi Projects for Kids - Second Edition Book Cover
Raspberry Pi Projects for Kids - Second Edition
$ 19.99
$ 14.00
Raspberry Pi Projects for Kids Book Cover
Raspberry Pi Projects for Kids
$ 14.99
$ 10.50
Practical Machine Learning Book Cover
Practical Machine Learning
$ 37.99
$ 26.60
Building Minecraft Server Modifications - Second Edition Book Cover
Building Minecraft Server Modifications - Second Edition
$ 23.99
$ 16.80