DIYBMS v4

To reset the wifi, clear the WIFIRST pin (unconnected) boot up the ESP and when the LED lights up (about 3 seconds in total) connect the WIFI RST pins - you only have until the LED goes out to do this.

From the logs above it looks like the rest of it is working okay (its scanning wifi and finding devices).

Did you program the ESP with the “Upload File System Image” option?

Yes, I did the file system upload.

The green LED stays on forever if I follow that process (boot, short the pins within 3 secs, wait a few secs, unshort the pins).

Is there a way to tell how much flash the wemos has? Could that be the problem? It appears to be hanging/crashing.

Yes, when programming it it should report in platformio. 4MB is the minimum. Does your wemos have an external aerial socket?

Auto-detected Flash size: 4MB

If you want to you could hard code the SSID and password in main.cpp in the code…

WiFi.begin(DIYBMSSoftAP::WifiSSID(), DIYBMSSoftAP::WifiPassword());

Change to

WiFi.begin(“MyAccesspointName”, “wifipassword”);

Internet up this morning, works fine now.

That did it.

1 Like

It reports 4MB flash.
It has the external antenna socket, though I’m not using the external antenna and I didn’t move the resistor.

I changed the WiFi.begin and also uncommented the debug code that sets the WiFi details in flash.

Now it tries to connect to my WiFi, but it doesn’t see my network (which is 2.4GHz). So, something odd is going on. When it did the scan originally (before I changed the code), it only saw my printer’s standalone SSID, not any of my home network’s SSIDs (I have several - in 2.4GHz and 5GHz).

no fairview2 found, reconnect after 1s
Disconnected from Wi-Fi.
reconnect
S:80/1/2E=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 =EAE3/Q:1
Connecting to Wi-Fi…
scandone
S:80/3/2F=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 =B8AC/Q:0
scandone
no fairview2 found, reconnect after 1s

I’ve not seen any reports of similar behaviour. Is the esp near the WiFi router?

Has the router any firewall or WiFi protection enabled and blocking access?

Ok, definitely need to look at the offline mode. Think this is largely to do with the NTP look up.

Hi, today I was just checking my configuration with ESP controller connect to debug port, problems with NTP server and Influxdb and after a while … crash and reboot from ESP controller. May be I confirm that without internet, controller reboots periodically. Hope this helps

No. It’s close by. No funny security turned on.

I’ve ordered a different 8266 board, so I’ll give that a try when it arrives.

My program for dual axis tracker suffers same problem as I use time to track every 30 min. RTC doesn’t keep correct time, but think I’m going to use it instead.

hi,

how are the BMS holding after 6 months ?

Mine are in progress.
If you look at YouTube you will see DIYBMS is in use for several years, going from V3 to V4 and stable once all is soldered, programmed and connected correctly.

I’m going to use for my 50 kWh LiFePO4 battery, not for its low costs, but options, stability and WiFi.

1 Like

I seem to be having issues uploading the attiny firmware. I’m using the icsp port on an attmega 2560. Its set up as arduinoISP. I set

default_serial = “/dev/ttyUSB0”;

in avrdude.conf as the default usb port.

I also tried hard-coding it in the platformio.ini, but either way I keep getting this error

avrdude: ser_open(): can’t open device “usb”: No such file or directory

Is there some other options I have to change ?

That may be the answer, there are a lot of clone/copy boards being made. Whilst you are waiting for it to arrive, it may be worth moving the aerial resistor and try using the external aerial connection.

Are you running on Linux or a Mac? If not Windows serial ports look like “COM3” not /dev/tty…

Yes, I use Fedora, no I don’t own a windows system.

Permissions are set properly, arduinoIDE can read / write just fine and I’m using platformio as the same user. It really seems to be some issue with the avrdude.conf or .avrduderc.

I can’t really help much on this one, a quick google points to these possible fixes…

thanks for the reply…

I was asking about the DiyBMSleaf …for nissan leaf modules… want to start a project for the house, but most BMS for the nissan 24v pack are to expensive… I’ll keep reading… see what comes up…

The files for the LEAF PCB are here… I didn’t design these, just hosting them.