Hello,
So for some background info, I'm currently working on repurposing the Keyestudio dual axis solar tracker kit for a project and the last hurdle I need to get past is implementing a way to measure and then display the remaining battery capacity.
This kit comes with a lithium power module that uses that battery to power the board using the V and G pins, which I connected to VIn and GND respectively as shown in this photo:
So the problem is that I need help with measuring the battery output voltage via the Keyestudio power module in order to measure the capacity of the battery, on the official site it states that "the pin S can read the battery voltage after the resistance 1/2 voltage." which, if I understand correctly, should in theory help me achieve my goal assuming it outputs the battery voltage value BEFORE it gets raised by the module.
The site isn't very descriptive of it, the module has no identifying code written on it or anything I can go off of to find it or at least a module that works in a similar way so I can go off of that. Here is a closer picture of it in case it helps.
So my question is, would I be able to use the S pin to ideally get the battery output voltage and use it to measure the capacity? Or would I need a separate module to be able to do that? I know that I'll also have to do the code, that is a different beast but I should be able to figure it out on my own from there on.
Here is the datasheet of the Uno board for some context on the wiring.
The pins on the board that are taken up so far are the A0 through A3(number 25 male pins) by the photoresistors, the number 26 pins are also taken up by the BH1750, and the digital pins are taken up by the two servos, dht11, button and buzzer, but those are likely irrelevant for this, and A4 and A5 are taken up by the LCD I2C as shown here:
Those I am planning to move to the 5V and GND pins (number 23 and 4, respectively) and SDA and SCL pins (number 7 and 8, respectively), in order to make room for one of the analog pins to be used to measure the voltage level which I will connect to the number 25 A4 or A5 female pins, since I assume I won't be able to use them while the LCD is connected to them at the same time.
That should hopefully explain what I am after, if you need any more info I will be happy to provide it!