We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Cover of Simple electronics with GPIO Zero

Simple electronics with GPIO Zero

or free e-book for contributors

There are many things that distinguish Raspberry Pi from other computers. The GPIO header might just be the most significant of them all — it allows you to connect electronic components to your Raspberry Pi and control them with code you've written yourself.

The most popular programming language for controlling electronics on a Raspberry Pi is Python, particularly the code in the GPIO Zero library, which you can use to control LEDs, sensors, motors, and many more components.

With this book, you’ll learn how to use GPIO Zero as you build a series of simple electronics projects:

  • Program some LED lights
  • Add a push button to your project
  • Build a motion-sensing alarm
  • Create your own distance rangefinder
  • Make a laser-powered tripwire
  • Build a Raspberry Pi robot

The GPIO pins on your Raspberry Pi open up a whole new world of possibilities — specifically, the physical world around you. It may seem daunting at first, but you’ll be creating electronic circuits and controlling them with code before you know it. Grab your breadboard and start taking control of the real world with your Raspberry Pi today!

Updated for the latest Raspberry Pi devices, this book has all the information you need to get started.

Print Subscriptions

12 month recurring subscription

  • 12 issues per year
  • Free Raspberry Pi Pico 2 W (or Pico 2) *
  • Up to to 23% cheaper
  • Free delivery to your door
  • Available worldwide

*Free Raspberry Pi Pico W with first subscription (renewals not included)

From £55

£10 for 3 issues

  • £10 for 3 issues paid by Direct Debit
  • Free Pico 2 W (or Pico 2)
  • Renews at £15 every 3 issues
  • Cancel at any time
  • Free delivery to your door
  • UK only
From £10

6 month recurring subscription

  • Free delivery to your door
  • Available worldwide
  • Free Pico 2 W (or Pico 2)
  • Cheaper than newsstand
  • Cancel at any time
From £30

Digital Subscriptions

App Store

  • Free to download & 30 free issues
  • Best mobile reading experience
  • Read news straight from the app
  • Buy issues or subscribe from £2.49
From £3

Google Play

  • Free to download & 30 free issues
  • Best mobile reading experience
  • Read news straight from the app
  • Buy issues or subscribe from £2.49
From £3

Free PDF Edition

  • Delivered to your inbox
  • Optimised for screens
  • Clickable web links
  • Occasional news updates
Free

Sign up to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.