After building the battery monitors and discovering that one of my batteries was essentially dead, I wanted to quantify just how dead it was. The best way appears to be adding a resistive type load of known amperage and calculating battery capacity with those numbers.
Starting off: a junction box, some H4 bulb holders and some headlight bulbs:
![photo_2023-11-29 03.29.07.jpeg photo_2023-11-29 03.29.07.jpeg](https://techenclave.com/data/attachments/181/181253-46d99450efebca66134b0e824ff1f4ad.jpg)
The box was around Rs 400 on Amazon and the bulb holders were Rs 80 each, bulbs were about the same.
![photo_2023-11-29 03.29.08.jpeg photo_2023-11-29 03.29.08.jpeg](https://techenclave.com/data/attachments/181/181254-64a70204f100ef42a0bd4cf9918282ac.jpg)
I removed the rubber sleeve, drilled a 4.5mm hole from the rear side, put back the rubber sleeve on, and continued drilling from the socket side and ended up with a clean hole in the rubber sleeve this way.
![photo_2023-11-29 03.29.09.jpeg photo_2023-11-29 03.29.09.jpeg](https://techenclave.com/data/attachments/181/181255-cb6d9760a023f98b6dcf0d5423c19a95.jpg)
Spacing out the holder and marking holes for drilling.
![photo_2023-11-29 03.29.10.jpeg photo_2023-11-29 03.29.10.jpeg](https://techenclave.com/data/attachments/181/181256-6c1937dad2f1b69704a7800922839f67.jpg)
Holders installed.
![photo_2023-11-29 03.29.11.jpeg photo_2023-11-29 03.29.11.jpeg](https://techenclave.com/data/attachments/181/181257-76cc18e017f370eff921b2faafaf81a8.jpg)
Each wire got an individual hole and the fasteners are M4 with serrated nuts.
![photo_2023-11-29 03.29.13.jpeg photo_2023-11-29 03.29.13.jpeg](https://techenclave.com/data/attachments/181/181258-036ec79344b40ae9b1ed3a7d9c881ae1.jpg)
There is some crowding on the bulb side though, I should've staggered the holders a bit.
![photo_2023-11-29 03.29.14.jpeg photo_2023-11-29 03.29.14.jpeg](https://techenclave.com/data/attachments/181/181259-7b42013123e08808f9205355215a54e7.jpg)
I needed to snip off bits from the bulbs to get them fit.
![photo_2023-11-29 03.29.16.jpeg photo_2023-11-29 03.29.16.jpeg](https://techenclave.com/data/attachments/181/181260-79c601e3ffdd80a7c4d5469e356f8f5f.jpg)
Next up is installing this rectangle switch in a round hole.
Link for the 30A switch: https://www.amazon.in/FIREWELD-Rocker-Welding-Machine-machines/dp/B08QZVM5D6
![photo_2023-11-29 03.29.17.jpeg photo_2023-11-29 03.29.17.jpeg](https://techenclave.com/data/attachments/181/181261-2062b12d86bf40fa309fc8ec673a9519.jpg)
Which was done with the help of a rotary tool.
![photo_2023-11-29 03.29.22.jpeg photo_2023-11-29 03.29.22.jpeg](https://techenclave.com/data/attachments/181/181262-be297d61fc6933a487aa1040f361f1cf.jpg)
I wasn't able to clean up the hole because the switch got stuck during a test fitting. It looks alright though.
At this point, that's the most essential parts of the load tester. But I wanted some telemetry, so onwards we go.
![photo_2023-11-29 03.29.25.jpeg photo_2023-11-29 03.29.25.jpeg](https://techenclave.com/data/attachments/181/181264-2ff6d010fa28c81188bbcd25c68909ef.jpg)
That's a Wemos D1 R2 ESP8266 module running Tasmota Sensors, connected to an INA219 for voltage monitoring and a 30A relay that serves as a low voltage cut off.
![photo_2023-11-29 03.29.26.jpeg photo_2023-11-29 03.29.26.jpeg](https://techenclave.com/data/attachments/181/181265-b0889d3446ae896e0988266e2b156bf4.jpg)
The wiring is the same as the battery monitors, with the addition of 5V lines and GPIO12 going to the relay.
![photo_2023-11-29 03.29.28.jpeg photo_2023-11-29 03.29.28.jpeg](https://techenclave.com/data/attachments/181/181266-62d85dee3e0b3e114e1925e226afa318.jpg)
With the boards installed in the box, I added transparent heatshrink on the INA219 module.
But that's just an elaborate low voltage cutoff, I still wanted some way of visualizing data so onwards we go.
![photo_2023-11-29 03.29.30.jpeg photo_2023-11-29 03.29.30.jpeg](https://techenclave.com/data/attachments/181/181267-0fc8c6bed108379b4dc9e3bf9cab3d0a.jpg)
This is a Peacefair PZEM015 DC current meter, complete with a ridiculously overbuilt shunt for 100A from robu.in
![photo_2023-11-29 03.29.32.jpeg photo_2023-11-29 03.29.32.jpeg](https://techenclave.com/data/attachments/181/181268-2c960f93c284ec6d8aff4a8affec2a94.jpg)
The meter is installed in the lid and the shunt is wired up.
![photo_2023-11-29 03.29.34.jpeg photo_2023-11-29 03.29.34.jpeg](https://techenclave.com/data/attachments/181/181269-3b1bef612642977367cd27cac4348675.jpg)
Transparent heatshrinking on the shunt.
![photo_2023-11-29 03.29.35.jpeg photo_2023-11-29 03.29.35.jpeg](https://techenclave.com/data/attachments/181/181270-a2cc4083c337e6907160fd6d4e3e220f.jpg)
I found these clips/clamps on a decommissioned ATM last year and finally found a use for them, the shunt will be clipped on the back of the meter.
![photo_2023-11-29 03.29.44.jpeg photo_2023-11-29 03.29.44.jpeg](https://techenclave.com/data/attachments/181/181272-815b4812a2267826565a1946c85b4579.jpg)
Here's everything almost wired up. I'm not using the highbeam on these bulbs, so I tied off those blue wires. The yellow wires are connected into a 5-way WAGO connector, which is then connected to the NC (normally closed) contact of the relay. The common contact of the relay goes to the switch. Both the Peacefair module and the ES8266/INA219 are connected to the common contact, so that they're not affected by the relay cutting off the bulbs.
This way, the bulbs are on when you turn on the switch, and turn off only when you either turn off the switch, or the ESP8266 modules triggers the relay when it detects a low voltage reading. So the relay is only energised (thus drawing power) when there's a low voltage cutoff in effect.
Hopefully this means I can leave this tester unattended until I get a notification from a Tasmota -> Telegram integration.
![photo_2023-11-29 03.29.49.jpeg photo_2023-11-29 03.29.49.jpeg](https://techenclave.com/data/attachments/181/181273-1fc3bed93399c6eaa40ce298d24e224b.jpg)
Some quick battery clamps I hammered together from quartzcomponents.com, all of the wiring is 4 sq mm.
![photo_2023-11-29 03.29.51.jpeg photo_2023-11-29 03.29.51.jpeg](https://techenclave.com/data/attachments/181/181274-70a4d504a99148e4c5fa6af11459694f.jpg)
Another angle of the mostly completed battery tester. Now to try it out:
![photo_2023-11-29 03.29.56.jpeg photo_2023-11-29 03.29.56.jpeg](https://techenclave.com/data/attachments/181/181275-9a30e503b46a9760bdfe105abad792c9.jpg)
With three bulbs (2x 55w and 1x 90w), it's drawing 16.8 amps and voltage fell under 11V immediately, indicating a pretty much dead battery.
![photo_2023-11-29 03.29.58.jpeg photo_2023-11-29 03.29.58.jpeg](https://techenclave.com/data/attachments/181/181276-0101772b264089da98c1d49b36c9205f.jpg)
The low voltage cutoff kicked in at 10.5V and turned off the bulbs (by energizing the relay — there's two red leds illuminated instead of one)
Looking at the datasheet for this battery: https://amaronquanta.com/wp-content/uploads/2021/07/Quanta-100Ah.pdf
![Screen Shot 2023-11-29 at 4.03.44 AM.png Screen Shot 2023-11-29 at 4.03.44 AM.png](https://techenclave.com/data/attachments/181/181277-8405d3bc8ba00ca1eb8602af10a69706.jpg)
I should've seen 5 hours of run time at 17 amps down to 1.75 volts per cell (1.75 x 6 = 10.5V) which works out to be 5 x 17 = 85Ah capacity. Instead I got 1.11Ah (show in the display above).
So yeah, it's a dead battery. But at least now I know how dead it is. Now I'm off to try desuphation.
But first, here's what to type in the Tasmota web console for the low voltage cutoff:
then turn on the rule with:
Also to make sure the relay stays de-energized at every power on (so that the bulbs are always turned on):
More about Tasmota rules: https://tasmota.github.io/docs/Rules/
and Power On State: https://tasmota.github.io/docs/PowerOnState/
Starting off: a junction box, some H4 bulb holders and some headlight bulbs:
![photo_2023-11-29 03.29.07.jpeg photo_2023-11-29 03.29.07.jpeg](https://techenclave.com/data/attachments/181/181253-46d99450efebca66134b0e824ff1f4ad.jpg)
The box was around Rs 400 on Amazon and the bulb holders were Rs 80 each, bulbs were about the same.
![photo_2023-11-29 03.29.08.jpeg photo_2023-11-29 03.29.08.jpeg](https://techenclave.com/data/attachments/181/181254-64a70204f100ef42a0bd4cf9918282ac.jpg)
I removed the rubber sleeve, drilled a 4.5mm hole from the rear side, put back the rubber sleeve on, and continued drilling from the socket side and ended up with a clean hole in the rubber sleeve this way.
![photo_2023-11-29 03.29.09.jpeg photo_2023-11-29 03.29.09.jpeg](https://techenclave.com/data/attachments/181/181255-cb6d9760a023f98b6dcf0d5423c19a95.jpg)
Spacing out the holder and marking holes for drilling.
![photo_2023-11-29 03.29.10.jpeg photo_2023-11-29 03.29.10.jpeg](https://techenclave.com/data/attachments/181/181256-6c1937dad2f1b69704a7800922839f67.jpg)
Holders installed.
![photo_2023-11-29 03.29.11.jpeg photo_2023-11-29 03.29.11.jpeg](https://techenclave.com/data/attachments/181/181257-76cc18e017f370eff921b2faafaf81a8.jpg)
Each wire got an individual hole and the fasteners are M4 with serrated nuts.
![photo_2023-11-29 03.29.13.jpeg photo_2023-11-29 03.29.13.jpeg](https://techenclave.com/data/attachments/181/181258-036ec79344b40ae9b1ed3a7d9c881ae1.jpg)
There is some crowding on the bulb side though, I should've staggered the holders a bit.
![photo_2023-11-29 03.29.14.jpeg photo_2023-11-29 03.29.14.jpeg](https://techenclave.com/data/attachments/181/181259-7b42013123e08808f9205355215a54e7.jpg)
I needed to snip off bits from the bulbs to get them fit.
![photo_2023-11-29 03.29.16.jpeg photo_2023-11-29 03.29.16.jpeg](https://techenclave.com/data/attachments/181/181260-79c601e3ffdd80a7c4d5469e356f8f5f.jpg)
Next up is installing this rectangle switch in a round hole.
Link for the 30A switch: https://www.amazon.in/FIREWELD-Rocker-Welding-Machine-machines/dp/B08QZVM5D6
![photo_2023-11-29 03.29.17.jpeg photo_2023-11-29 03.29.17.jpeg](https://techenclave.com/data/attachments/181/181261-2062b12d86bf40fa309fc8ec673a9519.jpg)
Which was done with the help of a rotary tool.
![photo_2023-11-29 03.29.22.jpeg photo_2023-11-29 03.29.22.jpeg](https://techenclave.com/data/attachments/181/181262-be297d61fc6933a487aa1040f361f1cf.jpg)
I wasn't able to clean up the hole because the switch got stuck during a test fitting. It looks alright though.
At this point, that's the most essential parts of the load tester. But I wanted some telemetry, so onwards we go.
![photo_2023-11-29 03.29.25.jpeg photo_2023-11-29 03.29.25.jpeg](https://techenclave.com/data/attachments/181/181264-2ff6d010fa28c81188bbcd25c68909ef.jpg)
That's a Wemos D1 R2 ESP8266 module running Tasmota Sensors, connected to an INA219 for voltage monitoring and a 30A relay that serves as a low voltage cut off.
![photo_2023-11-29 03.29.26.jpeg photo_2023-11-29 03.29.26.jpeg](https://techenclave.com/data/attachments/181/181265-b0889d3446ae896e0988266e2b156bf4.jpg)
The wiring is the same as the battery monitors, with the addition of 5V lines and GPIO12 going to the relay.
![photo_2023-11-29 03.29.28.jpeg photo_2023-11-29 03.29.28.jpeg](https://techenclave.com/data/attachments/181/181266-62d85dee3e0b3e114e1925e226afa318.jpg)
With the boards installed in the box, I added transparent heatshrink on the INA219 module.
But that's just an elaborate low voltage cutoff, I still wanted some way of visualizing data so onwards we go.
![photo_2023-11-29 03.29.30.jpeg photo_2023-11-29 03.29.30.jpeg](https://techenclave.com/data/attachments/181/181267-0fc8c6bed108379b4dc9e3bf9cab3d0a.jpg)
This is a Peacefair PZEM015 DC current meter, complete with a ridiculously overbuilt shunt for 100A from robu.in
![photo_2023-11-29 03.29.32.jpeg photo_2023-11-29 03.29.32.jpeg](https://techenclave.com/data/attachments/181/181268-2c960f93c284ec6d8aff4a8affec2a94.jpg)
The meter is installed in the lid and the shunt is wired up.
![photo_2023-11-29 03.29.34.jpeg photo_2023-11-29 03.29.34.jpeg](https://techenclave.com/data/attachments/181/181269-3b1bef612642977367cd27cac4348675.jpg)
Transparent heatshrinking on the shunt.
![photo_2023-11-29 03.29.35.jpeg photo_2023-11-29 03.29.35.jpeg](https://techenclave.com/data/attachments/181/181270-a2cc4083c337e6907160fd6d4e3e220f.jpg)
I found these clips/clamps on a decommissioned ATM last year and finally found a use for them, the shunt will be clipped on the back of the meter.
![photo_2023-11-29 03.29.44.jpeg photo_2023-11-29 03.29.44.jpeg](https://techenclave.com/data/attachments/181/181272-815b4812a2267826565a1946c85b4579.jpg)
Here's everything almost wired up. I'm not using the highbeam on these bulbs, so I tied off those blue wires. The yellow wires are connected into a 5-way WAGO connector, which is then connected to the NC (normally closed) contact of the relay. The common contact of the relay goes to the switch. Both the Peacefair module and the ES8266/INA219 are connected to the common contact, so that they're not affected by the relay cutting off the bulbs.
This way, the bulbs are on when you turn on the switch, and turn off only when you either turn off the switch, or the ESP8266 modules triggers the relay when it detects a low voltage reading. So the relay is only energised (thus drawing power) when there's a low voltage cutoff in effect.
Hopefully this means I can leave this tester unattended until I get a notification from a Tasmota -> Telegram integration.
![photo_2023-11-29 03.29.49.jpeg photo_2023-11-29 03.29.49.jpeg](https://techenclave.com/data/attachments/181/181273-1fc3bed93399c6eaa40ce298d24e224b.jpg)
Some quick battery clamps I hammered together from quartzcomponents.com, all of the wiring is 4 sq mm.
![photo_2023-11-29 03.29.51.jpeg photo_2023-11-29 03.29.51.jpeg](https://techenclave.com/data/attachments/181/181274-70a4d504a99148e4c5fa6af11459694f.jpg)
Another angle of the mostly completed battery tester. Now to try it out:
![photo_2023-11-29 03.29.56.jpeg photo_2023-11-29 03.29.56.jpeg](https://techenclave.com/data/attachments/181/181275-9a30e503b46a9760bdfe105abad792c9.jpg)
With three bulbs (2x 55w and 1x 90w), it's drawing 16.8 amps and voltage fell under 11V immediately, indicating a pretty much dead battery.
![photo_2023-11-29 03.29.58.jpeg photo_2023-11-29 03.29.58.jpeg](https://techenclave.com/data/attachments/181/181276-0101772b264089da98c1d49b36c9205f.jpg)
The low voltage cutoff kicked in at 10.5V and turned off the bulbs (by energizing the relay — there's two red leds illuminated instead of one)
Looking at the datasheet for this battery: https://amaronquanta.com/wp-content/uploads/2021/07/Quanta-100Ah.pdf
![Screen Shot 2023-11-29 at 4.03.44 AM.png Screen Shot 2023-11-29 at 4.03.44 AM.png](https://techenclave.com/data/attachments/181/181277-8405d3bc8ba00ca1eb8602af10a69706.jpg)
I should've seen 5 hours of run time at 17 amps down to 1.75 volts per cell (1.75 x 6 = 10.5V) which works out to be 5 x 17 = 85Ah capacity. Instead I got 1.11Ah (show in the display above).
So yeah, it's a dead battery. But at least now I know how dead it is. Now I'm off to try desuphation.
But first, here's what to type in the Tasmota web console for the low voltage cutoff:
Code:
rule1 on INA219#Voltage<10.5 do power1 0 endon
then turn on the rule with:
Code:
rule1 1
Also to make sure the relay stays de-energized at every power on (so that the bulbs are always turned on):
Code:
poweronstate 1
More about Tasmota rules: https://tasmota.github.io/docs/Rules/
and Power On State: https://tasmota.github.io/docs/PowerOnState/
Last edited: