stuartpittaway / diyBMSv4Code

Software for diyBMS v4
Other
145 stars 66 forks source link

Current sensing via analog port 0 #108

Closed DanielCh58 closed 3 years ago

DanielCh58 commented 3 years ago

This pull request adds the possibility to show the current of the battery with the A0 analog input. I use a HAL sensor for current measurement. This Hal sensor gives 0V for -20A and 3.3V for +20A. Within the code, the ADC value will be transformed to the current in mA and displayed on webpage. It will also be transferred to influx db. With the CURRENTSENSING define variable, I try to make it changeable in the future. I will also try to work with the INA228, but not on a separate ESP. I also changed the following: if you only use one bank, the Zero will not be shown. image

stuartpittaway commented 3 years ago

Current sensing via A0 - user submitted PR/code