UsbDP is a great little power-module. I am planing to use it to supply my Spider-based system with power, coming from a car-batteri, that is charged by a solar-panel through a regulator (just ensuring that no more than 12 volts are coming from the solar-panel).
But when the battery is not charged and the voltage is dropping, I need the system to alert me so I can come an swap the the battery - preferably before the system dies caused by missing power.
Is there a way to measure the supplied voltage, or should I add the voltage-measurement module?
I would say forget about you program for a moment. If you have some resistors, a power supply and any old volt meter… make up a few different resistor dividers and measure the node voltage. Maybe use a potentiometer at the positive and negative ends of the divider and ‘see’ what happens… Eyes and the meter tell you ALOT!
(Forget about the Z’s and whatever unless your a math wizard!) The drawing at the side tell you much more as I see it…
Hell, just poke around with you meter and SEE what changes and WHERE it changes.
AND most of all HAVE FUN DOING IT!
EDIT: I forgot to say… Change the Potentiometers while you are doing it.