Wonder about on/off switches - Raspberry Pi Forums


hi there,

got idea somehow few days back, , haven't seen anywhere on internet yet, give here can discuss , enhance possible.

working on raspberry pi playstation 1 (but topic aims @ toggle-switch-powered raspberry), has toggle switch, here's made in order power it:
image

problem here need stop rpi before turning console off. , since want simillar possible original, don't want work this... plus unpractical...

plan have correct way turn on , off raspberry pi through (which can see can pretty common problem), figured out way it. suggest this:
image

in case, arduino check every x see if button turned on or not.
if , wasn't before, turns on fet , let current flow raspberry pi.
if not, , before, shutdown requested, arduino sends signal raspberry pi through d0/gpio4 , script on raspberry shuts off, meanwhile arduino check current consumption of raspberry shunt resistor. when drops nothing, means rpi off, shut off mosfet.

haven't tried out, , wanted discuss here because havent seen this, , quite nice.
main concerns keeps wall adapter plugged, , arduino... that's not best way handled solution.

yeah, that's it, wanted have opinion on , maybe have better solution :)

ps: don't upset of drawings, first scheme , didn't bothered use kicad or anything, hope still understandable :)

that's pretty "the" solution power-managed raspberry pi, it's 1 i've been using myself while in robot build (except i've replaced arduino esp8266 needed more memory, plus wifi link came in useful making robot "check in" server instructions while pi powered down.)

add serial link between rpi , microcontroller relay status info ("i've finished booting" or "shutdown commencing"), although eats rpi's serial port may want stick gpio signalling. or connect via usb (although can cause issues arduinos reset on dtr signal - there number of ways around that, though.)

wouldn't worry leaving on 24/7 - you've got there same standard desktop pc in "standby" mode. nice thing is, can program arduino things scheduling turning on rpi @ specific times. oh, , don't forget put arduino sleep mode number of ms per cycle, way cut power usage down bare minimum (and if go far replacing bare atmega chip, you can cut usage down milliamps microamps!)


raspberrypi



Comments