Hello,
We are working with one of our clients to create a timelapse device.
We're using the Witty Pi 4 to manage the ON/OFF sequence.
We want to use a Lipo battery and a solar panel to make the device autonomous.
Is it possible to charge the battery with the solar panel only via the Witty Pi? Or do we need an additional module?
Is it possible to retrieve the battery level using the Witty Pi?
I hope my questions are clear, so please don't hesitate to ask me for more details so that I can give you an answer,
Witty Pi doesn't have the ability to charge your battery -- it doesn't even know what power source you use because it only sees the voltage applied to VIN.
In order to charge battery you will need additional circuit.
Witty Pi can only read the voltage on VIN, which should be the battery voltage. However if your battery is being charged, then this voltage will be the output voltage of charging circuit. You will need to disconnect the charging circuit when trying to measure the battery voltage. This can also be done by another switching ciruit.