# DIYBMS v4

**URL:** <https://community.openenergymonitor.org/t/diybms-v4/11292>\
**Category:** diyBMS\
**Tags:** bms, diybms, battery\
**Created:** [30 June 2019 09:06 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292 "2019-06-30T09:06:01Z")\
**Posts on this page:** 20\
**Page:** 178

<div class="post-metadata">

**Author:** ![Fred7421](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/fred7421/32/17293_2.png) [@Fred7421](https://community.openenergymonitor.org/u/Fred7421)\
**Post date:** [21 June 2021 23:21 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3835 "2021-06-21T23:21:43Z")

</div>

Is the controller supposed to move off of stabilizing with the tx and rx connected together?

---

<div class="post-metadata">

**Author:** ![Xtlife](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/xtlife/32/19296_2.png) [@Xtlife](https://community.openenergymonitor.org/u/Xtlife)\
**Post date:** [22 June 2021 01:49 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3836 "2021-06-22T01:49:55Z")

</div>

Does the shop have controller also? I dont see it listed

---

<div class="post-metadata">

**Author:** ![dakoal](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dakoal](https://community.openenergymonitor.org/u/dakoal)\
**Post date:** [22 June 2021 08:20 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3837 "2021-06-22T08:20:14Z")

</div>

Latest ESP32 Firmware [Release-2021-06-16-12-11] has the following error

All 4 relays (Solid State and normal) on NEW ESP32 Controller not working / switching on.

Reflashed with this version and it works  
Version: [3e1776b1a0d8941398d2eab576b4e2af8ec25a6e]  
Compiled: 2021-05-11T11:41:15.777Z

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [22 June 2021 11:03 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3838 "2021-06-22T11:03:13Z")

</div>

> [@dakoal](#):
>
> All 4 relays (Solid State and normal) on NEW ESP32 Controller not working / switching on.

Looks like a bug, will have a fix out ASAP

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [22 June 2021 11:03 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3839 "2021-06-22T11:03:29Z")

</div>

> [@Xtlife](#):
>
> Does the shop have controller also? I dont see it listed

Not at the moment - can’t get the parts!

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [22 June 2021 11:04 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3840 "2021-06-22T11:04:04Z")

</div>

> [@Fred7421](#):
>
> Is the controller supposed to move off of stabilizing with the tx and rx connected together?

No, its waiting for modules to reply - which they won’t.

What are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [22 June 2021 12:37 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3841 "2021-06-22T12:37:34Z")

</div>

> [@dakoal](#):
>
> All 4 relays (Solid State and normal) on NEW ESP32 Controller not working / switching on.

This issue is now resolved.

---

<div class="post-metadata">

**Author:** ![Fred7421](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/fred7421/32/17293_2.png) [@Fred7421](https://community.openenergymonitor.org/u/Fred7421)\
**Post date:** [22 June 2021 14:54 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3842 "2021-06-22T14:54:07Z")

</div>

> [@stuart](#):
>
> What are you trying to achieve?

I am waiting on parts for the v4.4 modules, so while I’m waiting, I built the controller. I connected the controller’s rx1 directly to tx1 half expecting to see the ‘Stabilizing’ screen change, but it didn’t.  
Then I connected up my v4.20 modules to the new controller, less-than-half expecting them to change the new controller’s state; it didn’t.  
After talking with you about it, I am relatively sure that once I build the new modules, they will all work together just fine.  
Then I saw your post :

> [@stuart](#):
>
> - you could also try putting a cable between the TX and RX connections on the controller board.

And thought I should clarify that comment in my mind.  
Once I get past that and have modules working with the new controller, I will need some assistance with a code mod to remove the ‘blip’ that the dump load signal has. I am going with a relay-controlled dump load instead of the on-board resistor bank.

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [22 June 2021 15:08 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3843 "2021-06-22T15:08:31Z")

</div>

Ah, I see.

The stabilizing screen means that the controller is waiting for all modules to return a reply and a valid voltage reading - that state will remain until modules are connected.

The web interface should still be functional at that point though.

The V4.2 modules should work - as long as they have recent firmware installed, you can use the new controller to program them (disconnect module from battery first!)

---

<div class="post-metadata">

**Author:** ![almol](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/almol/32/16269_2.png) [@almol](https://community.openenergymonitor.org/u/almol)\
**Post date:** [22 June 2021 18:35 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3844 "2021-06-22T18:35:34Z")

</div>

Well first impression are not good…

At start, all cells around 4.05V and bypass fixed hight to 4.20V:

 ![imagen](https://community.openenergymonitor.org/uploads/default/original/3X/2/5/251a293e688f559bcd19fd178cac904ff6a4fb03.png)

Then down bypass to 4.05 and voltage measures start to crazy up and down:

 ![imagen](https://community.openenergymonitor.org/uploads/default/original/3X/6/d/6d390a4e79152f36d6301eb6458171b620b42591.png)

It seems that during balance, voltage measures will fail.  
-Will the cables be very thin?  
-My Attiny or other HW are bad?  
-Other unknown config?

Tested with a lipo drone cell 4s

 ![imagen](https://community.openenergymonitor.org/uploads/default/original/3X/f/5/f58df7fb2a122bd6cceb5bc276703b14178a1929.jpeg)

My config: V440 modules with last firm.  
ESP8266 controller.  
…

After few minutes draining energy, disconnect modules and reconect. Voltage is now around 3,9 volts and no bypass.

---

<div class="post-metadata">

**Author:** ![dakoal](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dakoal](https://community.openenergymonitor.org/u/dakoal)\
**Post date:** [22 June 2021 20:10 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3845 "2021-06-22T20:10:05Z")

</div>

As written here some time ago: Don’t share cables.  
Always go with + and - direct from the module to the battery pole.

As soon as one module is starting to balance, the voltage of the + pole is sinking at the end of the cable. But this value is the - of the next cell.

So the next cell suddenly has a higher voltage, because the - is sinking, and if its higher then balance voltage, it starts.

Then the game goes to the next cell.

With the cheap China BMS 30mA and less balance power of them is no problem. But we have here 800 to 1000mA Balancepower.

Edit: and we don’t use these red/black PH2.0 JST connector china cables from the picture for powering the modules, they are to thin. For communication no problem.

We use as minimum 24AWG for power connector cables.

---

<div class="post-metadata">

**Author:** ![dakoal](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dakoal](https://community.openenergymonitor.org/u/dakoal)\
**Post date:** [22 June 2021 20:20 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3846 "2021-06-22T20:20:50Z")

</div>

![image](https://community.openenergymonitor.org/uploads/default/original/3X/5/8/5862670dd2f4540d6053105761f373ca7a7b0b61.jpeg)

300Ah battery, own + and - cable for the V4.21 module.

---

<div class="post-metadata">

**Author:** ![almol](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/almol/32/16269_2.png) [@almol](https://community.openenergymonitor.org/u/almol)\
**Post date:** [22 June 2021 20:49 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3847 "2021-06-22T20:49:50Z")

</div>

Thanks for the advice. I can’t find cables bigger than 26AWG, really PH2.0 JST is too small for the propuse.  
On that test, Lipo cables (common part) are 22AWG then 26AWG.  
That will be common mistake… Neverless, I’ll tried with real cells shortly.  
Maybe this will be arrange by firmware? (stopping balance and check voltage). I’m worried that voltage is down and down without intervention and battery will be maybe drained.

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [22 June 2021 22:08 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3848 "2021-06-22T22:08:07Z")

</div>

Jst ph2 connectors are rated for 2amps, plenty for the 1amp it may draw.

As a cell balances, the voltage will drop due to ohm’s law and the cells and cables internal resistance.

---

<div class="post-metadata">

**Author:** ![almol](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/almol/32/16269_2.png) [@almol](https://community.openenergymonitor.org/u/almol)\
**Post date:** [22 June 2021 22:38 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3849 "2021-06-22T22:38:36Z")

</div>

Yes, I know, you shouldn’t use common cable, but in some environments I don’t think you can do much.

As @dakoal explains, in an environment with common wires, when a module is balancing it causes an increase in the measured voltage of the neighboring module. This causes this module to detect a higher voltage and also to balance. This goes into a spiral that causes the whole system to malfunction and to stop it, intervention is needed: raising the bypass voltage or disconnecting the modules.

 ![imagen](https://community.openenergymonitor.org/uploads/default/original/3X/6/f/6f13bcbe91cda6f6bccbc206d238aab76cee97b1.jpeg)

I think the software solution would be simple:  
-Stop the balancing for an instant in all the modules every minute and measure the correct voltage, or stop the balancing in the adjoining modules.  
-Detect that if there are large voltage variations in contiguous measurements and also stop the balancing for a moment.  
-Use the lowest voltage in a serie of measurements.

---

<div class="post-metadata">

**Author:** ![dakoal](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dakoal](https://community.openenergymonitor.org/u/dakoal)\
**Post date:** [23 June 2021 05:02 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3850 "2021-06-23T05:02:11Z")

</div>

Just flashed the new compiled FW. Works perfect. THX

---

<div class="post-metadata">

**Author:** ![stuart](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/stuart/32/16661_2.png) [@stuart](https://community.openenergymonitor.org/u/stuart)\
**Post date:** [23 June 2021 06:52 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3851 "2021-06-23T06:52:11Z")

</div>

The issue you have is slightly artificial.

In a normal charge cycle, all the cells won’t be out of balance. So the BMS will then only have a few random cells to balance (if any)

The charger should have stopped balancing well before the cut off voltage, to prevent the situation in the first place.

What you are now doing is more of a discharge test.

---

<div class="post-metadata">

**Author:** ![donnib](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/donnib/32/11015_2.png) [@donnib](https://community.openenergymonitor.org/u/donnib)\
**Post date:** [23 June 2021 07:22 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3852 "2021-06-23T07:22:46Z")

</div>

Hi @stuart,  
Are there news on the Can bus support on the new controller ? What about Modbus TCP ?  
I am using the Victron inverter and i setup the 2 wire bms and i am using the relays but would prefer a more inteligents communication between the charger and bms.

/donnib

---

<div class="post-metadata">

**Author:** ![gazzaman2k](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/gazzaman2k/32/12660_2.png) [@gazzaman2k](https://community.openenergymonitor.org/u/gazzaman2k)\
**Post date:** [23 June 2021 14:46 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3853 "2021-06-23T14:46:30Z")

</div>

is there a valid replacement for AQY212GSZ i just had a order cancelled from ali as they dont have them anymore, is the AQY212G the same? thanks

P.S i fixed the new controller i burnt out, c3/4 change and the ic chip and the canbus chip swapped and all is good 🙂 aswell as a new lcd and new 8gb micro SD that seemed to be all that went bang 🙂

---

<div class="post-metadata">

**Author:** ![wmichale](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/w/e9a140/32.png) [@wmichale](https://community.openenergymonitor.org/u/wmichale)\
**Post date:** [23 June 2021 16:38 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3854 "2021-06-23T16:38:55Z")

</div>

This is where I bought mine from:

[https://m.pl.aliexpress.com/item/4000171761848.html?spm=a2g0n.orderlist-amp.item.4000171761848&aff\_trace\_key=&aff\_platform=msite&m\_page\_id=7844amp-b9uQTkcwiO0\_iNsjbMzPdw1624466117203&browser\_id=&is\_c=](https://m.pl.aliexpress.com/item/4000171761848.html?spm=a2g0n.orderlist-amp.item.4000171761848&aff_trace_key=&aff_platform=msite&m_page_id=7844amp-b9uQTkcwiO0_iNsjbMzPdw1624466117203&browser_id=&is_c=)

[Previous page](https://community.openenergymonitor.org/t/diybms-v4/11292.md?page=177)

[Next page](https://community.openenergymonitor.org/t/diybms-v4/11292.md?page=179)
