# 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:** 177

<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:** [19 June 2021 17:11 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3815 "2021-06-19T17:11:45Z")

</div>

@stuart  
I just noticed that as soon as the screen goes into sleep mode, it wakes back up, still showing the stabilizing screen with the DiyBMS logo and version. And the led is blinking green slowly.  
The modules are version 4.2.0

---

<div class="post-metadata">

**Author:** ![Cak](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/cak/32/18313_2.png) [@Cak](https://community.openenergymonitor.org/u/Cak)\
**Post date:** [20 June 2021 04:31 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3816 "2021-06-20T04:31:47Z")

</div>

I had this same issue but it seams like there are other chips that are very similar but maybe a slightly changed b value which from reading other posts would just require changing the firmware code a wee bit to get accurate temp measurements.

---

<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:** [20 June 2021 07:15 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3817 "2021-06-20T07:15:59Z")

</div>

How old is the firmware on the modules?

Can you take a module out of the loop and upgrade it (disconnect from battery!)

---

<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:** [20 June 2021 14:02 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3818 "2021-06-20T14:02:22Z")

</div>

The firmware is pretty old, over a year. I am waiting on parts for the v4.4 modules so I guess I will put this on hold till then.

---

<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:** [20 June 2021 15:21 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3819 "2021-06-20T15:21:47Z")

</div>

It should work though, think it’s just due to the age of the firmware on the modules

---

<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:** [20 June 2021 20:11 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3820 "2021-06-20T20:11:58Z")

</div>

Hi everyone, am new here. I have some newbie question, I try to order diybms from jlcpcb and have them assembled them for me also but they never have all the components. So my question is can i order the pcb from them and assemble myself, and where do i order all the necessary components for the module and controller. Thanks

---

<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:** [20 June 2021 22:16 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3821 "2021-06-20T22:16:30Z")

</div>

Well. I make a big mistake to actualize platformio and since that…

![Captura3](https://community.openenergymonitor.org/uploads/default/original/3X/6/4/64cb9e1f693751f89efccf878003320b254a5f9f.png)

---

<div class="post-metadata">

**Author:** ![Cak](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/cak/32/18313_2.png) [@Cak](https://community.openenergymonitor.org/u/Cak)\
**Post date:** [21 June 2021 04:49 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3822 "2021-06-21T04:49:23Z")

</div>

Welcome Xtlife,  
I ran into that same issue. After some digging I have found that the main missing components have alternates that you can manually select in JLC. The thermistor seams to have a similar spec but different brand option at this part number C95968, Similarly the SMBJ5.0A seams to have several basically identical options and based on other forum discussions can also be ommatid with only a small risk of damaging the board from static discharge, the ATTiny often has to be purchased separately if you can find a place with stock. I just looked over the controller board and it seams the IC chips are the main shortage @stuart JCLB is missing components for U1, U3,& U8. I found parts that to my untrained eye seam very similar(mostly just different brand) and likely compatible but cost a bit more. For U1 I found a crazy expensive C132227, U3 C161197, U8 C55762. Any help on if those would work or if I should wait till fall when more parts are in.

Where are you based out of? I am planning an order here in the USA soon and am looking for folks interested in doing a group buy since it is hardly more cost to increase the size of the order.

---

<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:** [21 June 2021 07:27 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3823 "2021-06-21T07:27:51Z")

</div>

@stuart as i mentioned earlier, i did the resistor change as per the video you made and the result is now like this :

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/2/8/28312ecc501065b3a68d33f43c26217a24e4839a.png)  
Notice the module 6 is getting less packets received, is it the sixth module from the controller or should i look a the cable from the previous module or what can that be ? Bad module ? Also i still see few CRC and OSS, is that what to expect at 200.000 packets ?

---

<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:** [21 June 2021 08:21 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3824 "2021-06-21T08:21:51Z")

</div>

Hello @Xtlife

Check out the OEM shop - they have v4.40 products in stock now - all parts supplied as a kit.

---

<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:** [21 June 2021 08:22 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3825 "2021-06-21T08:22:48Z")

</div>

> [@donnib](#):
>
> Bad module ?

Definitely something wrong with that module - perhaps is just a cable issue?

Can you swap that module with another one and see if the problem moves?

---

<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:** [21 June 2021 08:24 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3826 "2021-06-21T08:24:53Z")

</div>

but should i try to replace module 7 (it’s starts at 0) or should i replace module 6 ?

---

<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:** [21 June 2021 08:58 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3827 "2021-06-21T08:58:50Z")

</div>

If you click the “identify” button it will flash the LED to indicate which module it is.

As the packet count is significantly lower than the rest, I suspect the controller ship is rebooting.

Perhaps some bad soldering ?

---

<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:** [21 June 2021 09:14 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3828 "2021-06-21T09:14:33Z")

</div>

> [@stuart](#):
>
> controller ship

What do you mean ? As far as i can see the controller doesn’t reboot, maybe you mean the module ?

---

<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:** [21 June 2021 09:43 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3829 "2021-06-21T09:43:30Z")

</div>

Crazy typo there!

“module chip”

---

<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:** [21 June 2021 15:14 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3830 "2021-06-21T15:14:46Z")

</div>

Lads,  
when i run the controller with no module attached it ends up with STABILIZING… on the display, the wifi works and no LEDs flashing. BUT when I try the same controller with the test sofware, the display remains dark and no LEDs flashing.  
I already spent two days trying to figure out where the problem is, but I’m stuck. Any clues?

---

<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:** [21 June 2021 16:56 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3831 "2021-06-21T16:56:17Z")

</div>

> [@wmichale](#):
>
> no module attached it ends up with STABILIZING

Thats to be expected - connect a module !

Its waiting for all the modules to reply - you could also try putting a cable between the TX and RX connections on the controller board.

---

<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:** [21 June 2021 19:08 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3832 "2021-06-21T19:08:36Z")

</div>

```auto
switch (_controller_state)
    {
    case ControllerState::PowerUp:
      //Purple during start up, don't use the LED as thats not setup at this state
      hal.Led(RGBLED::Purple);
      break;
    case ControllerState::ConfigurationSoftAP:
      //Don't use the LED as thats not setup at this state
      hal.Led(RGBLED::White);
      break;
    case ControllerState::Stabilizing:
      LED(RGBLED::Yellow);
      break;
    case ControllerState::Running:
      LED(RGBLED::Green);
      //Fire task to switch off BOOT button after 30 seconds
      xTaskNotify(wifiresetdisable_task_handle, 0x00, eNotifyAction::eNoAction);
      break;
    case ControllerState::Unknown:
      //Do nothing
      break;
    }

```

Shouldn’t LEDs light up according to the controller state?

---

<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:** [21 June 2021 19:44 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3833 "2021-06-21T19:44:25Z")

</div>

> [@wmichale](#):
>
> Shouldn’t LEDs light up according to the controller state?

Yes, but it does appear that the Yellow doesn’t light up for me at the moment!

---

<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:** [21 June 2021 23:20 UTC](https://community.openenergymonitor.org/t/diybms-v4/11292/3834 "2021-06-21T23:20:40Z")

</div>

> [@DIYBMS v4](https://community.openenergymonitor.org/t/diybms-v4/11292/3821):
>
> Well. I make a big mistake to actualize platformio and since that… [Captura3]

SOLUTION HERE: [Xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17' - #4 by maxgerhardt - PlatformIO IDE - PlatformIO Community](https://community.platformio.org/t/xtensa-lx106-elf-g-error-unrecognized-command-line-option-std-gnu-17/22111/4)

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

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