DIYBMS New Module V4.5 with 12bit ADC

  Рет қаралды 11,716

Stuart Pittaway

Stuart Pittaway

Күн бұрын

The links to my GITHUB repositories are below:
github.com/stu...
github.com/stu...
When ordering from JLCPCB, please support this project by using my affiliate link - it won’t cost you anything extra, but helps me make more prototypes and improvements.
jlcpcb.com/RSZ
The files you will need to actually build and order these new modules are located in the version 450 folder, look for the folder named EXPORT.
If you are planning to use JLCPCB to build these boards, you will need the GERBERS.ZIP file along with the BOM and CPL files.
Support the project on PATREON - / stuartp

Пікірлер: 105
@baranarslan8604
@baranarslan8604 Жыл бұрын
Thank you!
@jharwinbarrozo
@jharwinbarrozo Жыл бұрын
Hi Stuart, I am a big follower of your diybms project. I am just wondering if I can redo the board layout and design in Flux ?(it's a new webapp for designing circuit and PCB board). Just asking for your permission.
@StuartPittaway
@StuartPittaway Жыл бұрын
Yes, absolutely. Just a reminder that the design is open source for non-commercial usage, so can't be resold for profit
@jharwinbarrozo
@jharwinbarrozo Жыл бұрын
@@StuartPittaway noted. I’ll share you the link once I’m done. Thanks again for this awesome project!
@DIYTechRepairs
@DIYTechRepairs Жыл бұрын
Awesome work and very well explained!
@StuartPittaway
@StuartPittaway Жыл бұрын
Thanks a lot!
@grzegorzpalinski1494
@grzegorzpalinski1494 8 ай бұрын
Hello, when I try to order a driver, it shows that some parts are missing in the bom and cpl files.
@anthonyevans7911
@anthonyevans7911 Жыл бұрын
Merry Xmas and happy new year Stuart. Really looking forward with happiness for the new controller code and pylontech emulation, thats a huge step forward in my opinion, as pylotech is supported by most hybrid inverter manufacturers, a great add on for us. Thank you for your hard work.
@StuartPittaway
@StuartPittaway Жыл бұрын
Thanks for watching. The new code looks to be working well so far.
@davidliddell-tr4gp
@davidliddell-tr4gp Жыл бұрын
Hi Stuart again. My cell monitor (attiny85) runs at 19200baud (this is quite hard on an 85 especially without an external xtal!) and thus the round trip time is not a problem. I also only send data if there is a change which reduces the data dramatically. Send me a message I will share what I did. I have tried to send this before the bot eats it up! Here is how to get in touch encoded. My name is David Liddell. Use my first name, the usual separator, my surname followed by the most common TLD. Hope this works.
@StuartPittaway
@StuartPittaway Жыл бұрын
David - I obviously can't decipher the email address!! Can you create me a GITHUB issue over at github.com/stuartpittaway/diyBMSv4ESP32 and we can chat in there.
@marcbohbot7533
@marcbohbot7533 6 ай бұрын
Hello Stuart. Do you have a battery charger solution to complement the DIY BMS? Thanks.
@StuartPittaway
@StuartPittaway 6 ай бұрын
No I don't. Victron kit is good quality and works well with diybms. I use a sofar inverter/charger
@gjsxnobody7534
@gjsxnobody7534 Жыл бұрын
How does this DIY BMS compare to say an Orion BMS? Seems it’s 10x. Cheaper. Does the Orion do anything better?
@StuartPittaway
@StuartPittaway Жыл бұрын
I've not used an Orion BMS so not sure of the features
@focusford7590
@focusford7590 Жыл бұрын
could you do a video on using the updi programmer used jtag2updi.Iam using with avrdudess no joy any help thanks.
@StuartPittaway
@StuartPittaway Жыл бұрын
Ok, good idea
@bbokser
@bbokser Жыл бұрын
You should be selling these!
@georgef7754
@georgef7754 Жыл бұрын
Thank you and have a great Christmas and a festive New Year.
@StuartPittaway
@StuartPittaway Жыл бұрын
Thank you
@PeterZimmer-hc5uw
@PeterZimmer-hc5uw Жыл бұрын
Any chance for an updated "how to order"-video?
@StuartPittaway
@StuartPittaway Жыл бұрын
Good idea
@MrIGI-gg4qy
@MrIGI-gg4qy Жыл бұрын
Hey, how about to use CH32V003 mcu. It seems to be costing around $0.1. Yes, it is still 10 bit and made in China but available and cheap.
@StuartPittaway
@StuartPittaway Жыл бұрын
That would require all the software to be rewritten!
@MrIGI-gg4qy
@MrIGI-gg4qy Жыл бұрын
@@StuartPittaway which might be not that bad idea. I mean make it more abstract and less dependant on hardware implementation.
@marcbohbot7533
@marcbohbot7533 11 ай бұрын
Hello Stuart. For the v4.4, i understand that the batt voltage is measure with the voltage divider. However, on V4.5, i don't understand how the batt voltage is measured. When PA1 (REF_EN) outputs a voltage, PA5 (VREF) is always at 1.24V. Which input ADC port measures the batt voltage? Thanks
@StuartPittaway
@StuartPittaway 11 ай бұрын
Hello, the V4.5 modules run at the cell voltage (which directly powers the ATTINY chip). The 1.24V reference is used as a reference to the ADC chip in the ATTINY which can then use that to determine the "band gap" voltage of the incoming cell voltage. Because the reference voltage is fixed, the code can calculate the cell voltage powering the ATTINY.
@marcbohbot7533
@marcbohbot7533 11 ай бұрын
@@StuartPittaway Hello again. Which pin will actually measure the band gap of the incoming cell voltage?
@StuartPittaway
@StuartPittaway 11 ай бұрын
@@marcbohbot7533 the cell voltage is measured directly from the VCC input to the ATTINY, along with PA5 (VREF)
@MihaiMihai-zw4rz
@MihaiMihai-zw4rz Жыл бұрын
Very nice module! Is it for sale? If so, how can I order it and how much does it cost? Thank you very much for sharing!All the best to all family!
@StuartPittaway
@StuartPittaway Жыл бұрын
The files you need to build this are all in the GITHUB repository - the boards can be ordered from JLCPCB
@MihaiMihai-zw4rz
@MihaiMihai-zw4rz Жыл бұрын
@@StuartPittaway Ok, thank you for information, but if you have time will be very helpfull, (not only for me), if you can show how to order on JLCPB, because there are many forms to complete. All the best!
@TanNguyen-qq2kp
@TanNguyen-qq2kp Жыл бұрын
I'm trying to build this module v4.5 but it seem doesn't work with esp8266 controller. is that true? Thanks
@StuartPittaway
@StuartPittaway 11 ай бұрын
I think it should be fine - the esp8266 isn't a supported platform, but the module should still work from a software point of view. Make sure you are using the 2400 baud rate (comms speed) code for the module.
@TanNguyen-qq2kp
@TanNguyen-qq2kp 11 ай бұрын
@@StuartPittaway Thank you for your reply. I tried to flash 2k4 firmware (module_fw_V450_2K4_ATtiny1624_450_e0_h0_l0.hex) for the module and it's flashing green but I got no information when connecting to the controller.
@StuartPittaway
@StuartPittaway 11 ай бұрын
@@TanNguyen-qq2kphas the controller worked with other modules? Try connecting the TX and RX together on the controller - you should see "ignored" errors in the web interface. That means the controller is working properly. The modules connect to the controller TX to RX (not TX to TX - that is bad!)
@davidliddell-tr4gp
@davidliddell-tr4gp Жыл бұрын
What did you use for your microscope?
@StuartPittaway
@StuartPittaway Жыл бұрын
It's a very low cost £70 unit from AliExpress. Had it for ages so not sure of the brand.
@ryanmowry1170
@ryanmowry1170 Жыл бұрын
What's the maximum number of cells you can do in series? Would the i2c bus be able to handle 100s?
@StuartPittaway
@StuartPittaway Жыл бұрын
Up to 128 cells in series, the modules no longer use i2c bus for communication.
@ryanmowry1170
@ryanmowry1170 Жыл бұрын
what are you using then if your not using i2c? canbus? uart? spi? thanks for the info! 🙂
@StuartPittaway
@StuartPittaway Жыл бұрын
@@ryanmowry1170 custom isolated UART protocol
@garethbenjamin9692
@garethbenjamin9692 Жыл бұрын
Thanks for the great work Stuart, is this new module compatible with the previous version of the controller (ESP8266) and will it work with a mix of v4.21 modules?
@StuartPittaway
@StuartPittaway Жыл бұрын
It should be okay, I've not fully tested it against the ESP8266 controller, but its the same code under the covers - you will need to run it at the "standard" baud rate/speed.
@rowifi
@rowifi Жыл бұрын
Currently playing with Solar and Batteries. Looks interesting, but do I need one of these boards for every battery? If I have a 3 series 12v battery bank that's 3 PCB modules? If I start to parallel individual batteries, then it becomes more cost / space effective. but are we then just protecting a single paralleled bank. Have I understood that right?
@StuartPittaway
@StuartPittaway Жыл бұрын
You need a module per set of parallel cells. The modules don't cost a lot (less than 5 USD)
@davidliddell-tr4gp
@davidliddell-tr4gp Жыл бұрын
Hi Stuart, I just found this page. I have been working on something remarkably similar and live in Newcastle! I have a cell monitor using an attiny85 with serial comms between the cell monitors and a controller using an ESP32, this monitors the current using an INA228. I am currently looking at changing the cell monitors to use BLE to get rid of the wires. I also have just installed a Givenergy AC inverter and 5.2 battery to store cheap Octopus Go electricity. There is lots to talk to about.
@StuartPittaway
@StuartPittaway Жыл бұрын
Sounds like we have a very similar setup - have you seen my other videos on the LIFEPO4 battery build?
@typxxilps
@typxxilps Жыл бұрын
great progress !
@StuartPittaway
@StuartPittaway Жыл бұрын
Thanks
@citizengkar7824
@citizengkar7824 Жыл бұрын
This looks an excellent model iteration. You are not only an extremely savvy electronics developer, but a great teacher, as well. Thanks. I guess the obvious question is, are the existing controller & shunt modules plug & play compatible, with this redesigned monitoring module? I would be considered as not far above entry level, for electronics, but did understand, your V4.5 module upgrade explanation. I am teaching myself, all the necessary requirements, through channels, such as yours, to further my understanding, towards a safe, & effective system. I am building up my 18650 supply, at present (procurement, testing, as well as building smaller battery systems, like portable backup power supplies (~1.6Kwh the largest, to date)), with a view to building a solar backup system (not to as large a scale, as some, in the DIY world). So, am just researching your BMS; but am vying towards utilising it, as my preferred battery bank charge/discharge control, as I really like your individual module-oriented design. Makes future battery upgrades, as well as capacity increases, a breeze. A Good & safe Christmas/New Year, to you, & your family, Stuart.
@StuartPittaway
@StuartPittaway Жыл бұрын
Hi- thanks for the comment, this new module is fully compatible with the existing ESP32 controller, and also the older style modules.
@javierborras7752
@javierborras7752 Жыл бұрын
What about LTC chip solution??? Did you abandoned this solution? Thanks Stuart 😊
@StuartPittaway
@StuartPittaway Жыл бұрын
No, still going to look at that but I needed a working solution for my LIFEPO4 battery cells.
@dirtrider1674
@dirtrider1674 Жыл бұрын
Thank you Stuart for the excellent work and the detailed explanation in the video. I have a question about the reference voltage: Why don't you use the internal 1.1V reference instead of the external 1.25 from the Z-Diode?
@StuartPittaway
@StuartPittaway Жыл бұрын
The internal reference just isn't very good!
@Chupacabras222
@Chupacabras222 Жыл бұрын
4mV resolution with 10bit ADC, and 3mV resolution with 12bit ADC? It seems there's something wrong with the design.
@StuartPittaway
@StuartPittaway Жыл бұрын
Its just down to the scaling of the input voltage.
@Chupacabras222
@Chupacabras222 Жыл бұрын
@@StuartPittaway You could go down to 1-2mV resolution if you have used measuring from v4.4, right? Is there any reason or advantage of measurement in v4.5 compared to v4.4?
@StuartPittaway
@StuartPittaway Жыл бұрын
@@Chupacabras222 the 4.5 is better measurement, particularly because of the hardware over samples, so actually the resolution is more like 16 bit.
@Chupacabras222
@Chupacabras222 Жыл бұрын
@@StuartPittaway This is misunderstanding. I'm not asking if v4.4 or v4.5 is better. The newer MCU is definitely better, no question about that. I mean why did you change the schematic for measurement part? If you did not change this, you could have better resolution, don't you?
@StuartPittaway
@StuartPittaway Жыл бұрын
@@Chupacabras222 I see what you mean now. The resistance of the divider circuit also changes with temperature, so getting those out means only 1 component (voltage reference) is the variable
@dash8brj
@dash8brj Жыл бұрын
Glad to the the improvements as you progress with DIYBMS. Also glad to see those awful JST's gone for the most part :)
@StuartPittaway
@StuartPittaway Жыл бұрын
Yeah, JST 2.0 are a pain!
@jbuszkie
@jbuszkie Жыл бұрын
Nice! I don't know if you said it in the video or not, but will you be able to mix and match the 4.4 and 4.5 versions? Thanks for the great work!
@StuartPittaway
@StuartPittaway Жыл бұрын
Yes you can!
@SiBex_ovh
@SiBex_ovh Жыл бұрын
I hope you do migration to new SoC as Module for 4 or 8 cells and then that modules get into loop. Less work when I want do 128LFP cells in one string .
@StuartPittaway
@StuartPittaway Жыл бұрын
Yes, I'm still going to look at that
@jbrown468
@jbrown468 Жыл бұрын
Thanks, Stuart. Have a wonderful holiday season and keep up the great work!
@StuartPittaway
@StuartPittaway Жыл бұрын
Thanks, you too!
@lezbriddon
@lezbriddon Жыл бұрын
I use a resistive divider in my heater controller project, but i don't have it sit being a parasitic battery draw, i switch it to ground with a mosfet then take a reading. theres always a chance that a charger can fail, and then with a resistive divider there's only one outcome over time. but of course what you have done here is one stage better still.
@StuartPittaway
@StuartPittaway Жыл бұрын
The existing modules (v4.40 and earlier) also switch the divider in and out using one of the pins on the ATTINY chip.
@MiniLuv-1984
@MiniLuv-1984 Жыл бұрын
All the best for the new year Stuart. Thanks for all your efforts in re-designing, prototyping and testing the new release of the DIYBMS.
@StuartPittaway
@StuartPittaway Жыл бұрын
Many thanks!
@mcflapper7591
@mcflapper7591 Жыл бұрын
Thank you. Still using the previous edition. :)
@StuartPittaway
@StuartPittaway Жыл бұрын
You're welcome!
@jean-clauded5823
@jean-clauded5823 Жыл бұрын
Just discovered this, and I must say I am impressed.
@StuartPittaway
@StuartPittaway Жыл бұрын
Thank you
@Danny-pp8xz
@Danny-pp8xz Жыл бұрын
as always great work stuart and thx for doing this.
@StuartPittaway
@StuartPittaway Жыл бұрын
My pleasure
@turkcanatilir3943
@turkcanatilir3943 Жыл бұрын
Fantastic. Thanks for the great effort.
@StuartPittaway
@StuartPittaway Жыл бұрын
Glad you liked it!
@mudiagaakpokwaye2795
@mudiagaakpokwaye2795 Жыл бұрын
Great job Stuart. Will love to contribute.
@StuartPittaway
@StuartPittaway Жыл бұрын
Thank you.
@wayne8113
@wayne8113 Жыл бұрын
Thanks Stuart 🎄
@StuartPittaway
@StuartPittaway Жыл бұрын
Thanks for watching
@adewaledipo
@adewaledipo Жыл бұрын
Thanks Stuart,
@StuartPittaway
@StuartPittaway Жыл бұрын
Thanks for watching
@carlospereira9838
@carlospereira9838 Жыл бұрын
Hey Stuart amazing work on the new 4.5 module. You are currently working on the new CAN programming for next year. However there is one feature still lacking from the DIYBMS project. That is AC charging via CAN with current control. There is a bms project that went open source called ZEVA BMS and it has the ability to use any TC Charger that is the 1.8kw,the 3.3kw,and the 7.2kw. The bms code can set the current rate on the fly. The TC Chargers are very well made and best bang for the buck of all the CAN chargers out there. Do you think you can integrate the ZEVA BMS CAN code with the DIY BMS project ?
@StuartPittaway
@StuartPittaway Жыл бұрын
Should be possible to do the integration. The new code controls the voltage for the most part (as recommended by Victron) which then automatically controls the current as well.
@carlospereira9838
@carlospereira9838 Жыл бұрын
@@StuartPittaway Exactly my thought. However with the TC Chargers the code is already out there and the protocol is open as well. It would be nice to have an alternative charger for those who don’t have or can afford Victron gear. I have searched around and the TC Chargers are the most affordable and most powerful chargers out there. They were originally made for the EV market however I am seeing them be used everywhere.
@StuartPittaway
@StuartPittaway Жыл бұрын
@@carlospereira9838 the new code emulates Pylontech battery units which are also supported by lots of non-victron kit.
@carlospereira9838
@carlospereira9838 Жыл бұрын
@@StuartPittaway Does this mean that it will support TC chargers as well ? It would be nice to have a separate AC charger along with Victron charger support. Victron does sell a CAN charger however it only supports 12 and 24 volts. Victron does not have a separate charger for 48 volts systems that is CAN controlled. TC Chargers are a more affordable option and they deliver a higher charge rate compared to the competition. I have searched around.
@StuartPittaway
@StuartPittaway Жыл бұрын
Do you have a link to the charger you have in mind?
@davidliddell-tr4gp
@davidliddell-tr4gp Жыл бұрын
Great stuff!
@StuartPittaway
@StuartPittaway Жыл бұрын
Glad you enjoyed it
@curtis2788
@curtis2788 Жыл бұрын
Will there be a video how to program the new updi things ?
@StuartPittaway
@StuartPittaway Жыл бұрын
Probably - although if you watch the current monitor/shunt video that covers how to program UPDI devices.
@curtis2788
@curtis2788 Жыл бұрын
@@StuartPittaway so thank you, i will check it out. I can order the esp32 board and the battery controller with the updi right now ?
@StuartPittaway
@StuartPittaway Жыл бұрын
@@curtis2788 yes, they are in GitHub
@curtis2788
@curtis2788 Жыл бұрын
@@StuartPittaway hex file for v4.50 batterycontroller is missing... would you be so kind and add it. Thx
@StuartPittaway
@StuartPittaway Жыл бұрын
@@curtis2788 v4.4 of the controller is the latested released version in the master branch. The code the v4.5 modules is in the release zip file.
Victron SmartShunt vs DIYBMS - Head to Head
8:54
Stuart Pittaway
Рет қаралды 4,3 М.
diyBMS Upgrade
20:32
Adam Welch
Рет қаралды 13 М.
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,1 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,6 МЛН
DIYBMS All-In-One monitor - Design files released
10:56
Stuart Pittaway
Рет қаралды 7 М.
The Ultimate DIY 737 FMC CDU build
49:27
Karl Clarke
Рет қаралды 30 М.
How To Identify An Unmarked or Blown IC Chip
32:31
Learn Electronics Repair
Рет қаралды 64 М.
EEPROM Traps! (Combinational logic / TTL Computer microcoding)
8:26
HalfBurntToast
Рет қаралды 3,5 М.
Build your own solar battery, fast and cheap!
18:02
DavidPoz
Рет қаралды 192 М.
Why build an entire computer on breadboards?
28:43
Ben Eater
Рет қаралды 3,1 МЛН
DIYBMS September 2021 update - SOC% and lots more
13:36
Stuart Pittaway
Рет қаралды 9 М.
My Power Bank Rivals Commercial Ones?! Super Fast! (DIY or Buy)
11:47
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,1 МЛН