stuartpittaway / diyBMSv4Code

Software for diyBMS v4
Other
140 stars 65 forks source link

Wemos di mini clone #74

Closed Michaelillingby closed 3 years ago

Michaelillingby commented 3 years ago

I have all 55 of my attiny boards and 5 controllers sitting on my desk. great, next step programming. I have 5 di mini clones the say WAVGAT on them, and I was hoping to use them since Adam Welches video says he could do it changing a few flags, My code is different than his and I am stuck as to how to make this work with my boards. can you offer some support/advice please? Thanks in advance IMG_0966 IMG_0967 IMG_0968

I really hope I can use this version, as it will take me weeks to get new ones in my area, thank you again

stuartpittaway commented 3 years ago

Have you tried programming the ESP8266 code to this board as per the YouTube videos?

It should just work - the Pro version isn't technically needed any more.

The PIN out on the boards photoed is the same as the "pro" version, so I suspect will work.

Michaelillingby commented 3 years ago

yeah, the videos are like 6 months old and the software doesn't quite look the same as what I downloaded a day ago. in the code, if i'm reading it correctly, the is chip support for the D1 pro mini, and the 32. what do I need to change? are you referring to a different video perhaps? can you provide a direct link please?

stuartpittaway commented 3 years ago

No changes needed, just plug it into a USB port and program. You may need to remove/change the COM port setting in platformio.ini file, but thats it.

Michaelillingby commented 3 years ago

okay will try again tonight

Michaelillingby commented 3 years ago

same problem here is the output

Executing task in folder ESPController: C:\Users\foxan.platformio\penv\Scripts\pio.exe run --target upload --environment esp8266_d1minipro <

Processing esp8266_d1minipro (platform: espressif8266@2.6.2; board: d1_mini_pro; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini_pro.html PLATFORM: Espressif 8266 (2.6.2) > WeMos D1 mini Pro HARDWARE: ESP8266 80MHz, 80KB RAM, 16MB Flash PACKAGES:

Environment Status Duration


esp8266_d1minipro FAILED 00:00:12.917 ========================================= 1 failed, 0 succeeded in 00:00:12.917 ========================================= The terminal process "C:\Users\foxan.platformio\penv\Scripts\pio.exe 'run', '--target', 'upload', '--environment', 'esp8266_d1minipro'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Michaelillingby commented 3 years ago

now to confirm that is is being detected, I uploaded BLINK using arduino IDE, that works no problem. I tried the wifi scan example and that works too.

I am at a loss, what can I do. I should mention that this is all newly installed software, so if you didnt tell me to install it, I didn't. if I wasn't prompted to install it, I haven't.

I was trying to do this on my Mac, but when I couldnt get it to go I dug out this old windows10 laptop and still same problems

I need this BMS asap, I have been without one for far too long, thanks

Michaelillingby commented 3 years ago

this id what PlatformIO detects as my hardware It is NOT a PRO from what I can tell, I believe it is just a D1 Mini - 4MB 80-160MHz

Port Description Hardware
COM3 USB-SERIAL CH340 (COM3) USB VID:PID=1A86:7523 SER= LOCATION=1-1.1
Michaelillingby commented 3 years ago

oh yeah, I also didn't have to change the com port as it was already set to COM3

atanisoft commented 3 years ago

@Michaelillingby do you have git for windows installed?

Michaelillingby commented 3 years ago

not sure what that is

atanisoft commented 3 years ago

@Michaelillingby then it is likely a safe bet that you don't have it installed. I'd suggest install git for windows: https://git-scm.com/download/win. You can likely use the default settings in the installer.

stuartpittaway commented 3 years ago

Hi @Michaelillingby the errors reported are platformio issues.

I think if you install GITHUB DESKTOP - https://desktop.github.com/

that will resolve the issue you have.

atanisoft commented 3 years ago

@stuartpittaway I'd suggest log an issue against PIO not installing it's required dependencies. Maybe they will fix it..

Michaelillingby commented 3 years ago

is there a way to upload with the arduino IDE?

Michaelillingby commented 3 years ago

Ok, I solved it! The problem was the upload speed was a billion times too high for some reason. I changed it to 115200 and it took about 45 seconds to upload and now it works. I did this during my free time at work and connected it to my work wifi and it presented itself nicely. now new challange, how do I change the wifi it connects to? Is there a hard reset I can do to get back the the "softap" I think it's called? the wifi setup page stand alone server?

stuartpittaway commented 3 years ago

Is there a hard reset I can do to get back the the "softap" I think it's called? the wifi setup page stand alone server?

Yes, RESET the ESP module and when the LED lights up connect the "WIFI RESET" pins together - you only have a few seconds.

This will wipe the WIFI settings and force you to select again.