DIYBMS v4

its package is 0603 and pcb designed pacakge is 0805

hi george i ordered some of the diy leaf bms they come mostly assembled, just the jst 2 pin/4pin, headder pins, D1 and the attiny841 that needed to be soldered.

ive got them attached to my battery bank, temperature and all features work as shouldā€¦

problem being that the voltage, once calibrated the voltage does not change, today i powered up my solar chargers to charge the battery up, the voltage stayed on 55.7v constantly, the actual voltage is now 57.1v

the voltage on the graphs has not even moved yet its communicating fine with the modules.

the only difference i done is that D1 on the bom is a AZ432ANTR-E1 and on the original v4 bom it is a ADR5040BRTZ R2L SOT-23

would this cause the voltage not to change on the system?

i am using stuarts latest code dated feb25

thanks

Yes that would break it! Iā€™m surprised nothing went bang, they are completely different chips. The v4 and v4.21 and the leaf board are slightly different circuits but the code is the same.

1 Like

Are you trying to build a v4 or v4.21, itā€™s easier to just let jlcpcb build the board for you. Go with the v4.21 branvh. And jlcpcb assembly

Dear @stuart Where is 4.21?

thanks stuart. if i was to replace the compondants with the v4 stuff change the resistors and leave D1 as ADR5040BRTZ , i guess that would work?, any real defference between the v4.21 and the v4 or was it just adapted to make it cheaper on jlc, im struggling to find AZ432ANTR-E1 mouser want 12quid postage so screw that, nothing on rs, digikey, farnell or lcsc i found them on ali express but i dont want to wait a month for the bits :frowning:

In GitHub, look at the branches v4.2

See if you can find similar component to this one, itā€™s the 1ā€¦25V thatā€™s important.

Hi Gareth.

The AZ432ANTR is 1.25v whereas the ADR5040 is 2.048v. Stuart was juggling this part to get one that JCLPCB had stock of to reduce the amount of hand soldering. I changed to the 1.25v to match his last choiceā€¦ unless he changed it again.

I have not run my boards with a solar charger but I did test the boards by lowering the threshold and watching the discharge. Resisitors heated and the cell voltage dropped.

The monitors are running the latest code and the ESPcontroller is also running his latest code.

I need to reset my pack as I disassembled it as it was not going to be used for a while and I did not want to charge it and let it sit for months. I will reassemble the pack and charge it a small MPT and power supply. I will get back to you wit the results.

George

Please send me the link to v4.21

@gazzaman2k Please send me the link of v4.21

https://uk.rs-online.com/web/p/voltage-references/6619427/?relevancy-data=636F3D3126696E3D4931384E53656172636847656E65726963266C753D656E266D6D3D6D61746368616C6C7061727469616C26706D3D5E5B5C707B4C7D5C707B4E647D2D2C2F255C2E5D2B2426706F3D31333326736E3D592673723D2673743D4B4559574F52445F53494E474C455F414C5048415F4E554D455249432673633D592677633D4E4F4E45267573743D52454632393132414944425A52267374613D52454632393132414944425A5226&searchHistory={"enabled"%3Atrue}

or

https://uk.rs-online.com/web/p/voltage-references/6619653/
would that be suitable for a replacement?

thanks

https://github.com/stuartpittaway/diyBMSv4/tree/Version4.2

I think what you are missing is that 4.2 is a branch of the repository. In GitHub look for this;

image

@stuart It is slightly confusing to refer to this as 4.21 - what makes it 4.21 over 4.2? Might be worth doing an actual ā€˜releaseā€™ with a 4.21 annotated tag.

Just a thought to avoid questions :grin:.

1 Like

Any major difference in v4 and v4.2?

Just starting to build diyBMS after monitoring the project for a year or so! I have one question and one bit of help for others trying to compile.

Question: @Stuart - great job on the diyBMS. Iā€™ve seen mention of a 4.3 version and Iā€™m contemplating getting 4.21 boards made and populated. Should I hold off until a 4.3 arrives and can you give any clue as to what changes?

Help for others: I wanted to try building the controller and boards with Vscode and PlatformIO (I know thereā€™s a binary image which I tested first and worked fine but I wanted to try and at least get a dev env setup as Iā€™ve never used vscode/pio and now seems a good time to try). Installed git client 2.26.1, then vscode then platformio extension. Restarted etc. Downloaded the diyBMSv4 code project and extracted, imported into PIO and tried to build. I kept getting the following:

Processing nodemcuv2 (platform: espressif8266; board: d1_mini_pro; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini_pro.html
PLATFORM: Espressif 8266 2.4.0 > WeMos D1 mini Pro       
HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash
PACKAGES:
 - framework-arduinoespressif8266 3.20603.200130 (2.6.3) 
 - tool-esptool 1.413.0 (4.13)
 - tool-esptoolpy 1.20800.0 (2.8.0)
 - toolchain-xtensa 2.40802.191122 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
LibraryManager: Installing Queue
git version 2.26.1.windows.1
Cloning into 'C:\Users\James\Documents\diyBMS\diyBMSv4Code-master\ESPController\.pio\libdeps\nodemcuv2\_tmp_installing-_80009e7-package'...
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\James\\Documents\\diyBMS\\diyBMSv4Code-master\\ESPController\\.pio\\libdeps\\nodemcuv2\\_tmp_installing-_80009e7-package\\.git\\objects\\pack\\pack-623d5a9a5a5175f4be991ef6b53f75fb319f537a.idx'

No amount of searching on here or googling led me to resolve the problem. After a few hours of trying to figure it out I noticed it seemed to be creating directories for each library it was trying to get but failing to rename the tmpā€¦ folder to itā€™s actual name (feels like trying to rename too fast). Yet when I re-ran the build it would complete the rename and move to the next library and then fail again in the same way. By simply clicking build about 10 times (once for each library) it would eventually get through all the libraries and complete those without the Winerror 5. Before figuring this out I had deleted and re-extracted the project code a number of times before I ever tried building it enough times to complete all the library downloads.

Then the next issue causing build to fail:

In file included from .pio\libdeps\nodemcuv2\AsyncMqttClient\src\AsyncMqttClient.cpp:1:0:
.pio\libdeps\nodemcuv2\AsyncMqttClient\src\AsyncMqttClient.hpp:12:25: fatal error: ESPAsyncTCP.h: No such file or directory

I didnā€™t actually see the message below that about ā€œLooking for the ESPAsyncTCP.h dependency?ā€. However, I found that adding the following line in the lib_deps of the project platformio.ini file just before ESPAsyncWebServer.git fixed it completely (after having another winerror5 on renaming the folder and just clicking build again):

> https://github.com/me-no-dev/ESPAsyncTCP.git

Saved the file. Now it builds perfectly. I just wanted to put this information here in case anyone else is starting from scratch and gets into the same situation I did and doesnā€™t know why their build fails or what to do.

They are the same circuit. 4.21 is optimised for building at jlcpcb, itā€™s also cheaper.

4.21 works well files for this are here, note this design is NOT suitable for handsoldering:
[Release 4.21 Ā· stuartpittaway/diyBMSv4 Ā· GitHub]
[https://github.com/stuartpittaway/diyBMSv4/tree/jlcpcbassembly]

v4.0 is basically the same design, but is suitable for hand soldering.
[GitHub - stuartpittaway/diyBMSv4: Version 4 of the diyBMS]

Version 4.3 wonā€™t make it out into the world as it currently stands (there are faults in the design) and its not fundamentally different from the above, it uses the same code.

1 Like

Thanks @jamesb

PIO is designed to resolve all the dependency files automatically, thats one of its big selling points, strange that you had so many issues compiling.

Agreed
[Release 4.21 Ā· stuartpittaway/diyBMSv4 Ā· GitHub]

1 Like