Repository navigation
Standby Module
For my Project i'm using a 75W (2*9V Trafo) with two 5V/5A Low Noise PSU's. As we all now, the pi does not shutdown like a computer. So I needed a way to cut the supply Voltage of my trafo. So i ordered an ATTiny85 and an 5V/1A Smartphone charger. Additionaly i used some connectors, two 10K Resistors, one 1n4001 Diode, an BC548 transistor and an 5V Relay. On the Attiny runs a little code which signals my pi, if the powerbutton was pushed (and the pi shut shutdown) and also listens if the pi is running. You can see the logic here. If you wan't to solder the circuit by yourself, you can use this schematic
- Install Arduino IDE
- Add this URL: http://drazzy.com/package_drazzy.com_index.json under Boardmanagement
- Now you need tto select Digispark/ Disgispark (default) 16.5Mhz *open the .ino file with arduino and upload it to the attiny.
My Code expects a "HIGH" signal at GPIO 26 (physical pin 37) -> If input @ this pin is not "HIGH", the Pi will shutdown. Workaround: Put +3.3V on that pin. Instructions how to change it in the code will follow.
source from rudiratlos But remeber this: My Code expects a "HIGH" signal at GPIO 26 (physical pin 37)if "Standby-Circuit" is activated during Setup....
