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.
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.