2016-06-26, 04:56 PM
(This post was last modified: 2016-06-26, 04:58 PM by Alpenskipper.)
Hi!
I would like to measure the voltage of the batteries and trigger an alarm message or shutdown Openplotter if the voltage is low.
This is especially important, when operating Openplotter unattended, because I do not trust the shore power. If the shore power fails, I want to be informed, for I have about four days until the batteries are drained and damaged by the Pi's current draw.
One idea is, to use a 220v relay, that closes a GPIO Pin, as long as there is shore power. When the shore power stops, the relay opens and an action is triggered.
But I would prefer a solution, where I don't have to touch the 220V installation.
How could the voltage be measured?
Greetings!
Martin
I would like to measure the voltage of the batteries and trigger an alarm message or shutdown Openplotter if the voltage is low.
This is especially important, when operating Openplotter unattended, because I do not trust the shore power. If the shore power fails, I want to be informed, for I have about four days until the batteries are drained and damaged by the Pi's current draw.
One idea is, to use a 220v relay, that closes a GPIO Pin, as long as there is shore power. When the shore power stops, the relay opens and an action is triggered.
But I would prefer a solution, where I don't have to touch the 220V installation.
How could the voltage be measured?
Greetings!
Martin