Apress Access

Mastering the Raspberry Pi

By Warren Gay

  • eBook Price: $34.99
Buy eBook Buy Print Book
Mastering the Raspberry Pi goes far beyond the basics to show you exactly how the Pi works and how you can work with it. From detailed hardware explanations to cross-compiling the kernel to building an H-bridge driver to run motors in reverse, Mastering the Raspberry Pi has all of the advanced information you need to become a true Raspberry Pi expert.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-484201-82-4
  • 504 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: August 25, 2014
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Building Arduino Projects for  the Internet of Things
  • Windows 10 for the Internet of Things
  • Scratch by Example
  • Building a Virtual Assistant for Raspberry Pi
Full Description

You probably already know that the Raspberry Pi is an excellent teaching tool. If you want to teach Linux basics or Python programming or basic electronics, it's a great place to start. But what if you are an electronics engineer or a Linux systems administrator or a very experienced maker? You want to know all of the details and inner working of the Raspberry Pi -- how to (figuratively or maybe even literally) make it get up and dance without wading through basics and introductory material.

If you want to get right into the pro-level guts of the Raspberry Pi, complete with schematics, detailed hardware explanations, messing around with runlevels, reporting voltages and temperatures, and recompiling the kernel, then Mastering the Raspberry Pi is just the book you need. Along with all of the thorough explanations of hardware and operating system, you'll also get a variety of project examples and explanations that you can tune for your own project ideas.

You'll find yourself turning to Mastering the Raspberry Pi over and over again for both inspiration and reference. Whether you're an electronics professional, an entrepreneurial maker, or just looking for more detailed information on the Raspberry Pi, this is exactly the book for you.

What you’ll learn

  • How to set up the Raspberry Pi for bare metal interfacing
  • Detailed and clear explanations of the Pi's hardware capabilities, including GPIO
  • Working with Linux on the Pi, including boot files, the Pi's own vcgencmd command, and cross-compiling software, including the kernel
  • How to make a GPIO extender
  • How to work with a stepper motor and the Pi, including building an H-bridge driver
  • How to make a remote control panel with the Pi
  • How to use Pulse Width Modulation with the Pi

Who this book is for

Experienced electronics engineers, Linux admins and users, and makers wanting to go far beyond the basics with Raspberry Pi.

Table of Contents

Table of Contents

Part I: Introduction

Ch. 1 - Why This Book?

Ch. 2 - The Raspberry Pi

Ch. 3 – Preparation: Hardware and Network

Part II: Hardware

Ch. 4 – Figuring Out Power Requirements

Ch. 5 - Header Strips, LEDs, and Reset

Ch. 6 – Working with Memory

Ch. 7 – The CPU and Working with Threads

Ch. 8 – USB Power and API Support

Ch. 9 – Working with Wired and Wireless Ethernet

Ch. 10 - SD Card Storage

Ch. 11 – Serial Communication

Ch. 12 – GPIO: Your Interface to the Outside World

Ch. 13 - 1-Wire Driver

Ch. 14 - I2C Bus: The Two Wire Interface

Ch. 15 - SPI Bus: Signaling, API, and Testing

Part III: Software

Ch. 16 – Booting ARM Linux

Ch. 17 – Initialization: Working with Runlevels

Ch. 18 – vcgencmd: Reporting Voltages and Temperatures

Ch. 19 - Linux Console

Ch. 20 – Building a Cross-Compiler

Ch. 21 – Cross-Compiling the Kernel

Part IV: Projects

Ch. 22 – Humidity and Temperature Sensor

Ch. 23 - GPIO Extender

Ch. 24 - Nunchuk Mouse

Ch. 25 - Real-Time Clock

Ch. 26 - IR Receiver

Ch. 27 - Stepper Motor

Ch. 28 - The H-Bridge Driver

Ch. 29 - Remote Control Panel

Ch. 30 - Pulse Width Modulation: Driving an Analog Meter


A. Glossary

B. Power Standards

C. Electronics Reference

D. Raspbian apt Commands

E. ARM Compile Options

F. Mac OS X Tips

G. Bibliography

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published


    1. Learn Raspberry Pi 2 with Linux and Windows 10


      View Book

    2. Robot Building for Beginners, Third Edition


      View Book

    3. Pro Arduino


      View Book

    4. Practical OpenCV


      View Book