O'Reilly logo

Wearable-Tech Projects with the Raspberry Pi Zero by Jon Witts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wiring an off switch to our Pi Zero

We are going to solder two more pieces of hardware to our Pi Zero, which we will program to act as an off switch for our Pi Zero. This way, if we are using our Pi Zero out and about, we will not need a SSH connection to it to ensure we shut it down correctly.

I am going to use a push button switch from Kitronix for my button, but you could use any type push button. The one I have chosen is designed for eTextiles projects and comes presoldered to it's own little PCB; it is also very small as you can see in this picture (a micro SD card included for scale):

We now need to solder enough cable onto each side ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required