Want to thank you for your current monitor design. I created a somewhat expanded stand alone ina229/esp32 board with 3 current monitors channels based almost entirely on your board, and software. Also added a mod-bus interface for status and control of my Epever charge controller. Just got the board working, but still digesting the software. I wanted to monitor battery, load, and charge controller current simultaneously. I used Easyeda for the board design, with a somewhat different esp32 module. It was very challenging soldering the ina229 chip, but my wife managed it with her steadier hands. I have had good luck exporting data with MQTT and displaying with node-red. Thanks again.
@@StuartPittaway thanks. Now trying to get it tested, and having trouble getting the current to agree with my test setup. With the calibration register set to the value per online tool, I am getting about 5% low, and the negative current doesn't quite agree with the positive. Can always change cal value, but not comfortable with that. Now building a second channel to see if results are the same. I have a .72 milli-ohm shunt, and have set max current to 40.96 amps.
Have been using your ina229 current monitor on my new solar system for about a week, modified with 3 current sensors. I note a low frequency oscillation of several 10's of an amp with a period of several minutes. At night when battery current should equal load current, the oscillations get out of phase where sometimes load current goes up while battery current goes down etc.. Problem is difficult to analyze with scope because of huge amount of high frequency noise. I am thinking a possible cause may be the high inductance of my inverter coupled with the 1 uf filter capacitor on the input of ina circuit. I changed the adc_config register to collect 1024 sampled (from default 128 to 1024 --- 0xffd4 to 0xffd7) and this helped the problem quite a bit. Will work on it some more. Thanks for inventing such a great circuit! Hope this is interesting.
Awesome.. having a shunt is invaluable. I am lucky to have sourced some chips before all the shortage, however love the idea of a all in one. Just need wifi ap mode now so that it can work in a caravan easily.
Question on powering the controller, I'm currently powering it via a USB port on the inverter that is powered from the battery. Do you think this will still be suitable if I upgraded from external shunt to on-board?
@StuartPittaway Just purchased the 4.61 Controller was planning on using it with a 96s Lifepo4 system. I just watched this video and reading the comments, I thought the controller wasn't limited by voltage but in away it is because the shunt is only capable of 85v.. I'm not sure what to do now, I thought this BMS was my solution.. Is there a way that I can incorporate something like the VISHAY HV-IBSS-USB shunt? This thing is pretty awesome, up to 850v.
Stuart, have you got any of these add on boards left by any chance, populated nd built or bare board. Id gladly buy one to complete an v4.2 controller fella.
Thank you for sharing ! I 'm a novice, the display shows ' The controller is having difficulty communicating with the cell monitoring modules. ' What does it mean, the page also has no data, the control board has no problem, the monitoring board uses 440, how to solve
Brill Stuart. Just to clarify, the new controller version 4.6 will have the current shunt integrated? Reason I ask is i need another 2 controllers and 3 current shunts at the moment for new installs, need building them as soon as possible really buddy. Thanks, and great work.
Hi Stuart, great work you are doing on this, much appreciated. Your comment on ground isolation has stuck in my mind. I'm now trying to get the BMS to Sofar inverter CAN working again after I did that initial testing of the Pylontech emulation last year. You probably remember that I had ground isolation problem which I solved using a mains powered ground isolated supply. I'm now powering the BMS of the battery as suggested but am getting the ID05 error again when I reconnect the battery. Can you advise which buck converter you use? Mine seems to be causing a problem. Thanks in advance.
@@StuartPittaway Thanks. There isn't a ground wire on the CAN cable. The problem appears to be that the ground plane of the HYD inverter is at PV voltage, in my case 215v relative to Battery negative. Supply at the BMS needs to be ground insulated and anything connected to the BMS also needs to be isolated from ground.
@@StuartPittaway What about using a voltage divider though? Bring that down to spec for the INA229... It would need a software change to accommodate such setups. Some sort of multiplier ratio the user would have to supply.
All these current monitors work by measuring a differential voltage across the shunt resistor, which itself is a very accurate resistor of a known value. If using your example you divide the battery voltage by 10 to get 15V then your current measurements will also be off by a factor of 10, and any variation in the resistor dividers would add further inaccuracy to the readings. You would need to do some custom modification of the firmware to compute the correct values but still be left with potentially variable errors from the voltage dividers.
Hi Stuart, really great work and effort you're spending so many years now. Thanks for that! I wanted to upgrade my esp8266 controller to esp32 because of the shunt option - I chose the add on board and now I got stuck with 0-readings. Perhaps you can give me one or two hints? As I populated 2 controller boards (v4.6) and 3 add on boards already, I would exclude a soldering issue with the INA229 chip.
Hi Stuart, great work again. just ordered the "old" board 5 days ago... you know, if it is possible to use the ina 229 also on the original version of your shunt system?
a doubt Stuart. What distance could there be between the controller and the resistor (shunt) consider a distance limit or we could have a meter or a meter and a half of distance, will it greatly affect the reading precision or interference?
There is practically no current flowing so distance is not that important. You probably get some noise in it in longer cables but the digital INA ICs have some built-in filtering/averaging
sorry to spam your most recent video, I am struggling to get any slave 4.21 boards firmware uploaded EDIT my new usbasp device arrived. same problem as before observed. tried -F upload flag, tried -B16 upload flag. all to no avail. Any advices here Stuart. Last thing to try might be the tinyisp like Adam Welch does but honestly think that the slaves may be broken too. I struggled last night to flash the 4.21 slaves Uploading .pio\build\V421\module_fw_V421_attiny841_421_eF4_hD6_l62.hex avrdude: error: program enable: target doesn’t answer. 1 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. any chance to send one to you to rule out that its not my equipment letting me down?
I don’t think you get enough credit for the great work you are doing. Bravo!!
Appreciate that
Want to thank you for your current monitor design. I created a somewhat expanded stand alone ina229/esp32 board with 3 current monitors channels based almost entirely on your board, and software. Also added a mod-bus interface for status and control of my Epever charge controller. Just got the board working, but still digesting the software. I wanted to monitor battery, load, and charge controller current simultaneously. I used Easyeda for the board design, with a somewhat different esp32 module. It was very challenging soldering the ina229 chip, but my wife managed it with her steadier hands. I have had good luck exporting data with MQTT and displaying with node-red. Thanks again.
Excellent, glad you found it useful
@@StuartPittaway thanks. Now trying to get it tested, and having trouble getting the current to agree with my test setup. With the calibration register set to the value per online tool, I am getting about 5% low, and the negative current doesn't quite agree with the positive. Can always change cal value, but not comfortable with that. Now building a second channel to see if results are the same. I have a .72 milli-ohm shunt, and have set max current to 40.96 amps.
great work!!! I have two INA229...
Nice!
Have been using your ina229 current monitor on my new solar system for about a week, modified with 3 current sensors. I note a low frequency oscillation of several 10's of an amp with a period of several minutes. At night when battery current should equal load current, the oscillations get out of phase where sometimes load current goes up while battery current goes down etc.. Problem is difficult to analyze with scope because of huge amount of high frequency noise. I am thinking a possible cause may be the high inductance of my inverter coupled with the 1 uf filter capacitor on the input of ina circuit. I changed the adc_config register to collect 1024 sampled (from default 128 to 1024 --- 0xffd4 to 0xffd7) and this helped the problem quite a bit. Will work on it some more. Thanks for inventing such a great circuit! Hope this is interesting.
Thank you for the information
Thanks greatly Stuart for you great knowledge and assistance.
Awesome.. having a shunt is invaluable. I am lucky to have sourced some chips before all the shortage, however love the idea of a all in one. Just need wifi ap mode now so that it can work in a caravan easily.
That's a great idea! Must get around to that ticket!!
Great work. Can't wait to build all the diybms, now including a shunt!
Go for it!
Question on powering the controller, I'm currently powering it via a USB port on the inverter that is powered from the battery. Do you think this will still be suitable if I upgraded from external shunt to on-board?
Difficult to know for sure in this scenario Mike.
Great Stuart . happy to be one of your patreons.
Much appreciated!
@StuartPittaway Just purchased the 4.61 Controller was planning on using it with a 96s Lifepo4 system. I just watched this video and reading the comments, I thought the controller wasn't limited by voltage but in away it is because the shunt is only capable of 85v.. I'm not sure what to do now, I thought this BMS was my solution..
Is there a way that I can incorporate something like the VISHAY HV-IBSS-USB shunt? This thing is pretty awesome, up to 850v.
Stuart, have you got any of these add on boards left by any chance, populated nd built or bare board. Id gladly buy one to complete an v4.2 controller fella.
Lovely video, can't wait to see more
More to come!
Thank you for sharing ! I 'm a novice, the display shows ' The controller is having difficulty communicating with the cell monitoring modules. ' What does it mean, the page also has no data, the control board has no problem, the monitoring board uses 440, how to solve
Generally means a problem with the cables between the controller and modules.
Thank you for your response ! But I 'm sorry, it still doesn 't work.
I like your BMS very much, I want to continue, can you tell me the specific information of the cable using BMS, there may be a problem in this regard
@@yuanianlin open a GitHub issue for the problem, it's easier to talk there
Brill Stuart. Just to clarify, the new controller version 4.6 will have the current shunt integrated? Reason I ask is i need another 2 controllers and 3 current shunts at the moment for new installs, need building them as soon as possible really buddy. Thanks, and great work.
Yes integrated into the controller
@@StuartPittaway If you want to pass oe of your shunts on to a few patreons to test, i`m available if your want to. Thanks
Can we attach different shunts to the controller? I.e. ones that support more than 85 volts?
The shunt is a current monitor, the voltage the voltage doesn't matter. However the INA chip I use has a maximum of 85V voltage reading
Hi.. Thank for great work! Have a question, want to use this for EV conversion, 110series...does it mean I will require 110 modules?
Yes, it would. With a high voltage DC setup, I would look for a specific EV BMS. Especially as it's safety critical
Think I'll go ahead with Orin bms, or reverse engineer a Nissan leaf bms I have lying around
Hi Stuart, great work you are doing on this, much appreciated. Your comment on ground isolation has stuck in my mind. I'm now trying to get the BMS to Sofar inverter CAN working again after I did that initial testing of the Pylontech emulation last year. You probably remember that I had ground isolation problem which I solved using a mains powered ground isolated supply. I'm now powering the BMS of the battery as suggested but am getting the ID05 error again when I reconnect the battery. Can you advise which buck converter you use? Mine seems to be causing a problem. Thanks in advance.
Remove the ground connection from the CANBUS cable, just use canh and canl connections
@@StuartPittaway Thanks. There isn't a ground wire on the CAN cable. The problem appears to be that the ground plane of the HYD inverter is at PV voltage, in my case 215v relative to Battery negative. Supply at the BMS needs to be ground insulated and anything connected to the BMS also needs to be isolated from ground.
Awesome work.
Placing a voltage divider. Could the INA229 VBus reading voltage be increased for high voltage systems? For example for reading 150Vbatt
I doubt that would work, outside the specification of the INA chip.
@@StuartPittaway What about using a voltage divider though? Bring that down to spec for the INA229...
It would need a software change to accommodate such setups. Some sort of multiplier ratio the user would have to supply.
@@CollinBaillie all the internal calculation inside the INA chip would be wrong as well, the chip does all the columb counting
All these current monitors work by measuring a differential voltage across the shunt resistor, which itself is a very accurate resistor of a known value. If using your example you divide the battery voltage by 10 to get 15V then your current measurements will also be off by a factor of 10, and any variation in the resistor dividers would add further inaccuracy to the readings. You would need to do some custom modification of the firmware to compute the correct values but still be left with potentially variable errors from the voltage dividers.
Hi Stuart, really great work and effort you're spending so many years now. Thanks for that!
I wanted to upgrade my esp8266 controller to esp32 because of the shunt option - I chose the add on board and now I got stuck with 0-readings.
Perhaps you can give me one or two hints? As I populated 2 controller boards (v4.6) and 3 add on boards already, I would exclude a soldering issue with the INA229 chip.
Hi, probably easier to open a GitHub issue, it's difficult to support via TH-cam messages
Hi Stuart, great work again. just ordered the "old" board 5 days ago... you know, if it is possible to use the ina 229 also on the original version of your shunt system?
The original shunt can only use the 228 chip - not the 229.
a doubt Stuart. What distance could there be between the controller and the resistor (shunt) consider a distance limit or we could have a meter or a meter and a half of distance, will it greatly affect the reading precision or interference?
I've tried about half a metre worked fine, you'd have to try it!
Just drill the cable and use a bigger diameter 1,5mm2 or 2,5mm2
There is practically no current flowing so distance is not that important. You probably get some noise in it in longer cables but the digital INA ICs have some built-in filtering/averaging
You are doing well!
Thank you
Great work! Now wait until mouser has stock on this item. Difficult 🙂
If there is someone willing to share an order (Belgium), PM me.
Order directly from TI, they ship worldwide
sorry to spam your most recent video, I am struggling to get any slave 4.21 boards firmware uploaded
EDIT my new usbasp device arrived. same problem as before observed. tried -F upload flag, tried -B16 upload flag. all to no avail. Any advices here Stuart. Last thing to try might be the tinyisp like Adam Welch does but honestly think that the slaves may be broken too.
I struggled last night to flash the 4.21 slaves
Uploading .pio\build\V421\module_fw_V421_attiny841_421_eF4_hD6_l62.hex
avrdude: error: program enable: target doesn’t answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
any chance to send one to you to rule out that its not my equipment letting me down?
You can try the tinyISP but I'm starting to wonder if the boards are no good/bad soldering or faulty ATTINY chips.
@@StuartPittaway yep me too
Might try cleaning the flux off the boards from my soldering but the soldering was pretty tidy
I do get a green flash on the board when it tries to flash
Do you have an Arduino which you can program using the usbasp adaptor? Straight from the Arduino IDE