ESP8266 Over The Air (OTA) Programming Without Reset Using Arduino IDE (Mac OSX and Windows)

preview_player
Показать описание
• Your support helps me post videos more frequently:
BTC: 1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
==========
• Find me on:
==========
• My shops:
==========
• Description:
One of the limitations of OTA is that the code needs to run a specific line of code, but doing so might interfere with other things that the code needs to do. Our previous sketch waited 15 seconds after booting for an update and then blinked an LED. However, each time we needed to run OTA we needed to turn power on and off the board.
In this video, I show you the steps for updating code wirelessly any time we want!
- Note:
On Windows, please make sure you install either iTunes or Bonjour so that your computer can see the ESP8266 over the Wi-Fi network (it uses mDNS):
*Special thanks to viewer nzm TINKER for the tips!*
==========
• Related vids:
==========
• Project parts:
ACROBOTIC WeMos Development Kit for ESP8266:
ACROBOTIC WeMos D1 Mini V2 Development Board for ESP8266:
==========
• Project code:
Firmware for the Arduino IDE:
File → Examples → ArduinoOTA → BasicOTA
==========
• Tutorials:
Detailed guide for getting started with the WeMos ESP8266 Development Board:
==========
• Music:
==========
#ESP8266 #Arduino #Tutorial
Рекомендации по теме
Комментарии
Автор

Very good, thank you. I'm already using your '15 second from restart' idea on my light switches, together with Andreas's reed switch idea for the reset, now I don't need to bother with the reed switch, thank you!

pcb
Автор

Great tutorial. You speak very clearly and at a rate that can be absorbed by a learner. Well done!

leedevries
Автор

so simple yet so elegant! i've just started messing with OTA programming and kept running into a wall with http server and OTA running side by side.
i did one thing differently though - i implemented an async wait function, so it's not blocking the main loop.

UNgineering
Автор

Cisco - thank you so much for your tutorials. I went from zero to (very nearly) hero RE ESP8266 and OTA with these two tutorials.

Simple, well explained, and no showing off... (apart from that neat trick with the LED - digitalWrite(2, !digitalRead(2)); ) That is cool!

Thanks++

timothyCubed_x_x_x
Автор

Thankyou, this is what I kneed, very clear and informative explenation for us who still is new to OTA. I like Your videos, please keep making them for us. Once again, a big thanx!

kallenanka
Автор

Brilliant tutorial Thank you very much.
I just wanted to add a finding of my own...
If you open a second instance of Adruino and set port to the USB Com Port you can still have access to the Serial monitor in the second Arduino IDE whilst still be able upload via WiFi from the First Adduino IDE. Handy for debugging.
Harry

harryjunior
Автор

Very good tutorial 👌 👍 👏 this is a great function!

BatNenko-NJS
Автор

thank you, have been looking for this

sulaimangari
Автор

what is the point of OTA if serial monitor is not supported. is it possible to direct the serial port data to a webserver so the serial port output can be seen on the webpage.

originalthehrao
Автор

love u bro for such informative videos. God bless you.

bravekhan
Автор

Is it possible to do this process if the arduino and system are not conected to the same Wi-Fi. I want to know if we can do this if both are connected via internet, at two different locations

asishtechnovia
Автор

Thanks, you are making very useful video. keep it up (y)

hammasmajeed
Автор

Hey, I want to use NodeMCU ESP8266 to flash code on STM32 based MCU, what are the steps should I take ?

AdityaSingh-inlr
Автор

It worked quite OK, but I found that on a running system with 6 MQTT nodes which run all the time, if I turned up with my notebook to upgrade firmware on any node, the Arduino IDE does not
see the controllers WiFi port. It only sees the port when ArduinoOTA.handle() is executed.
What I do is I execute that function once a minute WHEN THE OTA flag is NOT set.
At most the laptop only has to wait for a minute before the WiFi ports are recognized.

leedevries
Автор

Thanks for video. I am facing one issue, Not sure if its IDE issue or something else. I tried your code from github but I am unable to find any option to see network port in Tools->Port. I can see only COM ports option. Any suggestion? I m using latest Arduino IDE 1.8.12 in widows 10. Do we have any other option to validate.

chandanbhatia
Автор

I have a mega 2560(ch340) pro micro running my project. Can sketches be uploaded wirelessly through an esp32 UART ports ?

rayleblanc
Автор

Honestly I dont understand what you are trying to show here. I have been using OTA long time already and the OTA handle does not interfere at all and I can update over the air any time I want

Ed
Автор

It's just so good. Could make a video how to optimize the OTA code to avoid that annoying 15 sek delay? Maybe we can use some script to poll esp8266 for reset and start OTA immediately?

The_Unobtainium
Автор

I know this joke! You have a wireless programmer in your power bank! 😁👍

DmitriNesterov
Автор

I tryed on NodeMCU and the webserver it's ok.
I then choose the net port and put NodeMCU in Restarting...
Then I take an error: "07:00:00 [ERROR]: No Answer" :-(
Can you help me please ?
Thanks a lot

MrDenisJoshua
welcome to shbcf.ru