Resetting and rebooting Raspberry Pi

The Raspberry Pi has holes for mounting a reset header (marked RUN on the Raspberry Pi 3/2 and P6 on the Raspberry Pi 1 Model A and Model B Rev 2). The reset pin allows the device to be reset using a button rather than removing the micro USB connector each time to cycle the power:

Raspberry Pi reset headers - on the left, Raspberry Pi Model A/B (Rev2), and on the right, Raspberry Pi 3

To make use of it, you will need to solder a wire or pin header to the Raspberry Pi and connect a button to it (or briefly touch a wire between the two holes each time). Alternatively, we can extend our previous circuit, as ...

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.