
Tmr.alarm(0, 10000, 1, function() readUI() LCDout() tmr.delay(1000) end)Ĭonn:send("Battery Live Monitor System - ESP8266")Ĭonn:send("Node.HEAP : ". St7032i:lcd_print(1,1,string.format("Battery Monitor"))
#WIRELESS RV BATTERY MONITOR DRIVER#
If (fnr Voltage / Current / Energy / Powerįor more details about the I2C LCD Driver, please take a look at the ST7032i LCD Driver Article Battery Tender 2000 AMP Jump Starter & 16000mAh Power Bank.

Nrf=string.format(" %.3f%s ",fnri, uniti) 12 Volt 7 Ah Sealed Lead Acid Rechargeable Battery - F1 Terminal. Number format function for proper LCD printing READ ADC Process function and instantaneous Power consumtion calculation Resdiv = 4.31447 - Voltage Divider Ratio - CALIBRATE!!ĭivalI = 0.9425 - Current volt/div ratio - CALIBRATE!! Voltdiv= 0.00412 - Voltage reading calibrationĭival = 0.00096 - ADC volt/div value - CALIBRATE !! Gpio.write(ADC_SRC,0) - Current Measurement - Current Shunt Monitor output selected Gpio.write(ADC_SRC,1) - Voltage Measurement - Voltage Divider Source selected Gpio.mode(ADC_SRC,gpio.OUTPUT, gpio.PULLUP) Mission Statement: Supporting thoughtful exchange of knowledge, values and experience among RV enthusiasts.
#WIRELESS RV BATTERY MONITOR DRIVERS#
Instantaneous power is given by multiplying the measured voltage by the calculated current (P=U*I).īy taking readings for a certain amount of time until the battery is completly discharged, and adding up the energy dissipated in each time interval, we can calculate the total energy taken from the battery and dissipated in the resistor and therefore the total energy that was stored in the fully charged battery.įor programming CBDBv2 Evo Board and uploading the drivers and the software we will continue to use the LuaUploader as before.ĪDC_SRC = 5 - GPIO14 - select Voltage Divider / Current Input Wireless Battery Monitor - iRV2 Forums iRV2 Forums > RV SYSTEMS AND TECHNOLOGIES FORUMS > Technology: Internet, TV, Satellite, Cell Phones, etc.


Using Ohm's Law (I=U/R) we can then calculate the current flowing through the load since we know the voltage across it. By measuring the voltage across this resistor at regular intervals during the discharge process it is simple to calcuate the total energy dissipated and therefore the total energy which had been stored in the battery. In order to measure the stored energy in a battery a power resistor is used as the load, and a fully charged battery is fully discharged through it. Stored energy is measured in Watt-hours - the same unit used to measure our domestic electricity consumption (where 1,000Wh = 1kWh = 1 unit of electricity). When measuring the real battery capacity what we are interested in is the amount of energy stored in a battery since it is this energy we need to power our devices.
