Intelligent Power Switch for Raspberry Pi
Eagle C Python Other
Latest commit e5d2b50 Jan 26, 2017 @dakota127 german docu updated


Intelligent Power Switch for Raspberry Pi

Native Raspberry Pi does not have an On/Off switch and there is no easy way to shutdown the Pi while keeping the filesystem intact. This Intelligent Power Switch allows just that: Power-On the Pi by pressing a pushbutton and also properly Power-Off the Pi with another press on the same button. The intelligence is provided by a program running in an AVR MCU ATtiny44. This C-program implements a Finite State Machine in the MCU. A small Python script is running in the Pi itself. Just one GPIO-Pin is used for two-way communication. In addition, a variable frequency square wave is available for externally interrupting the Pi.

Formfactor: Raspi hat with 2x20 Pins for other hats on top of iSwitchPi.

Full Documentation, Code and EagleCAD files on GitHub. Documentation is in English and German. Quick Start guide explains installation.
See state diagram to understand operation of iSwitchPi

Also check out my project webpage at

Free to use, modify, and distribute with proper attribution. Frei für jedermann, vollständige Quellangabe vorausgesetzt.