Communication wiring with (1 or more) 16S boards and controller
This issue is purely documentation for connection of 16S monitoring boards and the DIYBMS v4.X controller.
Cabling is similar to the single cell monitoring modules.
DO NOT CONNECT TX TO TX OR RX TO RX - THE CORRECT WAY IS FROM TX TO RX - YOU CAN DAMAGE THE CONTROLLER IF MISTAKES ARE MADE
FOLLOWING DESCRIPTIONS ASSUME TOP DOWN VIEW ON THE CONNECTORS
ON EACH 16S MONITORING BOARD, THERE IS A 4 PIN CONNECTOR WITH PINS MARKED ON SILKSCREEN AS:
- 3.3V
- RX
- TX1
- TX2
ON THE CONTROLLER
- Two pin JST connector marked RX
- Two pin JST connector marked TX
FOR CONNECTING A SINGLE 16S MONITORING BOARD
CONTROL->TX->LEFT PIN = 16SBOARD->RX CONTROL->TX->RIGHT PIN = 16SBOARD->3.3V 16SBOARD->TX1 = CONTROL->RX->RIGHT PIN 16SBOARD->TX2 = CONTROL->RX->LEFT PIN
FOR CONNECTING MULTIPLE 16S MONITORING BOARDS
CONTROL->TX->LEFT PIN = FIRST 16SBOARD->RX (BLACK IN PHOTO) CONTROL->TX->RIGHT PIN = FIRST 16SBOARD->3.3V (RED IN PHOTO)
FIRST 16SBOARD->TX1 = SECOND 16SBOARD->3.3V (ORANGE IN PHOTO) FIRST 16SBOARD->TX2 = SECOND 16SBOARD->RX (ORANGE/WHITE IN PHOTO)
SECOND 16SBOARD->TX1 = CONTROL->RX->RIGHT PIN (RED IN PHOTO) SECOND 16SBOARD->TX2 = CONTROL->RX->LEFT PIN (BLACK IN PHOTO)
Photo below shows two 16S boards connected to a controller
I have tried the all in one and it works fine until it reaches 15 cells. When I connect number 16, the controller stays waiting for modules. I started the tests with 16 cells and it didn't work, so I started by testing with 4 cells and increasing the number by two by two until I reached 14 cells. I have finally verified that up to 15 cells works fine, but when I go to 16 the problem appears. In the openenergy forum you have recommended me: If you are looking at the code uint8_t queryAFE() is the function which counts the number of cells in use and then returns that to the controller.
If you want to compile the code to force 16 cells to test - change return cellCount; to return 16; But unfortunately I don't know where to find that part of the code to be able to change it and compile it again in the ESP32
Hi @chapulino. Attached to this message is the firmware with a code for forcing 16S configuration. This also uses the 10K baud/communication speed. Unzip this and then write the code to the STM32 on the module as you have previously. module_fw_V490_10K_FORCED16S.zip
This will then allow us to determine if its a code or hardware problem.
thanks a lot I'll definitely try it this afternoon and I'll report back to you.
I'll definitely try it this afternoon and I'll report back to you.
@chapulino I've found a bug for the 16S configuration - so please use the version on GITHUB which I updated today. https://github.com/stuartpittaway/diyBMSv4ESP32/actions/runs/5796302484
work, thanks Stuart now i tried the derivation of resistors
El mar, 8 ago 2023 a las 14:37, Stuart Pittaway @.***>) escribió:
I'll definitely try it this afternoon and I'll report back to you.
@chapulino https://github.com/chapulino I've found a bug for the 16S configuration - so please use the version on GITHUB which I updated today. https://github.com/stuartpittaway/diyBMSv4ESP32/actions/runs/5796302484
— Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/diyBMSv4/issues/162#issuecomment-1669532237, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNP4G7XF6J5KB5IGMKLY6LXUIXJJANCNFSM6AAAAAA3BCSNPM . You are receiving this because you were mentioned.Message ID: @.***>
unfortunately the VREF450 version does not work as well as could be expected, I have tried with 16 cells and I have wrong values in all of them, well above the real value of the cells [image: image.png] This is the real value of the cells in an all in one VREF 4v
[image: image.png] I don't know if I can help you with any test or measurement?
Did you use the code specifically for the 4.5V reference?
this
I'll definitely try it this afternoon and I'll report back to you.
None of the images are coming through from your emails, can you edit the GitHub issue directly please.
this @chapulino I've found a bug for the 16S configuration - so please use the version on GITHUB which I updated today. https://github.com/stuartpittaway/diyBMSv4ESP32/actions/runs/5796302484
—
unfortunately the VREF450 version does not work as well as could be expected, I have tried with 16 cells and I have wrong values in all of them, well above the real value of the cells
This is the real value of the cells in an all in one VREF 4v
I don't know if I can help you with any test or measurement?
Thank you for this information, can you confirm you have 4.50V on the test pin for the voltage reference.
This should just be a code bug.
yes i have 4.5V in the test pin
El jue, 10 ago 2023 a las 11:50, Stuart Pittaway @.***>) escribió:
Thank you for this information, can you confirm you have 4.50V on the test pin for the voltage reference.
This should just be a code bug.
— Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/diyBMSv4/issues/162#issuecomment-1672911628, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNP4G7Q2RGQOU67QJHOH7LXUSVIDANCNFSM6AAAAAA3BCSNPM . You are receiving this because you were mentioned.Message ID: @.***>
Great, so it should just be a code/math change
I am going to send the All in one of lifepo4 (5) to the members of the group, since I have already verified them, I cannot send something that I am not sure works well. In the end they are very cheap, about €40 each set and I have a good time with this hobby and soldering components. this will broaden the tester base. I keep 3 for myself. I connected one of the bypass boards backwards and I have repaired a few resistors and maybe also the mosfets.
Another thing that happened to me is that in one of them, perhaps because of a jumper on one of the MAX pins, it did not give me a reading in a cell, I saw that the 100ohm resistor had burned. I am sending you a photo so you can laugh
Ouch!
Hello @chapulino I've just tested the circuit with the 4.5V reference and it worked first time - perfectly.
If you are seeing all the cell voltages near 4.5V (the maximum range) like the screenshot you sent over, it means the ADC chip (U3) is not getting the 4.5V reference correctly.
Can you check the soldering around this chip? Especially pin 1 (check the voltage on that pin - it should be 4.5V)
Might be worth using the latest code from here as well... https://github.com/stuartpittaway/diyBMSv4ESP32/actions/runs/5806654286
Coincidentally, in these two All in Ones that are going to go to 4.5v, I had not checked the voltage at TP5. One is correct, it shows 4.5 at TP% and at pin 1 of U3. This solved: (The other has a voltage of 1.56 V. I leave you an image of the Digy-Key envelope and a photo of the assembly of the MCP1502T-45E
)
I have tried both firm 5K and 10k and the result is still not good I put an image
SOLVED( As for the one that does not have the 4.5V reference voltage, what should I check or replace?)
Great Stuart 1 of All in One for 4,5v are ok
The most impressive thing is the stability of the measurement and its precision. Thank you
Now I just have to review and see what happens with the last of the 10 All in one and the next test is to replace resistors in the bypass plate. I'll tell you, I hope the mosfets support it
As for the one that does not have the 4.5V reference voltage, what should I check or replace?
If one board works, and the other doesn't it has to be a soldering or component issue.
I'd start by re-soldering all the pins around U3/U6
i have actually resoldered everything including the max, i think this time JCBPCB did not do a good job of soldering
the second are ok also Thanks very much Stuart The same expectacular stability and precisión.
Time to get balancing the cells now then :-)
I add a more graphic scheme and close for my part