|
Hello guys!
I have an Orange pi Zero v1.4. I am trying to avoid any possibility to have a SD card corruption due to a hard power cut (unplug power cord or when the place where the Orange pi is run out of power).
So, I want the orange pi turn off automatically (halt) when there is no power and turn on automatically when the power is back.
In order to to this, I intend to use a battery USB power bank to supply energy to Orange pi. This battery power bank is going to supply energy to Orange pi and will be simutaneously recharged (it will be connect to the wall outlet).
I am going to use a circuit (named here as C) that is connected to the wall outlet power supply and to the Orange pi Zero in some GPIO. If the wall outlet stop supplying energy, such GPIO will stop receiving 3.3v from C, and I am going to run a script to shutdown the orange pi correctly. So far, no problem.
My problem is how to TURN ON the orange pi ZERO when the wall outlet starts to supply energy again (note that even with no power in the outlet plug, the battery power bank never stopped supplying energy to the orange pi Zero, even when the orange pi was halt.
I want to use the same circuit (C) to send 3.3v to some GPIO and the start up the orange pi Zero that was in halt state. Is it possible? (but I did not find how to do this).
Anyone have an idea about how to solve this?
Thanks.
|
|