HOWTO: Flashing ESP8266

Discussion about various user interfaces such as web interface, displays and apps
Post Reply
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

HOWTO: Flashing ESP8266

Post by dima »

When you get a brand new ESP8266 you will need to solder GPIO0 to 0 (placing it into UART mode)

ESP8266 has two flash types. Sketch (firmware) and SPIFFS (filesystem)

Sketch starts @ 0x000000
SPIFFS starts @ 0x100000

There are two methods:

Method 1: Hardwired to UART (TX/RX)

!!! Warning !!! 3.3v only, some USB-TTL have 5v.

Solder GPIO0 to 0

Tool: https://raw.githubusercontent.com/espre ... esptool.py

Code: Select all

python esptool.py --port COM1 --baud 115200 write_flash 0x000000 flash-sketch.bin

Code: Select all

python esptool.py --port COM1 --baud 115200 write_flash 0x100000 flash-spiffs.bin
To seal the flash, solder GPIO0 back to 1

esp8266-flash.png
esp8266-flash.png (7.48 KiB) Viewed 14977 times

Method 2: OTA (Over the Air)

Tool: https://raw.githubusercontent.com/esp82 ... /espota.py

Code: Select all

python espota.py -i 192.168.4.1 -p 8266 -f flash-sketch.bin

Code: Select all

python espota.py -i 192.168.4.1 -p 8266 -s -f flash-spiffs.bin
Note: This method only works for updates after initial flash and WiFi connection.
sonachan1
Posts: 64
Joined: Sat Dec 15, 2018 5:46 pm
Location: Cheshire, UK

Re: HOWTO: Flashing ESP8266

Post by sonachan1 »

Thanks dima,

I've just flashed by ESP8266 using method 1 and it worked perfectly.

I used a windows machine which needed Python and Pyserial installing to run esptool.py:
Andy
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 3 times

Re: HOWTO: Flashing ESP8266

Post by joromy »

Error?
Olimex site and schematic says pin 3 is RXD and pin 4 is TXD

https://www.olimex.com/Products/IoT/ESP ... e-hardware
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

Depends which perspective you are looking from. RX port but coming from inverter TX "into it". Only one wrong :) unlike 4-dimentional USB port.
usb-4-dimentions.jpg
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

Hi Johannes

I have tried to upload to Olimex ESP8266 your code from https://github.com/jsphuebner/esp8266-web-interface
1. I soldered GPIO0 to 0
2. I opened arduinoi and setup the code.
3. i flashed the code and it went through 100%
4. I resoldered GPIO0 to 1

Now i can see "inverter" in my wifi list, and i can also connect, but i cant access web interface at IP 192.168.4.1
I tried to upload Arduino file again with different settings, but no luck.
I have Pyton installed as well as powershell.

I am sending you pic of my settings from the last update. Can you tell me what is incorrect there? Or better yet Can you post screen of your settings?
Attachments
image.png
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by johu »

By "can't access" you mean it does not connect at all (timeout) or it displays an error message ("FileNotFound" I think)?

If so, it seems reprogramming erased the SPI FS. I usually upload the files with curl, I think there is a windows version:
curl -F 'data=@index.js' http://$IP/edit
curl -F 'data=@log.js' http://$IP/edit
curl -F 'data=@inverter.js' http://$IP/edit
curl -F 'data=@index.html' http://$IP/edit
curl -F 'data=@log.html' http://$IP/edit
curl -F 'data=@wifi.html' http://$IP/edit
curl -F 'data=@wifi-updated.html' http://$IP/edit
curl -F 'data=@ajax-loader.gif' http://$IP/edit
curl -F 'data=@refresh.png' http://$IP/edit
curl -F 'data=@style.css' http://$IP/edit
curl -F 'data=@gauges.html' http://$IP/edit
curl -F 'data=@gauges.js' http://$IP/edit
curl -F 'data=@gauge.min.js.gz' http://$IP/edit
curl -F 'data=@chart.min.js.gz' http://$IP/edit

Replace $IP with 192.168.4.1
You can also use Dimas method from the first post but I've never tried that
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

Dont forget i have to change baud rate in code before i load firmware.
So are my settngs in Arduino correct for ESP?

EDIT: Yes i get "FileNotFound". So i have to upload again? And wifi server name is ESP_F56562
What now? How do i use curl in Win7? It does not want to start. Should i put it in some special folder?
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

arber333 wrote: Mon Nov 04, 2019 7:46 pm EDIT: Yes i get "FileNotFound". So i have to upload again?
This applies to "other web interface" https://github.com/dimecho/Huebner-Inve ... SP8266.zip

Sounds like you uploaded the firmware but forgot the "SPIFFS" (file-system) Thats OK .... just go to http://192.168.4.1/update and upload it there :)

For Johannes ESP web-interface you may need this Arduino plugin https://github.com/esp8266/arduino-esp8266fs-plugin to push the SPIFFS.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

dima wrote: Tue Nov 05, 2019 4:08 am Sounds like you uploaded the firmware but forgot the "SPIFFS" (file-system) Thats OK .... just go to http://192.168.4.1/update and upload it there :)

For Johannes ESP web-interface you may need this Arduino plugin https://github.com/esp8266/arduino-esp8266fs-plugin to push the SPIFFS.
I have to be connected to wifi gizmo at the time? So i just run the url update.

I will also load the interface...

When i am done i will write instructions for ordinary non programmer person, just because.... 8-).

tnx
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

Hurah! I have made it.
I loaded main code and then went and uploaded the spifs.
Then i had to adjust the wifi ID and code. I think i get it now.

However i cant get it to download parameters from mainboard. It only loads and loads...
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: HOWTO: Flashing ESP8266

Post by dima »

Did you solder GPIO0 back to 1? Remember to "solder bridge 1 or 0" not just leave open (made that mistake before)

Also Olimex ESP is not the only choice. WeMOS D1 work just as well and they don't need any soldering. They have mini-USB works out-of-box with Arduino studio.
wemos-d1.jpg
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

Reposted!

A problem!
I took a brand new ESP8266.
I uploaded Johannes ESP8266 web interface ino file.
Then i installed the SPIFs.
Then i got inside web interface and set wifi password and SSID. I get into web interface no problems.

Next i connected wifi gizmo to my off-car V2 board. But web interface wouldnt load parameters! I tried changing the tx/rx wires, but both setups show exactly the same view. Waiting circle rolling at parameter line...
Any ideas?

I loaded flash onto Olimex ESP8266 mod board as well as on Wemos D1 mini. The latter is much easier to program. But still i cant connect to the board data stream effectively. What am i doing wrong?
I am attaching my settings in arduino.

tnx

A
Attachments
wifi arduino.jpg
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by johu »

Try switching off all debugging (Debug Level). I think it dumps messages via uart that confuse the inverter
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

johu wrote: Thu Dec 26, 2019 10:40 pm Try switching off all debugging (Debug Level). I think it dumps messages via uart that confuse the inverter
We have connection! I turned off debugging like you said and everything works now. Thank you.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

I decided to try to use Weimos D1 mini for Wifi adapter.
It has some more I/Os vs the Olimex board. Also it has USB poirt and its own FTDI. But i consider one thing really good. That is it can be flashed without jumper soldering. I messsed up one Olimex board because tracks fell off from soldering tiny jumpers.

Here are some instructions for anyone:

1. Download latest Arduino IDE and install it to PC
2. Buy a Weimos D1 mini ESP8266 board with FTDI and get CH340 driver from https://www.wemos.cc/en/latest/d1/d1_mini.html
3. Inside Arduino IDE install ESP8266
- open the Preferences window
- enter https://arduino.esp8266.com/stable/pack ... index.json into the Additional Board Manager URLs
- open Boards Manager from Tools > Board menu and install esp8266 platform. I select LOLIN D1 R2 mini board, settings are in the pic
ESP8266 settings.jpg
4. Install ESP8266 Filesystem Uploader
- Download https://github.com/esp8266/arduino-esp8 ... n/releases python support files
- extract file to Arduino IDE tools folder like you see here https://randomnerdtutorials.com/install ... duino-ide/
- restart Arduino for changes to come into effect
5. Download Johannes Web interface code here: https://github.com/jsphuebner/esp8266-web-interface
- put the code in the same dir as the ino file, default FSBrowser
- make another dir Data inside first and copy everything here again (i am not sure which files are correct, so i just copy them again) this are the SPIFS
6. Connect board to USB and select correct COM port and rest of settings
- if you used a new board you have to select "erase flash: sketch + wifi settings" so the board will erase its password
- click upload and wait for interface to reset the board
- select tools/ESP8266 sketch data upload and wait for the board to reset
- connect to the board and go to http://192.168.4.1/ to set your wifi settings inside interface
- connect your board to Johannes board...

Feel free to correct me if something is not correct. I installed everything over a month or so and because some time went by i may not remember everything i have done...
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

DOH!

Again i am at a loss. I tried to programm Olimex ESP8266 MOD gizmo and i was successful. Also i uploaded SPIFSs without a hitch.
Then i resoldered the jumper and tried it on my desk Rev 2 board.
I got web interface, but i couldnt get any data through. No parameters.
I upload my screen capture. Can you tell me what else is wrong here?
Attachments
ESP8266 olimex settings.jpg
MattsAwesomeStuff
Posts: 871
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 278 times
Been thanked: 165 times

Re: HOWTO: Flashing ESP8266

Post by MattsAwesomeStuff »

Here are some instructions for anyone:
I think I'll probably be following these directions. I'm in the same boat as you, that using solder as jumpers is not very reliable or beginner-friendly.

However, would just any plain CH340 USB-UART work in lieu of wifi? I really favor the simplest possible solution, even if it's not as convenient, because there's fewer things to troubleshoot when something goes wrong.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

MattsAwesomeStuff wrote: Fri Dec 27, 2019 5:53 pm
Here are some instructions for anyone:
I think I'll probably be following these directions. I'm in the same boat as you, that using solder as jumpers is not very reliable or beginner-friendly.

However, would just any plain CH340 USB-UART work in lieu of wifi? I really favor the simplest possible solution, even if it's not as convenient, because there's fewer things to troubleshoot when something goes wrong.
There is no need to reinvent the wheel. Much effort has been spent to transfer pyton interface from linux top windows, but in the end wifi modul beats all at convenience and simplicity of use. There is no better way to tune a car than with your phone :).
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

But the simplest method would be to use one FTDI USB cable and load Linux on some work laptop.
Linux has better support for Pyton.
But you have to learn yourself the language and command line use.

I do not want to hassle with cable, because at 380Vdc EMI causes interface to freeze or interfere with its work in some way.
Wireless is just better.
MattsAwesomeStuff
Posts: 871
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 278 times
Been thanked: 165 times

Re: HOWTO: Flashing ESP8266

Post by MattsAwesomeStuff »

arber333 wrote: Fri Dec 27, 2019 6:30 pm But the simplest method would be to use one FTDI USB cable and load Linux on some work laptop.
Why would I have to load Linux? Can't I just use Johannes' windows interface to program it?
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

I went driving with newly flashed D1 mini and i must say it is a success! Everything works. I even noticed new data logger. Didnt see that before on my older Olimex ESP8266.

Additionaly i just had a success with flashing the older Olimex ESP8266 module. It seems the problem was that i didnt reset the main controller when i plugged the module on. Therefore it didnt restart comms but was stuck in the middle.
Now it works the first time i plugg it in...YAY!

A
MattsAwesomeStuff
Posts: 871
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 278 times
Been thanked: 165 times

Re: HOWTO: Flashing ESP8266

Post by MattsAwesomeStuff »

Arber - Thanks again for writing this, I'd be 100% lost without your instructions.

As is, I'm only about 50% lost *with* your instructions :p

I think I was fine up until this point:
arber333 wrote: Fri Dec 27, 2019 8:09 am 5. Download Johannes Web interface code here: https://github.com/jsphuebner/esp8266-web-interface
- put the code in the same dir as the ino file, default FSBrowser
- make another dir Data inside first and copy everything here again (i am not sure which files are correct, so i just copy them again) this are the SPIFS
Questions:

- Which of those files in Johannes' directory are you calling the "code"? A specific file or the whole thing? I can download a zip of all of it, so, all of it? Johannes' read-me file is empty except for a title, nothing's described.

- "put the code in the same dir as the ino file, default FSBrowser". I don't know what this means. I downloaded a file (or all the files) from the directory, where do I put them? What is the "same directory as the ino file"? When I downloaded the whole directory, it has an "FSBrowser.ino" file, but what then what does "the code" refer to?

- "make another dir Data inside first", what was the first directory? I didn't know where to put them, so the files are still in my downloads folder. Does it matter where? Also, I'm not sure what this is describing. Suppose I have a folder called "Johu Web Interface", filled with everything in the folder linked above. Now I create a child folder inside "Johu Web Interface" called Data, and I copy... what into it? All the same files? So there's 16 files in the first directory, and then the same 16 more in the Data directory?
6. Connect board to USB and select correct COM port and rest of settings
I plug it in, it does it's little beep and wiggle for new device found.

... Where am I selecting COM port and rest of settings? It doesn't popup and I can't see anywhere that I set COM Ports (never did find it).
- if you used a new board you have to select "erase flash: sketch + wifi settings" so the board will erase its password
I wasn't sure what this was referring to. But I finally found it. You're referring to the Arduino IDE, under the Tools Menu, down near the bottom is "Erase Flash: Only Sketch", you have to click that, go to the submenu, and change from "Only Sketch" to "Sketch + Wifi Settings". Unintuitively, the Arduino interface menu options change what they're named to reflect what they're currently set to. So you can't find that setting. I.E. If at MacDonalds the menu said "Burger: Chicken" and you were told to select the "Burger: Beef". You scan but you can't see it. Beef isn't an option, you have to know that you're selecting "Chicken" and then turning that into "Beef" and then the name for that option is now "Beef" instead of "Chicken". Every little thing that isn't quite what you expect it to be makes it harder for someone who doesn't already know what they're doing.
- click upload and wait for interface to reset the board
I found 3 different upload buttons:
- In the "Sketch" menu there is an "Upload" option.
- In the "Sketch" menu there is an "Upload with Programmer" option.
- In the "Tools" menu there is an "ESP8266 Sketch Data Upload" option.

If I select the 3rd option, it spits out SPIFF and COM port errors.

If I select the 1st option, it chokes on COM1 and asks me to reselect, then for the first time lets me pick (only 2 options, COM1 and COM13). I picked the other COM option and it appears to have worked. I still don't know how to select a COM port other than through this error screen, I imagine if I was connected to multiple devices I could easily ruin some of them by not getting to pick a COM port unless the connection fails. Hrmph.
- select tools/ESP8266 sketch data upload and wait for the board to reset
Errors out. "SPIFFS Create: No files have been found in your data folder! Are you sure you want to create an empty SPIFFS image? Y/N"

Okay, so, what's my data folder? I gave it my data folder. WHY U NO WORK?

... much time passes...

AHA. ... of all the assinine...

So, if you have a fresh Arduino IDE install, and you've never saved a sketch before, your Sketch directory is an untitled garbled random numerical folder in your AppData/Local/Temp/ directory among thousands of other temp garbage files Windows and programs use. Mine was a folder called "untitled307404713.tmp" (yes a folder with an extension), which then has a date-code child folder ("sketch_jan03a" for me). And it was in that /AppData/Local/Temp/untitled307404713.tmp/sketch_jan03a folder that it was expecting me to put my data files, without giving me the option of where to look for them.

"But what if you went into Preferences and doubled-checked the default 'Sketchbook Location' or tried to change it?" I did both (default and changed to a different one, but the IDE wouldn't would use it's own preferences and this didn't have any effect until you do one thing to trigger a change. The trigger is to save a sketch somewhere first.

As soon as you save a sketch (File --> Save As), even a blank one, it THEN tells itself (without you saying so) to switch over from that random Temp folder to you Documents/Arduino/ folder. It doesn't use its own preferences until that point.

I only discovered this by going to "Sketch --> Show sketch folder" and it transporting me off into alphanumeric land in my Temp folder.

For anyone curious, if you dump your files into that random Temp folder and tell it to ESP8266 Sketch Data Upload, it does actually work (proving it does insist files be there until you've saved your first sketch).

If you did manage to hunt down that directory though, since it's a Temp folder, it will stop working as soon as you save your first sketch, because then it's reading the Sketchbook location in the Preferences. So you had to guess that it changed on you from a state of not following your directions to following your directions.

Goddamnit. That's an hour of my life I won't get back and I was lucky in stumbling across that solution. As much as I love Open Source, I hate Open Source. Everything always seems to be "it's so easy, once you already know". WHY WOULD YOU USE A RANDOM TEMP FOLDER NOT EVEN YOUR OWN DEFAULT FOLDER AND THEN NOT EVEN LOAD YOUR OWN PREFERENCES WHEN YOU CHANGE THEM AND THEN ALSO NOT TELL THE USER YOU WON'T AND THEN ALSO NOT TELL THE USER WHAT RANDOM TEMP FOLDER YOU WERE EXPECTING TO FIND THEM IN? WHY ARDUINO? WHY? MILLIONS OF PEOPLE USE THIS AND IT WAS DESIGNED SPECIFICALLY TO EDUCATE AND CATER TO BEGINNERS! I ALREADY KNOW THAT FRUSTRATION EXISTS YOU DON'T HAVE TO TEACH ME!
- connect to the board and go to http://192.168.4.1/ to set your wifi settings inside interface
This could be less vague, you could be talking about USB still or who knows what. I presume what you mean is to use a device that has wifi, scan for an SSID/Network Name that starts with ESP and followed by a few numbers (ESP-####), then connect to it like you would any other wifi network.

...

Also it didn't work. There's a missing step of going to File-->Open and loading the FSBrowser.ino sketch file.

But, that seems to have done it.
connect your board to Johannes board...
Well, it's 5am for me, so I'm throwing in the towel for the night. But, since I'm using the WEMOS D1 Mini instead of the Olimex... I can no longer just clip it onto Damien's Prius G2 Control Board. I have to create a cable to wire it up. Is there a handy list of what pins are what and where they get used? The Control Board doesn't have silkscreen on the pinouts (and fair enough, I'm not doing things the prescribed way). I'm moderately confident I could figure this out, but if anyone has a list that'd save me some time.

Ehn, maybe I've got this... Looks like we got 3.3v off the Blue Pill (D1 mini has a spot for 5v too, will run off either?), GND, and the Blue Pill's B11 and B10 pins (I presume RX and TX?). All clustered as the 4 pins on the right? Which connect to the corresponding pins on the D1 Mini? Anything more magical to it than just wiring up some jumpers to those 4 spots? (I.E. Does RX on the Blue Pill go to RX on the Mini, or is the RX of one the TX of the other?).

...

Thanks again Arber and others. There's precisely zero chance of me having figured this out on my own. I'm sure I would've gotten stuck and hundred times and problem could've been software, hardware, fuckin' tupperware for all I knew.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: HOWTO: Flashing ESP8266

Post by arber333 »

Handholding. It serves me right, i did spend only couple of minutes writing instructions.

OK then...
1. Download the zipped files from this link:
https://github.com/jsphuebner/esp8266-web-interface

2. Extract the files someplace on you PC. Now make sure that FSBrowser.ino file is residing in a folder named FSBrowser. This will enable Arduino IDE to connect everything in its path.

3. inside folder FSBrowser make a nother folder called Data and copy everything but the FSBrowser.ino in there. Those will be your file system on ESP8266.

4. Connect the D1 by the USBmini and download driver for FTDI if your PC doesnt find it itself and install it.
https://docs.wemos.cc/en/latest/ch340_driver.html

5. Now open Arduino IDE and go to menu File/preferences. There go to "Additional boards manager URLs" and insert this line next to all the others. Separation is by comma. https://arduino.esp8266.com/stable/pack ... index.json This will help Arduino search for the boards.

6. Go to menu Tools/Board/Board manager and install everything related to Weimos D1 mini. When you complete go one tier lower in menu and select your board LOLIN (weimos) D1 R2 mini. Then follow the screen shot from previous post to set the board.

7. Install ESP8266 sketch plugin as per instructions here https://github.com/esp8266/arduino-esp8266fs-plugin
You can change sketchbook location in File/Preferences first line i have it at D:\Arduino

8. When you are satisfied everything is setup use the "right arrow" ison to upload the board with ino code. After successful uploading Arduino will tell you it has reset the board.

9. Now go to menu tools and click on ESP8266 sketch Data upload line. This will upload everything from Data folder and Arduino will again reset your board.

10. Here i verify the Wifi module by connecting it to rev. 2 board and power everything up. Then i go and connect my phone to new Wifi access point. When connected i open browser and command http://192.168.4.1/
When connected interface should show default parameters. If there are no parameters loaded i reset the main chip and try to connect again.
When inside web interface i search for "Wifi settings" and change SSID and Password. Then reconnect.

D1 will run ff 5V of 3V3. I recommend you look underside of D1 there pins are declared. On Bluepill it can be discerned from viewtopic.php?f=3&t=220&start=20#p2623 Pic shows pins on the pill as well aas Wifi lines.
MattsAwesomeStuff
Posts: 871
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 278 times
Been thanked: 165 times

Re: HOWTO: Flashing ESP8266

Post by MattsAwesomeStuff »

Okay, new WeMOS D1 Mini board arrived today. Reflashed it and am ready to go.

Not sure I know what to do with it though. No one has any screen captures of what I'm expected to see or what I'm supposed to do with it. I'll take some when I understand enough about what I'm supposed to be doing.
When connected interface should show default parameters. If there are no parameters loaded i reset the main chip and try to connect again.
When inside web interface i search for "Wifi settings" and change SSID and Password. Then reconnect.
I don't know if I can see if any parameters are loaded.

Here's what I see:

Image

Is there a way of testing things or initially setting things up for a test run or knowing if the Blue Pill is even working before I hook a motor up and see if it spins?
Post Reply