Battery backup and automatic shutdown and startup
(05-05-2016, 06:59 AM)caseih Wrote: 1. detect in software if running on battery so I can halt the system
2. completely power down the pine from software
3. turn on when power returns

I realize I could theoretically install a big battery, but I actually want the ability to shut it down by pulling the power for a long period of time (say 20 to 30 seconds).

Sure. There's the PMU, you can use the arisc mailbox interface to talk to it (might require that you write the appropriate driver before). Then you can read out all the values/states you're interested in. Rule of thumb: the older the SoC the better software support. See here for 4 year old combination of A20/AXP209. So maybe come back next year or in 2018.

Powering down by software is simply shutting down the OS when reaching critical battery voltage (you're most probably not able to readout now unless you write the driver). And powering up is done when re-insert 5V through Euler pins 4 and 6.


Messages In This Thread
RE: Battery backup and automatic shutdown and startup - by tkaiser - 05-05-2016, 07:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyone know can play how long the LITHIUM BATTERY CASING? joe 4 4,508 03-06-2017, 12:01 PM
Last Post: xalius
  Battery and the PlayBox JoeHz 6 6,023 09-13-2016, 12:18 AM
Last Post: gperez1234
  Startup Woes abasel 9 9,486 07-28-2016, 06:34 AM
Last Post: z4v4l
  Photo data backup Jimmy Chiau 7 5,745 01-29-2016, 09:35 PM
Last Post: Jimmy Chiau

Forum Jump:

Users browsing this thread: 1 Guest(s)