Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communication wiring with (1 or more) 16S boards and controller #162

Open
stuartpittaway opened this issue Aug 2, 2023 · 24 comments
Open
Assignees

Comments

@stuartpittaway
Copy link
Owner

stuartpittaway commented Aug 2, 2023

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

image

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)

image

Photo below shows two 16S boards connected to a controller

image

@chapulino
Copy link

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

@stuartpittaway
Copy link
Owner Author

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.

@chapulino
Copy link

chapulino commented Aug 8, 2023 via email

@stuartpittaway
Copy link
Owner Author

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

@chapulino
Copy link

chapulino commented Aug 8, 2023 via email

@chapulino
Copy link

chapulino commented Aug 9, 2023 via email

@stuartpittaway
Copy link
Owner Author

Did you use the code specifically for the 4.5V reference?

@chapulino
Copy link

chapulino commented Aug 10, 2023 via email

@stuartpittaway
Copy link
Owner Author

None of the images are coming through from your emails, can you edit the GitHub issue directly please.

@chapulino
Copy link

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


image

@chapulino
Copy link

chapulino commented Aug 10, 2023

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
This is the real value of the cells in an all in one VREF 4v

image
I don't know if I can help you with any test or measurement?

@stuartpittaway
Copy link
Owner Author

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.

@chapulino
Copy link

chapulino commented Aug 10, 2023 via email

@stuartpittaway
Copy link
Owner Author

Great, so it should just be a code/math change

@chapulino
Copy link

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
image

@stuartpittaway
Copy link
Owner Author

Ouch!

@stuartpittaway
Copy link
Owner Author

stuartpittaway commented Aug 11, 2023

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

@chapulino
Copy link

chapulino commented Aug 11, 2023

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
image
image)

I have tried both firm 5K and 10k and the result is still not good I put an image
image

SOLVED( As for the one that does not have the 4.5V reference voltage, what should I check or replace?)

@chapulino
Copy link

chapulino commented Aug 11, 2023

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
image

@stuartpittaway
Copy link
Owner Author

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

@chapulino
Copy link

i have actually resoldered everything including the max, i think this time JCBPCB did not do a good job of soldering

@chapulino
Copy link

chapulino commented Aug 11, 2023

the second are ok also Thanks very much Stuart
The same expectacular stability and precisión.

image

@stuartpittaway
Copy link
Owner Author

Time to get balancing the cells now then :-)

@chapulino
Copy link

chapulino commented Aug 17, 2023

image
I add a more graphic scheme and close for my part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants