Open manuelgitgomes opened 1 year ago
Our ideia is to read the batteries' voltage and when it reaches a minimum level an alarm is sent off and we know we need to change it and recharge it
Fisrt concern: How to read the battery's voltage?
We want to connect the battery terminals to ESP so it can read the voltage. The esp only takes voltages up to 5V so we need something to reduce the battery's voltage so ESP can read it (battery's voltage goes up to 8.4V).
First we thougth about using a resistive devider, but that takes a lot of current (ampheres) and wears out the battery
Now we will search about opAmp because it can be used to reduce voltage and unlike the resistive devider doesn't take mush current
We also thought about when the battery's voltage is lower than the minimum threshould the car wont use that battery
Last wednesday (june 21st) we tested reading the voltage from an unused battery with an old esp.
We conected the pins from the balance connector to the esp and were able to read the voltage.
We first measure the battery's voltage with the reader we use and that battery had around 7.8 V, and when we read its voltage the result was 1024 meaning that the voltage that was reaching ESP was the highest, we concluded that this was happening because the esp can only read up to 3.3V or 5V, so we had to reduce the voltage.
So then we used two resistences as an tension devider (120 ohm and 220 ohm) and we got good results because now the esp was givin values below 1024 meaning that it was reading the battery's voltage.
Now we want to explore using an opamp insted of a tension devider.
Create an electric system that notifies the user that the car is running low on battery: