GHA
Well-Known Member
Moving along from this one >
http://www.ybw.com/forums/showthread.php?501730-DIY-ammeter-dead-cool
Bit more work & now can control current draw pretty accurately and do the setup on a webpage using MQTT.
Overview, an ESP8266 measures current through an INA219 sensor and sets the current draw using a FET transistor. Soon will write all the data to a database (through signalk doing all the hard work) then plotting graphs is easy.
Vaguely similar to these videos but using a current sensor >
https://www.youtube.com/watch?v=jGEuJ45dnjs&t
Schematic sketch >
Code & stuff here if anyone wants a play>
https://github.com/boatybits/ConstantCurrent
Current control is so far a buk553 logic level mosfet driven from a pwm pin with a low pass filter to smooth out the voltage from pulses so the measurements aren't all or nothing. Something up with the config of the ina219, should be less noisy than that.
-------------------------------
So questions >
What to use as a load? Just a little 1ohm resister at the moment playing around with a 18650 battery but it's getting a bit smelly in here
There is some resistance wire which could maybe be wrapped round some dowel & painted then in a bucket of water, but there might be some obvious method???
And any point using the FET to drive a much bigger power transister? Got a few lying around and was thinking of just paralleling some onto a big heatsink but winging it here really. They're rated 75W but suspect they'll need a hefty heatsink.
---------------------------------
Eventually the idea is to be able to do a "half' capacity test on the main batteries without having to turn anything off, constant current down to 12v or whatever then overly a plot of the data over the last time to see if the batts look OK or might be on the verge of collapse.....
http://www.ybw.com/forums/showthread.php?501730-DIY-ammeter-dead-cool
Bit more work & now can control current draw pretty accurately and do the setup on a webpage using MQTT.
Overview, an ESP8266 measures current through an INA219 sensor and sets the current draw using a FET transistor. Soon will write all the data to a database (through signalk doing all the hard work) then plotting graphs is easy.
Vaguely similar to these videos but using a current sensor >
https://www.youtube.com/watch?v=jGEuJ45dnjs&t
Schematic sketch >
Code & stuff here if anyone wants a play>
https://github.com/boatybits/ConstantCurrent
Current control is so far a buk553 logic level mosfet driven from a pwm pin with a low pass filter to smooth out the voltage from pulses so the measurements aren't all or nothing. Something up with the config of the ina219, should be less noisy than that.
-------------------------------
So questions >
What to use as a load? Just a little 1ohm resister at the moment playing around with a 18650 battery but it's getting a bit smelly in here
And any point using the FET to drive a much bigger power transister? Got a few lying around and was thinking of just paralleling some onto a big heatsink but winging it here really. They're rated 75W but suspect they'll need a hefty heatsink.
---------------------------------
Eventually the idea is to be able to do a "half' capacity test on the main batteries without having to turn anything off, constant current down to 12v or whatever then overly a plot of the data over the last time to see if the batts look OK or might be on the verge of collapse.....
Last edited: