DIYBMS v4

There is an error in this file, suggest you download again, and start over.

Hi Stuart. Have downloaded acouple of time, also copy and paste it and keeps giving the error.

Any thoughts about the avrdudess error when reading?

this is the same error i have.
apparently new updates that make the old way no longer work.

Good you have a new one!: GitHub - stuartpittaway/diyBMSv4Code: Software for diyBMS v4

Hi!
Iā€™d used similar setting:

Baud rate: 19200
Bit clock: 32Hz
Selected:
Set fuses
Set lock
Erase flash and EEPROM.

Flashes successful but when reading gives me this error:

Reading | ################################################## | 100% 11.05s

avrdude.exe: verifying ā€¦
avrdude.exe: verification error, first mismatch at byte 0x0000
0xff != 0x4b
avrdude.exe: verification error; content mismatch

Have you seen this error? Thanks in advance for suggestions.

@stuart
i have built the new controller programmed it and the 4.21 modules via the controller
all programming worked fine then i have connected them rx->tx and so on back to the controller

set 4s in the menu
but they wont show up in the main page
there is a warning: controller have difficulty communicating with modules
they do blink normal

what i have to do?

Get 1 module working first. The modules will blink (blue led) every 8 seconds if they are not receiving data from the controller.

Try each module in turn, there must be an issue with a solder joint or an issue with the JST cables

Congratulations on 50 patrons ! Stuart :tada::birthday::balloon::balloon:

1 Like

Thanks

nope one module does not work, cables are fine have tested them

but it blinks green like the 4s before

i am using firmware Release-2021-03-17-08-13

if i flash the test controller file the controller does nothing no leds flashing no relays klicking

How did you test the cables?

Disconnect all modules from the controller, use 1 cable between tx and Rx. You should see IGNORED error count going up.

have done this
rgb led is flashing yelow and blue now

cant see this ignored error count
on Firmware_2021-03-15-12-28 now

2nd controller same issue

tested the cables with my multimeter

i power the board with usb via esp32 is this the problem?

The power is fine via the esp32.

Looks like a fault on the controller board.

Is it a devkitc esp32?

Check the JST cables are wired pin 1 to pin 1, and 2 to 2, if you have brought them, they are often reversed.

Try your controller boards with the board test code. This will look for faults and flash the led to indicate the fault.

1 Like

its a esp32 devkitc v4 dont know what v4 means

test code - diybms_boardtest_espressif32_esp32-devkitc.bin - does not work
controller led does not flash blue with tx and rx connected

mh maybe its the esp but wifi and programming the modules work fine

cables are good

Check the v4 pinout is the same as the devkitc pins, it could be different and not compatible.

Is the optoisolator connected the right way around?

Does the test code flash red when it fails?

Did you have an as card inserted ?

the dot is at the mark 1 same with the modules

nothing is flashing just the red led on the esp32 is lit up all the time at test code

sd card inserted

flash it with the test code and check the serial monitor as it starts up. Try this with the esp32 NOT on the PCB and confirm that it is printing something over the serial monitor. Then move it to the PCB and repeat the same (verify via serial monitor).

Check for any possible lose/missing solder joints on the pin sockets for the ESP32.

solderjoints are good

putty show this at testcode not on pcb
test

conected to the controller pcb nothing happens

Either you have a power supply issue (under 500mA power supplied to the esp32) or there is an issue accessing the flash on the board. You might also have a bad esp32 module.

1 Like

have tested my pc usb port it give 1A at 4.7V
i hope this ist a faulty esp32