Getting ready

You will need the following equipment:

  • 3 x DuPont female-to-male patch wires
  • Mini breadboard (170 tie points) or a larger one
  • Push-button switch (momentary close)
  • General-purpose LED
  • 2 x 470 ohm resistors
  • Breadboard wire (solid core)

The entire layout of the shutdown circuit will look as shown in the following figure:

The controlled shutdown circuit layout

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.