martinbogo / pt-battery-diagnostics

Arduino sketch, library, BOM, and Gerber files for i2/x2 Segway battery diagnostics
MIT License
22 stars 12 forks source link

Reading the battery board without cells #16

Open Foxtrot81355 opened 3 days ago

Foxtrot81355 commented 3 days ago

Hello. I have a couple of questions. But first, I would like to express my gratitude.Your project is very interesting! This is a colossal job! You did a great job! When trying to read the battery, which is currently low, there is no response from the board. Is this how it should be if there are no connected cells? No information can be obtained from the battery. At the same time, the battery "Woke up" and the light bulb on the board glows. What is the function of the display? Is he the only one connecting? photo_2024-06-25_09-58-05 photo_2024-06-25_09-58-03

martinbogo commented 3 days ago

I didn't quite finish the display code. At the time, it was just to attempt to make it a little easier to see the results without a laptop nearby.

For my own use, I only ever really configured SERIAL_SHELL in config.h

On Tue, Jun 25, 2024 at 1:41 AM Foxtrot81355 @.***> wrote:

Hello. I have a couple of questions. But first, I would like to express my gratitude.Your project is very interesting! This is a colossal job! You did a great job! When trying to read the battery, which is currently low, there is no response from the board. Is this how it should be if there are no connected cells? No information can be obtained from the battery. At the same time, the battery "Woke up" and the light bulb on the board glows. What is the function of the display? Is he the only one connecting? photo_2024-06-25_09-58-05.jpg (view on web) https://github.com/martinbogo/pt-battery-diagnostics/assets/173755719/59ee7982-c71f-4752-a560-6cee29cd3d2f photo_2024-06-25_09-58-03.jpg (view on web) https://github.com/martinbogo/pt-battery-diagnostics/assets/173755719/01900b3f-ac76-4abf-8e5c-b74f9e5df6d8

— Reply to this email directly, view it on GitHub https://github.com/martinbogo/pt-battery-diagnostics/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5KKPULCCY7UG66DOSPKLZJEGJNAVCNFSM6AAAAABJ3FG5OOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TCOBRGA4TCMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Foxtrot81355 commented 3 days ago

segwaybatdiag I uploaded your code to the arduino uno connected according to this scheme, the arduino did not connect to 4 BMS segway boards, what could I have done wrong?

martinbogo commented 2 days ago

Looks correct to me. I don't tend to use Vin to feed 12V to the Segway battery to wake it up though... The arduino can source very little current on that pin ( 30mA, MAX ) so you may want to try using an independent 12V battery pack the way I do ( or a 12V lead-acid gel cell, like is used in UPS or alarm systems? )

On Tue, Jun 25, 2024 at 11:53 PM Foxtrot81355 @.***> wrote:

segwaybatdiag.jpg (view on web) https://github.com/martinbogo/pt-battery-diagnostics/assets/173755719/19e310ad-ef13-48eb-ba06-018f5daa1c23 I uploaded your code to the arduino uno connected according to this scheme, the batteries did not connect to 4 boards, what could I have done wrong?

— Reply to this email directly, view it on GitHub https://github.com/martinbogo/pt-battery-diagnostics/issues/16#issuecomment-2190704059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5KKJLKNRZIZHJRACDELTZJJCLRAVCNFSM6AAAAABJ3FG5OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQG4YDIMBVHE . You are receiving this because you commented.Message ID: @.***>

Foxtrot81355 commented 2 days ago

На мой взгляд, выглядит правильно. Однако я не склонен использовать Vin для подачи напряжения 12 В на аккумулятор Segway, чтобы включить его... arduino может подавать очень небольшой ток на этот вывод (не более 30 мА), поэтому вы можете попробовать использовать независимый аккумулятор на 12 В, как это делаю я (или свинцово-кислотный гелевый элемент на 12 В, который используется в ИБП или системах сигнализации?) On Tue, Jun 25, 2024 at 11:53 PM Foxtrot81355 @.> wrote: segwaybatdiag.jpg (view on web) https://github.com/martinbogo/pt-battery-diagnostics/assets/173755719/19e310ad-ef13-48eb-ba06-018f5daa1c23 I uploaded your code to the arduino uno connected according to this scheme, the batteries did not connect to 4 boards, what could I have done wrong? — Reply to this email directly, view it on GitHub <#16 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5KKJLKNRZIZHJRACDELTZJJCLRAVCNFSM6AAAAABJ3FG5OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQG4YDIMBVHE . You are receiving this because you commented.Message ID: @.>

OK, thanks for the advice, it was originally connected separately. Why can't I connect the battery? When turned on, the battery board lights up red and green, but there is no response from the BMS board.. in the port stream, with any request from Arduino except help, it issues I2C Err 2 adr :С I bought a lot of 18650, and old batteries from Segway for repair, but nothing works..

martinbogo commented 1 day ago

Error 2 generally means the chips is either not connected (or not correctly) or the wrong address was sent. I. no longer have any Segway batteries here, so I honestly can't help much more than this, especially not knowing the precise condition of your batteries or your setup.

I always started with a known-good battery to test my setup before moving on to diagnose others. Also, the last generation battery I had access to was an "AH" and I know things may have changed over time.

On Wed, Jun 26, 2024 at 10:40 PM Foxtrot81355 @.***> wrote:

На мой взгляд, выглядит правильно. Однако я не склонен использовать Vin для подачи напряжения 12 В на аккумулятор Segway, чтобы включить его... arduino может подавать очень небольшой ток на этот вывод (не более 30 мА), поэтому вы можете попробовать использовать независимый аккумулятор на 12 В, как это делаю я (или свинцово-кислотный гелевый элемент на 12 В, который используется в ИБП или системах сигнализации?) … <#m-6635298769758538897> On Tue, Jun 25, 2024 at 11:53 PM Foxtrot81355 @.> wrote: segwaybatdiag.jpg (view on web) https://github.com/martinbogo/pt-battery-diagnostics/assets/173755719/19e310ad-ef13-48eb-ba06-018f5daa1c23 https://github.com/martinbogo/pt-battery-diagnostics/assets/173755719/19e310ad-ef13-48eb-ba06-018f5daa1c23 I uploaded your code to the arduino uno connected according to this scheme, the batteries did not connect to 4 boards, what could I have done wrong? — Reply to this email directly, view it on GitHub <#16 (comment) https://github.com/martinbogo/pt-battery-diagnostics/issues/16#issuecomment-2190704059>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5KKJLKNRZIZHJRACDELTZJJCLRAVCNFSM6AAAAABJ3FG5OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQG4YDIMBVHE https://github.com/notifications/unsubscribe-auth/AAB5KKJLKNRZIZHJRACDELTZJJCLRAVCNFSM6AAAAABJ3FG5OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQG4YDIMBVHE . You are receiving this because you commented.Message ID: @.>

OK, thanks for the advice, it was originally connected separately. Why can't I connect the battery? When turned on, the battery board lights up red and green, but there is no response from the BMS board.. in the port stream, with any request from Arduino except help, it issues I2C Err 2 adr :С I bought a lot of 18650, and old batteries from Segway for repair, but nothing works..

— Reply to this email directly, view it on GitHub https://github.com/martinbogo/pt-battery-diagnostics/issues/16#issuecomment-2193366803, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5KKNAJFDUPG3JZBO3A3DZJOCURAVCNFSM6AAAAABJ3FG5OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJTGM3DMOBQGM . You are receiving this because you commented.Message ID: @.***>

secman248 commented 21 hours ago

what value do you have for Wire.setClock in your SegwayBatteryDiag.ino ? ist it Wire.setClock(400000); or Wire.setClock(100000); ? if it is 400000 try 100000