Thread Rating:
  • 4 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AJW22's modular 3d printed 60kWh PowerShelf
#81
In response to a request: here are my postgresql db structure and my latest grafana dashboard export.  Note that I'm still experimenting with stuff, so it's ugly and some weirdness may be going on.
note:
* All data stuffed in just one table for now
* values are stored as integers of mV/mA, in hopes of improving performance... not sure it did
* battery_id(0) entries contains the sum/average of all batteries



Attached Files
.zip   postgresdb_grafanadash.zip (Size: 7.6 KB / Downloads: 28)
Modular PowerShelf using 3D printed packs.  60kWh and growing.
https://secondlifestorage.com/showthread.php?tid=6458
Reply
#82
(08-05-2020, 04:49 AM)ajw22 Wrote: In response to a request: here are my postgresql db structure and my latest grafana dashboard export.  Note that I'm still experimenting with stuff, so it's ugly and some weirdness may be going on.
note:
* All data stuffed in just one table for now
* values are stored as integers of mV/mA, in hopes of improving performance... not sure it did
* battery_id(0) entries contains the sum/average of all batteries


Thank you so much!!
ajw22 likes this post
Reply
#83
Awesome progress BobinTN and AJW22 and thanks for the initial source code as shared with AJW22

(03-22-2020, 02:18 PM)BobinTN Wrote: BMS Python Code implementation update:

AJW22!  It is going well.  I am not complete in implementation, but it is taking awhile so I figured I owed you an update.

I am now testing your code on my 3 china BMS's.  I collected from one for awhile playing with the Influxdb/Grafana component.

There seems to be some instability in the Bluetooth (I don't quite know where it is coming from {rpi, linux, bluetooth comms, influxdb...}).

How do you run your python code?  from IDE, from command line, daemon...

Do you have a restart script to monitor the main code?

I am not asking for code, just wondering.  I have been looking for a script restart after failure solution.

Can you share the updated source code? I am in the stage of adding the BMS and start playing monitoring and graphing.

Thanks
Reply
#84
Here's my latest code for fetching data from my 6 BMSs and storing them on a postgresql db.  Really really in need of a ground up rewrite...
Also a script to control the TPLink HS105 smartplug.

BMS notes/changes :
* My USB bluetooth dongle by CSR (aka Cambridge Silicon Radio) could not connect to 6 BMSs at the same time, so I have 2 USB BT dongles (hci0 + hci1) sharing the load.  Onboard BT is disabled.
* 5 minute collection interval is ok for logging, but a little slow for switching loads.  So near real time data is stored in "/dev/shm/bms.txt"

Smartplug notes/changes :
* tries a couple of times in case of connection error.
* Reading the current status is possible, but I've not coded it yet.


Attached Files
.zip   bms4_smartplug.zip (Size: 4.23 KB / Downloads: 31)
Modular PowerShelf using 3D printed packs.  60kWh and growing.
https://secondlifestorage.com/showthread.php?tid=6458
Reply
#85
(08-06-2020, 10:15 AM)ajw22 Wrote: Here's my latest code for fetching data from my 6 BMSs and storing them on a postgresql db.  Really really in need of a ground up rewrite...
Also a script to control the TPLink HS105 smartplug.

BMS notes/changes :
* My USB bluetooth dongle by CSR (aka Cambridge Silicon Radio) could not connect to 6 BMSs at the same time, so I have 2 USB BT dongles (hci0 + hci1) sharing the load.  Onboard BT is disabled.
* 5 minute collection interval is ok for logging, but a little slow for switching loads.  So near real time data is stored in "/dev/shm/bms.txt"

Smartplug notes/changes :
* tries a couple of times in case of connection error.
* Reading the current status is possible, but I've not coded it yet.

Thanks, will test it and revert
Reply
#86
Besides increased BMS cost, what are the downfalls of doing 3x 14s100p instead of 14s300p?

I like the idea of being able to add capacity 1400 cells at a time vs 4200....
Reply
#87
(08-31-2020, 07:05 PM)mtucker502 Wrote: Besides increased BMS cost, what are the downfalls of doing 3x 14s100p instead of 14s300p?

I like the idea of being able to add capacity 1400 cells at a time vs 4200....

More work wiring everything up. Particularly creating my main battery harness with all the sensing/balancing wires is a pain in the a$$. But that's a one time work that saves time and effort later during maintenance.
I might go for 120p or 140p for my last batteries, to fully utilize my rack space and have a bit more capacity.

Otherwise very happy with the smaller packs - it's really helpful to be able to pinpoint problems down to 100 cells, just by looking at my graphs!
mtucker502 likes this post
Modular PowerShelf using 3D printed packs.  60kWh and growing.
https://secondlifestorage.com/showthread.php?tid=6458
Reply
#88
(08-31-2020, 10:33 PM)ajw22 Wrote:
(08-31-2020, 07:05 PM)mtucker502 Wrote: Besides increased BMS cost, what are the downfalls of doing 3x 14s100p instead of 14s300p?

I like the idea of being able to add capacity 1400 cells at a time vs 4200....

More work wiring everything up. Particularly creating my main battery harness with all the sensing/balancing wires is a pain in the a$$. But that's a one time work that saves time and effort later during maintenance.
I might go for 120p or 140p for my last batteries, to fully utilize my rack space and have a bit more capacity.

Otherwise very happy with the smaller packs - it's really helpful to be able to pinpoint problems down to 100 cells, just by looking at my graphs!


Wouldn't there be issues having 14s packs with varying capacities? or will the new shelf not be connected in parallel to the 14s packs on the first shelf?
Reply
#89
(08-31-2020, 11:11 PM)mtucker502 Wrote:
(08-31-2020, 10:33 PM)ajw22 Wrote: I might go for 120p or 140p for my last batteries, to fully utilize my rack space and have a bit more capacity.

Wouldn't there be issues having 14s packs with varying capacities? or will the new shelf not be connected in parallel to the 14s packs on the first shelf?

No, it's not a problem.  In fact, my first battery is 14s96p with just 120Ah (shitty cells) or so and the others 14s108p, one with nearly 190Ah!
Not even a problem with a much larger difference, say a 14s300p.  It would simply supply/draw 3x more current, but the voltages will all equalize. Just need to make sure the BMS, breakers, and wires can handle that extra current.
mtucker502 likes this post
Modular PowerShelf using 3D printed packs.  60kWh and growing.
https://secondlifestorage.com/showthread.php?tid=6458
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)