Hullo all.
I need to do a thing which is likely completely trivial, but I have never done it before, and because I am a farmer, I need to do it without having to spend much money.
Briefest description:
I need to monitor the state of a deep cycle 12v battery that is usually trickle charging, and report on its health at regular intervals. Other automations need this data. I’m thinking of an ESP8266 (cos I have one) with a sensor.
There will be 6A of load on the battery when it is discharging. I don’t know enough about these kinds of sensors to know if that’s going to be a problem or not, and is the thing I’m most worried about.
Can you recommend a good, affordable sensor for this application?
Longer description:
My country’s power infrastructure is collapsing because of reasons. We experience this as 8-12 hours of power loss per day, usually spread out into nice little 4 hour chunks that screw up production most optimally.
One of the many exciting side-effects of this is increased theft because affordable backup batteries aren’t designed to be deep cycled 3 times a day. If there’s stuff you can’t afford to lose that’s in a shed somewhere, best you find a way to keep the cameras up. Replacing a battery regularly is cheaper than replacing industrial power tools regularly.
So for my existing setup in the farm store, there’s a 12V (Meanwell?) power supply that drives the IP cameras, the network switch, and the wifi antenna that links to the main house. It recharges a 12v backup battery, but not fast enough for the kind of stupidity we’re seeing. That means I need to monitor the health of that battery pack, so that I can manually intervene if necessary. Buying big kit is not a thing until the next harvest is in.
Me being me, I’d like to make this out of what I have on hand. I think I can spring for a sensor, but I likely couldn’t afford a management system. Out here on the perimeter, there are no stars.
So I want to monitor the charge level of a 12V battery that will likely trickle charge all the time. I’ll use automations to alert me if the voltage drops below a certain point.
I have both ESP8266 and ESP32 chips in stock, breadboards, soldering wire, etc etc. My initial googling says that INA219 can monitor a 12V current, but having never worked with it, I’m concerned that it might catch on fire if the load is relevant.
Suggestions of both sensors and totally different approaches are welcome.
Thanks everyone.