Hello. And sorry for my bad english. I’m just tinkering around with ESPhome. I built a temperature sensor for my small pool, for outside and water temperature. The whole thing runs on a small solar panel, with TP4056 USB-C charging module, and a 18650 battery. This is how the D1 mini is fed. Everything works so far. My question, can the D1 Mini be queried as to what voltage is currently present? And I would like to have integrated it with ESPhome, if at all possible. Maybe there’s something like Wi-Fi, just for excitement
As I said, I’m an absolute layman. I found and included the following. I set a resistor from 3.3v to A0 and played the following on the D1 mini. and the D1 shows me 1 volt.
but it shows me over 16v. Then I lowered the multiplier to 1.13. now I’m at 4.06V, (just charging via the solar panel) which also agrees with the meter. Is my approach correct or am I wrong with the multiplier?
I want to monitor the voltage from the battery that is being charged through the solar panel. That means I’m going to 5v with a resistor of A0. Now it fits but the battery shows 3.89V with the measuring device and in the Home Assistant too.