#7 Flash ESP-01 easily with your NodeMCU

  Рет қаралды 42,983

Miika Kurkela

Miika Kurkela

Күн бұрын

Пікірлер: 79
@mradler
@mradler 5 жыл бұрын
Thank you so much Miika - this finally worked. Note that in your video you show the connection settings in Arduino IDE to connect to a NodeMCU (12E). To get blink to actually work I had to set this in the IDE to a "Generic ESP8266 Module", set LED_BuiltIn to 1 and select the flash size 512kb FS: 64kb.
@miikakurkela5606
@miikakurkela5606 5 жыл бұрын
Thank you for your comment!
@leonaka6539
@leonaka6539 4 жыл бұрын
Thank you! I made the same modification and it also worked for me. I was wondering why it wasn't blinking! Thank you!
@manohar3787
@manohar3787 4 жыл бұрын
much appreciated , your method worked for me
@cardansan
@cardansan 4 жыл бұрын
Also worked here. Thanks!
@Sultan___
@Sultan___ 2 жыл бұрын
thank you
@lescarneiro
@lescarneiro 4 жыл бұрын
Thank you so freaking much! I lost my Friday night and most of this Saturday trying to finally tasmotize my first ESP-01 with that hacked pushbutton on a ESP-01 USB module with CH340 and with an FTDI using that voltage divider crap with no luck... Was almost giving up and sticking to just use NodeMCUs and you now took them to a new level! THANK YOU! Fisrt ESP-01 finally tasmotized!
@liveen
@liveen 3 жыл бұрын
this voice is weirdly calming, I like it!
@sjkba
@sjkba Жыл бұрын
Thanks for this! I spent all day yesterday trying to figure this out and your sketch got me up and running immediately!
@choudharyadarsh
@choudharyadarsh 3 жыл бұрын
Awesome dude.....You have given a solution ..I am tired of looking......respect
@leonaka6539
@leonaka6539 4 жыл бұрын
Thank you so much! After one week going through many tutorials and USB serial adapters and connections I finally made it work! Amazing! I even bought the nodemcu because I had quit trying to flash the esp01 (and i bought 10 esp01). I was sad and now I'm happy again! So much easier! Thank you!
@leonaka6539
@leonaka6539 4 жыл бұрын
and it worked with 100u capacitor
@kd4pba
@kd4pba 5 жыл бұрын
Thank you! This video FINALLY helped me get my devices set up and working. I had tried using an Arduino Uno, a CH340 USB programmer and several other setups using a voltage divider and I honestly thought my devices were bad. I had no even considered I could use NodeMCU for this task. I have been working every night for weeks on this. Finally I this solution. I did have to set up a separate power supply using a 3 volt regulator. I moved on to flashing and actually wiped out everything by mistake but it was a good mistake because I then learned how to flash the latest firmware using the official tool. The documentation for this device is outstanding. Thank you again.
6 ай бұрын
Finally!!! Best tutorial!
@ravikumar-sp2uk
@ravikumar-sp2uk 5 жыл бұрын
Cant get enough of your voice
@Diego-Garcia
@Diego-Garcia 2 жыл бұрын
Thanks, very well explained the purpose of each connection between ESP32 NodeMCU and ESP-01
@TitanGamesTV
@TitanGamesTV 3 жыл бұрын
OMG! Thank you so much! I was trying this with my Arduino nano for eternity and your video really saved me a lot of trouble.
@osgaleo2229
@osgaleo2229 4 жыл бұрын
hello friend this resource saves a lot of people i am using the same way in all modules here thank you very much for contributing valuable information.
@miikakurkela5606
@miikakurkela5606 4 жыл бұрын
Thank you for your feedback!
@luigidalessio9654
@luigidalessio9654 7 жыл бұрын
Thank you so much! I was going crazy while trying to program ESP-01 using una usb adapter and you save my time and my head! :) Cheers!
@miikakurkela5606
@miikakurkela5606 7 жыл бұрын
I'm glad if you liked it :-)
@kasyxkm
@kasyxkm 6 жыл бұрын
same for me! this is the only working solution to do anything with ESP01
@spacefolder
@spacefolder 7 жыл бұрын
Thanks Miika for such wonderfull, informative, easy to follow, and "cozy" videos. Cheers!
@miikakurkela5606
@miikakurkela5606 7 жыл бұрын
Thank you for your kind feedback. I am glag if you liked the video.
@albertoroura8027
@albertoroura8027 4 жыл бұрын
Thank you so much!!! my module is now working :)
@manecolooper
@manecolooper 7 жыл бұрын
Great video! best programming option for esp01 so far!
@miikakurkela5606
@miikakurkela5606 7 жыл бұрын
Thank you very much! I figured it out by myself one night, tried it on the next day and it worked :-)
@moridin1138
@moridin1138 6 жыл бұрын
Great video! Like your description says, I havent seen other tutorials like this either out on the web or here on KZbin. So thanks for recording this and sharing!
@tusharpc
@tusharpc 6 жыл бұрын
Thank you SO MUCH, because of your perfect tutorial I have my Esp-12S board running!
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
You are welcome! I'm glad that the video was helpful.
@sayedur
@sayedur 6 жыл бұрын
Excellent demonstration! Kudos!
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Sayedur R Chowdhury, thank you for your feedback! I'm glad to hear that you liked it.
@petrosgia3260
@petrosgia3260 6 жыл бұрын
Thank you very much for the turtorial!!It helped me a lot!!Working also on ESP-07
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Petros G, I'm glad that you liked the video and I was glad to hear that it was helpful to you!
@RilosRanteS
@RilosRanteS 3 ай бұрын
could we do this with esp32 nodemcu to esp 32 breakboard?
@lotekjunky
@lotekjunky 8 жыл бұрын
Keep up the good work!
@miikakurkela5606
@miikakurkela5606 8 жыл бұрын
Than you for your encouraging words!
@ChannelXY
@ChannelXY 7 ай бұрын
With esp01 connected to nodemcu as shown, serial monitor shows garbage. How to fix that?
@saikatd9037
@saikatd9037 4 жыл бұрын
Make video on nodemcu connect to esp12f module.. please
@adruino12345
@adruino12345 5 жыл бұрын
Thanks a lot! The nodemcu works perfect, but the esp01 do not blink after the sketch was flashed. But the following solution works fine: Chance the "Buildin LED" option in the Arduino IDE from 2 to 1. Now everything works well! Thanks
@miikakurkela5606
@miikakurkela5606 5 жыл бұрын
Thank you for your feedback!
@bexroot634
@bexroot634 4 жыл бұрын
Thank you so much! how can i program shelly 1 ? is it gonna work with node mcu
@electrotsmishar
@electrotsmishar Жыл бұрын
Super cool
@renhit2005
@renhit2005 6 жыл бұрын
Thanks for the video. I have tried all the steps as you described. Blinking program gets uploaded successfully. But after that blue LED does not glow at all. No blinking. I have put some print statements as below, none of these statements output on serial monitor; Strange!!! I assume program is not running. I have tried even removing ESP01 GPIO0 pin from D3 on NodeMCU and powering NodeMCU. No blinking! Any help? void setup() { Serial.println("In setup"); pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output }
@kd4pba
@kd4pba 5 жыл бұрын
Had the same problem with Blink. I think that code is for an external LED? I moved onto a simple WebServer and that worked fine so you may want to test with another piece of code.
@rickybobbyracing9106
@rickybobbyracing9106 3 жыл бұрын
You kinda of sounds like Dracula :). But joking aside, great video, this helped me a bunch!
@kvk-ut
@kvk-ut 2 жыл бұрын
Подскажите где найти скетч ?
@vis2020
@vis2020 7 жыл бұрын
Great it works with Lua firmware upload also!! Best option!
@miikakurkela5606
@miikakurkela5606 7 жыл бұрын
I'm glad that it worked there, too! Thank for your feedback!
@xennelul
@xennelul 8 жыл бұрын
Looking forward to your explanation about Lora!
@miikakurkela5606
@miikakurkela5606 8 жыл бұрын
Will this link help you? docs.google.com/document/d/1yzKoLWDcgRxbQQSe5HlQSvLWO0Wfx9Jcvop6tipNw74/edit#heading=h.8syv5uuq5bi4
@drohnele3741
@drohnele3741 2 жыл бұрын
really helpfull
@cabeloDoPardal2
@cabeloDoPardal2 6 жыл бұрын
Thanks for your video! It outstands! I could make it for ESP-01 to accept the program. The blue led blinks, it gets uploaded.. but nothing after. I can't tell if the program runs.. actually it does not run because the blink example, when uploaded, do not blink and another examples as wifiAccessPoint and WifiClient both do not work. In my Arduino IDE's options I upload using Nodemcu reset method , Generic ESP8266 as target board and upload speed of 115200. I am using an alternate power supply exclusive for the ESP-01, linked with NodeMCU's ground (like shown in this video) and of course Arduino IDE. I have commented all Serial.prints.. and by the way, the ESP-01 gets hot! I power the ESP-01 after flashing, with just VCC and Ground plugged.. and still nothing. My upload process starts with grounding GPIO0 and powering ESP-01 while USB is connected to Nodemcu (as the power starts, the blue led blinks once - and I understand it as "prepared for upload"). Then I upload the program, normally (sometimes with GPIO0 still grounded, sometimes at D3 of nodemcu). After then I sometimes power ESP-01 with just VCC and GND and sometimes power without disconnecting it from nodemcu.. both methods made no difference to run the program that I just uploaded successfully.
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Strange! Especially the hot ESP-01. I would try flashing the ESP-01 module wiht an ordinary USB-to-serial-converter. Then if the ESP-01 still works I would double check the wiring and the additional power supply and try again flashing with the NodeMCU. Please write back later and tell how you got this problem solved.
@cabeloDoPardal2
@cabeloDoPardal2 6 жыл бұрын
it is still working. Still uploading. The Nodemcu accepts programming too, when not used as a bridge for the ESP-01. Are there any special pin configuration to make it init by itself? I am just powering it with a 3V Battery or 3.3V source and the red light just stays on and nothing happens. I have seen that to make it boot to load GPIO0 (ESP-01) must be set to ground BUT to make it run the program uploaded, it must have GPIO0 set to High (I testes plugging GPIO0 of ESP-01 to 3.3V and still nothing more than the red light, but without dim). Afterwards, your video helped me very much and even may have helped me not to burn an ESP-01 because I may would not check for RX/TX voltages of the one I have before using. My problem now is beyond the issues of this video.. I assume the program got uploaded, but I can't tell if it runs or why it does not. I try to monitor Serial output (I upload sketches with serial output on and off) but it shows just garbage after plugging in the VCC from the Nodemcu to ESP-01. For the heating problem, I actually knew that I can program it without using external supply. The problem I had was not about low current available but just grounding ESP-01's GPIO0.. now it uploads every time. Thanks.
@cabeloDoPardal2
@cabeloDoPardal2 6 жыл бұрын
I will try flashing. I am using now a USB to Serial. Still the same happens. I am installing Termite to see if I can get some response from the ESP-01 to check which firmware is already running..
@cabeloDoPardal2
@cabeloDoPardal2 6 жыл бұрын
I got a soft brick on it because I tried many things to make it work (not just your approach). I did not noticed before that I had a USB to serial device available. I tested another of the same package and all worked well using the usb to serial. Strange. Well, now I have one esp-01 to play with testing firmwares and recovering from this soft brick.. I should learn a lot using it.
@Electromaniaworld
@Electromaniaworld 6 жыл бұрын
Nice video. I tried to do same with my nodemcu but it fails to program. I have done exactly same connections. Any idea what might be wrong. I have esp01 and nodemcu v2. Finally I got a bare nodemcu board without esp8266 then it works. I will put video on my channel soon. But I still wonder why it doesn't program with nodemcu board (?)
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Hi Electromania! Try adding the cspacitor.
@pacsmile
@pacsmile 6 жыл бұрын
I tried everything shown here, and it works perfectly, just had to change some values on the arduino IDE to match the flash memory on my esp-01. Now i have a weird problem, any program i upload using this method stays with a 74880 bps serial speed, i found out that speed by trial and error, any suggestions on what i could look into to solve that?.
@michaudjp
@michaudjp 5 жыл бұрын
Each time you upload a sketch from Arduino IDE, you're actually flashing the "active" ESP in your setup. If properly wired, it should be the ESP-01 and not the NodeMCU ESP-12E. If I recall, 74880 is kind of a debug feature only used in the firsts μs of the boot process. Add that line to your sketch: Serial.begin(115200);
@ahmadwaridi1
@ahmadwaridi1 6 жыл бұрын
nice video! Thankyou :)
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Ahmad Waridi, thank you for your ferdback!
@nicechubbchubbs
@nicechubbchubbs 6 жыл бұрын
Can you do Flash ESP-01 with Wemos D1mini?
@BrianLough
@BrianLough 6 жыл бұрын
Kind of, it doesn't have the EN pin broken out though. If you ground the RST pin of the Wemos, you can wire it up the same way, but you arent going to get the auto resetting magic. I'm also not sure if the GPIO0 of the ESP-01 will be grounded at the right time so you would probably need to ground that too
@MohammedRiad
@MohammedRiad 6 жыл бұрын
can i use arduino uno?
@neelmota
@neelmota 6 жыл бұрын
how to program esp8266 after changing the firmware?
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Hi Neel Rajgor! After changing the firmware the connections and the procedure of the video should work as earlier. What is the new firmware that you are having now?
@lodvries
@lodvries 4 жыл бұрын
Miika, thank you for the nice tutorial. Uploading code via nodemcu is no problem, but I want to use a Wifi-Relais with the esp-01 integrated. I can communicate via a webserver on the esp-01, but the relais doesn't toggle. This is the code: #include const char* ssid = "xxxx"; const char* password = "passxxx"; #define RELAY 0 // relay connected to GPIO0 WiFiServer server(80); void setup() { Serial.begin(115200); Serial.println("Starten"); delay(10); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); } server.begin(); Serial.println("IP: "); Serial.println(WiFi.localIP()); } int value = 0; void loop(){ WiFiClient client = server.available(); if (client) { String currentLine = ""; while (client.connected()) { if (client.available()) { char c = client.read(); Serial.write(c); if (c == ' ') { if (currentLine.length() == 0) { client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.print("Relais On"); client.print("Relais Off"); client.println(); break; } else { currentLine = ""; } } else if (c != ' ') { currentLine += c; } if (currentLine.endsWith("GET /H")) { Serial.println("EIN"); delay(10); byte close[] = {0xA0, 0x01, 0x01, 0xA2}; //byte close[] = {A0, 01, 01, A2}; Serial.write(close, sizeof(close)); } if (currentLine.endsWith("GET /L")) { Serial.println("AUS"); delay(10); byte open[] = {0xA0, 0x01, 0x00, 0xA1}; Serial.write(open, sizeof(open)); } } } client.stop(); } } This is the module I use: ESP-01 relais module (www.hobbyelectronica.nl/product/esp-01-relais-module/) Can you help me? What do I do wrong? I suppose it must be the code. I have also made a bridge between VCC and CHPD, but this doesn't help. Thank you in advance for your help. Yvonne
@lodvries
@lodvries 4 жыл бұрын
Hi Miika, After trying again and again I tried to combine multiple codes and YES I succeeded. This is the new code, which works: #include const char* ssid = "xxx"; const char* password = "xxxx"; #define RELAY 0 // relay connected to GPIO0 WiFiServer server(80); void setup() { Serial.begin(115200); pinMode(RELAY, OUTPUT); Serial.println("Starten"); delay(10); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); } server.begin(); Serial.println("IP: "); Serial.println(WiFi.localIP()); } int value = 0; void loop(){ WiFiClient client = server.available(); if (client) { String currentLine = ""; while (client.connected()) { if (client.available()) { char c = client.read(); Serial.write(c); if (c == ' ') { if (currentLine.length() == 0) { client.println("HTTP/1.1 200 OK"); client.println("Content-type:text/html"); client.println(); client.print("Relais Einschalten"); client.print("Relais Ausschalten"); client.println(); break; } else { currentLine = ""; } } else if (c != ' ') { currentLine += c; } if (currentLine.endsWith("GET /H")) { Serial.println("EIN"); delay(10); digitalWrite(RELAY,LOW); //byte close[] = {0xA0, 0x01, 0x01, 0xA2}; //Serial.write(close, sizeof(close)); } if (currentLine.endsWith("GET /L")) { Serial.println("AUS"); delay(10); digitalWrite(RELAY,HIGH); //byte open[] = {0xA0, 0x01, 0x00, 0xA1}; //Serial.write(open, sizeof(open)); } } } client.stop(); } } Maybe this is a help for somebody else as well. Thanks for your time. Yvonne
@MrJirschiDD
@MrJirschiDD 8 жыл бұрын
Hi Miika, I like your videos on KZbin. Great stuff!But the blink example of video #7 doesn't work with on my ESP-1 flashing via my ESP-12F. There exist the issue "Blink Example won't blink #2192" github.com/esp8266/Arduino/issues/2192Gorkde is using also an ESP-12F. Igrr wrote the pin of the built-in led has changed. I tried to use pin 2 but no blinking.Do you have an idea?Thank you :)
@MrJirschiDD
@MrJirschiDD 8 жыл бұрын
github.com/esp8266/Arduino/issues/2192
@miikakurkela5606
@miikakurkela5606 8 жыл бұрын
Thank you for for your feedback and for the information! Do the other programs work? For instance: void setup(){Serial.begin(9600); Serial.print("Hello");} void loop() {}
@TallerCriollo
@TallerCriollo 6 жыл бұрын
me salvaste perro :v
@miikakurkela5606
@miikakurkela5606 6 жыл бұрын
Vad menar du med det?
@TallerCriollo
@TallerCriollo 6 жыл бұрын
Thanks friend, it was very useful for me
@bijenadhikari
@bijenadhikari 6 жыл бұрын
bro i need your email id for more consult.
@zsoltkallos437
@zsoltkallos437 4 жыл бұрын
"Sorry man i hate your tone of voice and how you are speaking."
@lodvries
@lodvries 4 жыл бұрын
Zsolt, what a stupid remark. I'm sorry for the child on your photo. Milka, you are a great teacher. I tried it with a programmer and with the Arduino, but this one is the first that works. thank you so much.
#6 ESP8266rf and Bigger Currents
17:37
Miika Kurkela
Рет қаралды 4,1 М.
#1 Program an ESP01: The easy way!
7:38
AIbeginsDotNet
Рет қаралды 114 М.
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
Mesh Networking demo on ESP8266 & ESP32 | LCSC
8:28
techiesms
Рет қаралды 164 М.
How To Read Bin File From ESP32 and ESP8266
10:22
Ahmad Logs
Рет қаралды 44 М.
Using an ESP8266 ESP01 Module
6:51
Brian Lough
Рет қаралды 120 М.
ESP-01 UART and turning it to a programmer
5:03
Csongor Varga
Рет қаралды 159 М.
ESP8266 - Getting Started & Connected.
15:47
Equinoxe
Рет қаралды 442 М.
ESP32 CAM - 10 Dollar Camera for IoT Projects
29:39
DroneBot Workshop
Рет қаралды 802 М.
#1 From ESP-01 to ESP-DIY
6:53
Miika Kurkela
Рет қаралды 32 М.
Easy way to program an ESP8266
10:37
IT Chop Shop
Рет қаралды 180 М.
Why build an entire computer on breadboards?
28:43
Ben Eater
Рет қаралды 3,1 МЛН
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН