I'm looking to implement a way where as the EZ-B moniters the LiPo battery voltage, it will trigger a script to say "Low battery. Robot is powering down" when the low battery warning activates, and proceeds to switch the EZ-B off, possibly triggering a relay so it breaks the connection between the battery and EZ-B, and then I can charge the battery without disconnecting it from the EZ-B.
The problem I run in to trying to figure this out is re-initialising the relay to re-establish the power connection, as I would need the EZ-B to operate the relay which at this point would be in its "Off" state so it wouldn't trigger the relay. I'm normally pretty good figuring this sort of thing out, but I can't get my head around this one.
Has anyone done something similar to what I'm looking to do? If so, I'd love to hear your solutions.