ESP8266 Programming Over The Air (OTA) Using Wi-Fi With Arduino IDE (Mac OSX and Windows)

Sdílet
Vložit
  • čas přidán 28. 03. 2017
  • • Your support helps me post videos more frequently:
    / acrobotic
    www.paypal.me/acrobotic
    buymeacoff.ee/acrobotic
    BTC: 1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
    ==========
    • Find me on:
    / acrobotic
    / acrobotic
    / acrobotic
    ==========
    • My shops:
    acrobotic.com/shop
    amazon.com/shops/acrobotic
    ==========
    • Description:
    In this video I go over the process, step-by-step, of how to use the Arduino IDE for programming your ESP8266 wirelessly (Over-The-Air), that is, without being connected to the computer's USB port. I've covered in other videos how to use the Arduino IDE to upload code to the ESP8266. However, I've done this by connecting the board over USB to a computer, and using the IDE's upload function.
    In this video, I'll modify a built-in example of the firmware that's needed for OTA. Once modified and uploaded over USB, this firmware will allow selecting a special port in the Arduino IDE, and use the wireless (OTA) programming method for additional uploads.
    ~~~~~~~~
    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):
    support.apple.com/downloads/b...
    Also, do not forget that OTA updates only work with ESP8266 boards with at least 8Mbit/1MByte memory (not the ESP-01).
    Special thanks to viewer nzm TINKER for the tips!
    ==========
    • Project parts:
    ACROBOTIC Development Board for ESP8266:
    acrobotic.com/products/acr-00018
    amzn.to/2dAZ1mW (affiliate)
    ==========
    • Project code:
    Firmware for the Arduino IDE:
    Available through File → Examples → ArduinoOTA → BasicOTA
    ==========
    • Tutorials:
    Detailed guide for getting started with the ESP8266 Development Board:
    learn.acrobotic.com/tutorials...
    ==========
    • Music:
    Jason Shaw (audionautix.com/). Creative Commons License 3.0.
    ==========
    #ESP8266 #Arduino #Tutorial
  • Věda a technologie

Komentáře • 188

  • @pascallacsap6276
    @pascallacsap6276 Před 7 lety +8

    Outstanding trick.
    Thanks again to you and the whole team providing these tutos.
    May I share 2 issues I got with Windows_10 trying to implement the OTA.
    1) Mdns capabilities thanks to Apple "Bonjour" software: little puzzled with all the download possibilities of the webpage given in the link.
    In fact, one should pick "Print services for Windows".
    Once downloaded,
    don't run it: open it with WinZip or WinRar to just get Bonjour32.msi or Bonjour64.msi accordingly to the local systemThen, get to the firewall to authorize "Bonjour services" both private & public.
    2) When trying to connect OTA, the arduino IDE stopped:
    java.io.IOException: Cannot run program "python.exe": CreateProcess error=2.
    It turned out that although installed on the computer, Python is not declared in window's path !
    So, make sure that this point is ticked: if not, just fix it (how-to here :
    www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)

    • @datasith
      @datasith  Před 7 lety

      We owe you a drink! You're absolutely right, so thank you so much for the tips to improve the OTA process. We'll add them to the video description. In the future we want to repeat some videos for Windows users, and we'll definitely add this topic to the list!

    • @thomascziesla3768
      @thomascziesla3768 Před 7 lety +1

      thanks a lot - I faced same issues on Windows10. I had to restart PC to get Bonjour Service working. Firewall settings - important hint!
      I used: support.apple.com/kb/DL999?viewlocale=en_GB&locale=en_GB
      and I had to install python 2.7.10 as well (as per my research v.3.5.xx an above do not work with Arduino, so I installed 2.7.10) - while installing don't forget to add python to path variable (option to be set in install parameters)

  • @rfdave3980
    @rfdave3980 Před 6 lety +1

    Awesome tutorials. I enjoy your channel. EXCELLENT work.

    • @datasith
      @datasith  Před 6 lety

      Thanks for the kind words, we're glad you liked them!

  • @MortenCopenhagen
    @MortenCopenhagen Před 7 lety

    Thanks. Just what I was hoping to learn. Very well explained.

    • @datasith
      @datasith  Před 7 lety

      Thanks for the kind words! We're glad you found the content useful!

  • @leotobo7393
    @leotobo7393 Před 7 lety

    I thank you so much, you taught me a lot of things I had couldn't find. Really nice tutorials :)

    • @datasith
      @datasith  Před 7 lety

      Thanks for the kind comments. It makes us happy that we're able to help awesome viewers like you!

  • @anokhautomation4453
    @anokhautomation4453 Před 2 lety

    Great information. 👍

  • @6345788
    @6345788 Před 6 lety

    Great video. The ESP8266 seems to be a versatile chip to use on standalone projects. Thanks!

    • @datasith
      @datasith  Před 6 lety

      Thanks for the kind words! Yeah the chip is great, and at an unbeatable price. We truly appreciate that you stopped by our channel!

  • @BooBar2521
    @BooBar2521 Před 2 lety

    Very helpfull. Thx for youre affort!!

  • @sreeprakashneelakantan5051

    Very well explained 👌

  • @electron-1979
    @electron-1979 Před 6 lety

    Worked great for me.
    THANKS!!

    • @datasith
      @datasith  Před 6 lety

      That's great to hear, thanks for watching!

  • @ken125y
    @ken125y Před 7 lety

    Excellent explanation. Thanks!

    • @datasith
      @datasith  Před 6 lety

      Thanks for the kind words, we're glad you liked it!

  • @SmartFurnishing
    @SmartFurnishing Před 4 lety

    This was a great video! Thank you

    • @datasith
      @datasith  Před 4 lety

      I'm glad you enjoyed it, Peter. Thanks or watching!

  • @alvarorodriguez4557
    @alvarorodriguez4557 Před 6 lety

    Great tutorial man!

    • @datasith
      @datasith  Před 6 lety

      Thanks, Alvaro! Glad you liked it.

  • @nzmtinker2706
    @nzmtinker2706 Před 7 lety +2

    Another great video! Thank you for sharing your knowledge with us. I like the calm and easy understandable style of your explanations!
    For all beginners: Please do not forget that OTA-updates only work with ESP8266-boards with at least 8Mbit/1MByte memory. So this will not work with the ESP-01. You will get errors when trying to upload OTA. It took me hours to realize that :D

    • @datasith
      @datasith  Před 7 lety

      Thanks for the kind comment, and also for sharing your experience with us. We'll add your piece of knowledge to the video description!

  • @arrygon4059
    @arrygon4059 Před 6 lety

    thank you very much ..finally I got succeeded after trying lots of others videos...... thanks again

    • @datasith
      @datasith  Před 6 lety

      That's awesome! Glad to hear you found it useful :)

  • @SJV82
    @SJV82 Před 4 lety

    you are THE MAN
    Iam SUPER new to arduino and i figured this out......NOT EASILY i might add LOL
    But i figured it out, got everything automated and OTA working with BLYNK
    making your code work with BLYNK code for a extreme beginner was VERY HARD
    THANKS ALOT
    i subscribed keep the good videos coming

    • @datasith
      @datasith  Před 4 lety

      haha, glad to hear Scott. it makes me super happy that some people find this stuff useful :)

  • @lintangwisesa
    @lintangwisesa Před 7 lety

    nice explanation :)

  • @ArduBlock
    @ArduBlock Před 4 lety

    Thanks cool video!

    • @datasith
      @datasith  Před 4 lety

      Glad you liked it, thanks for watching!

  • @neilvermeulen5283
    @neilvermeulen5283 Před 6 lety

    Thanks mate!

    • @datasith
      @datasith  Před 6 lety +1

      Thanks for watching, m8!

  • @KP-nc9gk
    @KP-nc9gk Před 6 lety +2

    Mine works without the additional ota flags. I just let ArduinoOTA.handle() be called inside the loop() along with my program. Great video! Thank you very much. :)

    • @datasith
      @datasith  Před 6 lety

      That's great! Thanks for the kind comments, for watching my video, and also for sharing the info!

    • @backwoodsbrewer
      @backwoodsbrewer Před 5 lety

      I have found that if you have a lot going on in your code, or if you have delays, then it can be a little problematic. Best solution I have found is to use millis/previousmillis instead of delay(), and also make sure to define the esp8266 port. Even though it says it defaults to 8266, setting it in the code fixed a lot of issues for me (ie., "No response" errors). Also, if you program it over USB, be sure to do a hard power cycle or else OTA upload will error.

  • @mikeharmon8733
    @mikeharmon8733 Před 4 lety +1

    Hello,
    I am in the middle of this video and would like to share that the memory on ESP-01 is easy to update to 4Mbytes. :)
    I found it on Instructables and it works great!
    Thank you for your teaching work!

    • @datasith
      @datasith  Před 4 lety

      Hey, Mike. I really appreciate you sharing your knowledge. I hope others find it useful, thanks so much!

  • @quaternion-pi
    @quaternion-pi Před 7 lety

    Great tutorial, well explained as usual! Will you be getting an ESP-32?

    • @datasith
      @datasith  Před 7 lety +1

      Thanks! Happy we're staying on track. We received a couple of ESP-32 demo boards from Espressif we're itching to showcase, and we also have our own development board that we want to demo. So many (awesome) things, so little time! 😂

  • @radit68i
    @radit68i Před 7 lety

    very useful

  • @johnbrumfield6212
    @johnbrumfield6212 Před 2 lety

    Excellent tutorial!!! I programed a generi esp6288 with , but is unable to program a D1 Mini. Please help!!

  • @excessnet
    @excessnet Před 6 lety

    Cool videos!
    I got two quick questions:
    1) If I boot the ESP a month later and he change IP, the IDE will still find it?
    2) Did you make the video about uploading firmware on webserver?
    Thanks!

    • @datasith
      @datasith  Před 6 lety +2

      1) Yup
      2) It's a work in progress
      Thanks so much for watching, and for the kind words. We're glad you found the videos useful!

  • @anumsheraz4625
    @anumsheraz4625 Před 7 lety +1

    Great stuff... Well explained video of its kind.
    However I had issue after uploading the Wifi boot loader.I couldn't see Wifi port even if I restart my Arduino IDE. This solution might help someone:
    1. make sure your PC is on same wifi network as on which you configured your boot loader program.
    2. if still doesn't works, go to preference > Network and turn off proxy , restart IDE.
    3. if still doesn't works, make sure your Wifi network is not blocking some contents from Firewall (usually happens in Universities or restricted Wifi networks)

  • @steve8939123
    @steve8939123 Před 6 lety

    Great lesson, thanks. What if after you follow all of the steps and everything works OK you put the board in a place that is not easy to get to, like in a scrolling LED sign, and you want to OTA update the text how can you do it if the reset button on the board is not easy to get to?

    • @datasith
      @datasith  Před 4 lety

      Thanks for the kind words. Did you get a chance to watch my updated OTA video? It should help you with this question. Sorry about the late reply!

  • @KenWalkersquatley
    @KenWalkersquatley Před 6 lety

    Very nice tutorial. Thank you. Did you ever post the video about using the web server to update the ESP8266? I can't seem to find it.

    • @datasith
      @datasith  Před 6 lety

      We have a few, if you mean across the internet check out this one: czcams.com/video/6YAnqHTm7_o/video.html. Thanks for watching!

  • @nicolascoquin7760
    @nicolascoquin7760 Před 3 lety

    I was able to upload the OTA example without issue (without the blink code).
    My ESP connected to Wifi network and gave me its IP address.
    However, once I restart Arduino, impossible to find the ESP in my ports. Is there something I need to check on the IDE itself ?
    The ESP is powered from a wall plug 2 meter away from the computer, both on the same network.
    It's an ESP-12F module.
    If anyone has an answer, that'd help a lot !

  • @manliomalavolti9640
    @manliomalavolti9640 Před 6 lety

    @Thomas Cziesla: I did install Python 2.7 but when uploading from IDE the program compiles quickly, starts uploading and hangs forever. I'm using Mac with Sierra 10.13.3. Did I miss something?

    • @datasith
      @datasith  Před 4 lety

      Did you ever get this resolved, it seems your comment slip through the cracks and I never answered it (sorry!).

  • @user-oe5kp5ee5m
    @user-oe5kp5ee5m Před 9 měsíci

    Can we do this if the arduino and system is not connected to the same wifi

  • @Bem2015
    @Bem2015 Před 7 lety

    I was just wondering today how to go about this. Thank you.

    • @datasith
      @datasith  Před 7 lety

      Glad the timing worked out just right! :)

    • @Bem2015
      @Bem2015 Před 7 lety

      ACROBOTIC I think a good tutorial would be how to use HTML to make Web pages that people can interact with

  • @madhukeshnp
    @madhukeshnp Před 5 lety

    Wooooooooohhoooooooooo the OTA is crazy fast in uploading the sketch compared to serial via USB !!

    • @datasith
      @datasith  Před 5 lety +1

      Agreed! It's obviously more reliable to do it over USB, but gotta love the speed of OTA!

    • @madhukeshnp
      @madhukeshnp Před 5 lety

      @@datasith yes the ota do sometimes fail.. and annoy a bit . But usb never fails. But ots helps when the devices are not in reach. I love the upload speed .

  • @barrelhorseworld6439
    @barrelhorseworld6439 Před 5 lety

    Once you flashed to OTA firmware in do you have to add that to every sketch you upload?

    • @datasith
      @datasith  Před 5 lety +1

      Yes, if you want to keep the OTA functionality. The minimal things you need are:
      #include
      #include
      #include
      char ssid[] = "xxxxx";
      char pass[] = "xxxxx";
      void setup() {
      // Wi-Fi setup
      ArduinoOTA.begin();
      }
      void loop() {
      ArduinoOTA.handle(); // For OTA
      }

  • @shrikantnikam2426
    @shrikantnikam2426 Před 3 lety

    While ota how to access serial terminal

  • @oldpasink4452
    @oldpasink4452 Před 6 lety

    Which video is the follow-up that shows how to do OTA without having access to remove power or press buttons?

    • @datasith
      @datasith  Před 6 lety

      It's still a work in progress :)

  • @lordhelmchen100
    @lordhelmchen100 Před 7 lety

    Great Video, very good production Quality as always IMO!
    But why didn't set time_elapsed = millis() and then in the while loop ask time_elapsed > (millis() - 15000) ?
    Because what if your setup routine already takes up like 5 seconds? wouldn't you then have only 10 sec left for programming?

    • @datasith
      @datasith  Před 7 lety

      Thanks for the kind words :)
      Yup you're absolutely right, the main reason we used 15sec was to account for cases where *setup()* takes a long time. Still, there could be cases in which it takes longer than 15sec and OTA wouldn't be available at all. It was meant as a quick-n-dirty demo of what's possible, but still using what you suggest would've been better!
      Another note is that the OTA code only runs either when millis() rolls over (after ~49 days) or when the board resets. If we really want to avoid needing physical access to the board, we'd need to tie a GPIO to the RST pin, and establish a way (e.g., web server path) to trigger the board reset.

    • @lordhelmchen100
      @lordhelmchen100 Před 7 lety

      Or couldn't you just write a function which initializes the OTA code for a time of 20 secs and call it based on a web server request? This way you wouldn't waste one GPIO ;-)

    • @datasith
      @datasith  Před 7 lety

      Yup, exactly!

  • @apatel886
    @apatel886 Před 4 lety

    Dear what is different tywe3s vs esp8266 ?

    • @datasith
      @datasith  Před 4 lety

      I think Google is the best resource to answer that question, thanks.

  • @padalavamsiujpnquxgri3475

    How to change the firmware of arduino uno which is connected to nodemcu through I2C or SPI ?
    Will it be possible?
    If possible please share the method.
    Thank you

    • @datasith
      @datasith  Před 4 lety +1

      I'm not sure about I2C/SPI, but you can do it over Serial (Tx/Rx) using the Serial.read() and Serial.write() functions. HTH!

  • @routadu
    @routadu Před 5 lety

    I tried it for a i2c LCD
    but it didn't work
    there was a loop in the display program
    inside the loop function in which you put your blink code
    can you provide me a general code for i2c LCD 20X4 display with the basic OTA
    thanks in advance

    • @datasith
      @datasith  Před 5 lety

      Sorry, with 13K subscribers, it's hard for me to write code for each one of you. Best of luck with the project!

  • @lakshithajayathilake3583

    is that ip address assigned by the wireless router permanent?

  • @belenjimenezg
    @belenjimenezg Před 5 lety

    Hi! I have an ESP32. I'm using the library httpUpdate for OTA Updates. What is the difference between httpUpdate and ArduinoOTA? Thanks

    • @datasith
      @datasith  Před 5 lety

      Outside of a few function calls it should work just the same. Thanks for watching my videos!

  • @Disillusioned_one
    @Disillusioned_one Před 7 lety +1

    You said the esp is not accessible so use ota programming, but then have to press the esp reset to enable a 15 second programming window.

    • @datasith
      @datasith  Před 7 lety +1

      Yup, and we also need to have it connected to the USB port at least once to upload the firmware the first time. If you wanted to use the 15 second after reset method, you can connect a GPIO to the RST pin and have a way to trigger it. This goes beyond the scope of the video so we decided not to include it, nevertheless, good point!

  • @vijaygohil6867
    @vijaygohil6867 Před 4 lety

    Hi! My Serial monitor shows IP address but no Network Port is getting generated like yours @5:40 . What did i do wrong? I only see serial port. Please help!

    • @datasith
      @datasith  Před 4 lety

      Are you on windows? If so, make sure you have Apple Bonjour installed (check out the comments/description section).

  • @insideelectronics2203
    @insideelectronics2203 Před 4 lety

    HI, Can you tell me why i am not getting the at command , but able to upload the program and wifi is also discoverable, at command is not coming any one can help to come out of this frustating issue

    • @datasith
      @datasith  Před 4 lety

      If you upload custom firmware to the ESP8266, you erase the "AT Commands" firmware. You can flash it back if you need to. Just know that Arduino firmware and AT Commands are different things. HTH!

  • @Andreas-rt5sm
    @Andreas-rt5sm Před 6 lety

    In my case, even a empty sketch uses over 50% program storage, what makes it impossible to upload a new sketch after one is running. Was there a change with the arduino surrounding?
    I use the latest AtmelStudio with visualMicro and also tried with the latest Arduino IDE 1.8.5.
    Do you guys have the same problem these days or do you have a idea what I am doing wrong? Thanks a lot.

    • @datasith
      @datasith  Před 6 lety

      Hey, Andreas. Thanks for watching! An empty sketch uses 246063 bytes, which means you have a board with only 512KB of flash (maybe an old ESP-01?). The simplest solution would be to use a different board-the SPI flash can go up to 16MB. Best of luck!

    • @Andreas-rt5sm
      @Andreas-rt5sm Před 6 lety

      I have a ESP-12F but I combile with the Generic ESP8266 mode. So thats why my combiler shows me 51%. But with that in mind id should work with uploading a new sketch. Unfortunaly until now the ESP crashes after uploading a new .bin file. I will work a bit more on it the next days.
      Thanks for your input, this clearyfies a lot to me.

    • @mikeharmon8733
      @mikeharmon8733 Před 4 lety

      @@Andreas-rt5sm are you the "man with the Accent"?
      If so then I've seen your video on increasing memory on ESP-01 and I like it!
      Regardless, your bin file is horking up your ESP, I've seen it before.
      Good luck!

  • @J-K-AG
    @J-K-AG Před 6 lety

    Do you need python for this to run? I tried a few times and I'm getting error something like python cannot be run or something

    • @datasith
      @datasith  Před 6 lety

      Yup, you need Python installed on your computer. The explanation is in the first comment and the description of the video.

  • @omaryanas435949
    @omaryanas435949 Před 7 lety

    Hello Cisco, great video, I have a question, is it true that we can connect a maximum of 4 esp8266 clients to an esp8266 web server??

    • @datasith
      @datasith  Před 7 lety +1

      Hey Anas, thanks for watching; we're glad you liked it!
      In the past that's been true, however, there were plans to increase it. Poking around a bit I found the old thread where it was being discussed:
      github.com/esp8266/Arduino/issues/570
      HTH!

    • @omaryanas435949
      @omaryanas435949 Před 7 lety +1

      Hi, thnx alot, I went through the post, and the conclusion was that connecting more than 4 clients to an esp8266 server is possible, however, the connection will be very slow and inconsistent, but the final solution was to use a router as an AP, which in my case will cause a problem in case the wifi password was changed, because it would mean changing the password in every single client.

  • @harithluqman1926
    @harithluqman1926 Před 7 lety

    thank you for your explain but unfortunately i can not found D1 ESP8266 in my arduino software
    please could you show me what should i do
    thank you so much
    could you send the code for connect the motion sensor with D1esp8266

    • @datasith
      @datasith  Před 7 lety

      Try following our tutorials from the first video:
      czcams.com/video/G6CqvhXpBKM/video.html
      Thanks for watching!

    • @nakulnair497
      @nakulnair497 Před 7 lety

      go to Arduin0/hardware/espressif/esp8266/tools and run the espota script

  • @NoumanAli
    @NoumanAli Před 7 lety

    please do a video on MQTT protocol on multiple networks. i.e. if you have different esp8266 running in different subnets, how do you make them communicate using a single broker.

    • @datasith
      @datasith  Před 7 lety +1

      We're working on it right now, so keep an eye out for it in a couple of weeks!

    • @NoumanAli
      @NoumanAli Před 7 lety

      ACROBOTIC BTW I am working on it right now and for a single network it's working ok. but I'm unable to find a way to apply it in multiple subnets. anyhow, thank you for your concern.
      I'd appreciate if you do a video ASAP. 😊

  • @sekmanimohamedamine1237

    hey brother you can connect the esp in arduino without using PC??? i mean upload the code in arduino cheap and then connect the esp in arduino

    • @datasith
      @datasith  Před 7 lety

      Yep, you can upload the code even if the ESP8266 is not connected to the PC as long as it's connected to your Wi-Fi network!

  • @avon9798
    @avon9798 Před 6 lety

    Can this be done on the web page not in arduino ide?

    • @datasith
      @datasith  Před 6 lety

      The short answer is yes. For example, you could use a web-based IDE like Platform IO (docs.platformio.org/en/latest/platforms/espressif8266.html). If you want to build your own version it'd be difficult, but possible. Thanks for a great question!

  • @rgmtb
    @rgmtb Před 5 lety

    My Arduino IDE is not prompting me for a password if I uncomment out the password section. Everything works fine and I can update the Wemos OTA when no password is required. I'm getting an authentication error so the board is looking for a password, but I'm not getting a prompt to type one. Any ideas?

    • @rgmtb
      @rgmtb Před 5 lety

      OK, I take it back and not it's working. Strange? Another question for ya, with the password on I'm not getting prompted for it if I use the webpage to put the board into update mode. So if I call "setflag" I can upload new code, but I don't get asked for a password? How come?

    • @datasith
      @datasith  Před 5 lety

      Glad it works. I think the password gets stored in your browser's session. Try incognito mode, and after logging in, try closing the old window and opening a new (incognito as well) one.

  • @kendimce9897
    @kendimce9897 Před 7 lety

    Thnak you for your videos.
    I have question.
    how I can change SSID name and Password externally?
    I have a esp hadware and program.
    I want to send it my friends.
    I don't want them see my codes.
    But they must have access and update SSID name and Password.

    • @datasith
      @datasith  Před 7 lety

      Check out the WiFiManager library! Thanks for watching!

  • @tycstahX
    @tycstahX Před 5 lety

    cool

  • @aladino10100
    @aladino10100 Před 6 lety

    While uploading via IDE at the end of compilation I get the following warning: /Users/minimeccanica/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/tools/espota.py -i 192.168.20.25 -p 8266 --auth= -f /var/folders/76/qs6qrnvj51zbm30mmxxkdd1w0000gn/T/arduino_build_856966/trigBoardRelease_12_18_17.ino.bin".
    Then the upload process hangs forever.
    I do have Python installed (2.7), but something is going wrong.
    Thx for any suggestion

    • @datasith
      @datasith  Před 6 lety

      Hmm, weird. We haven't seen this bug before, so it's difficult to debug. Maybe going through the OTA library issues on Github can shed some light?
      github.com/esp8266/Arduino/issues/1107

  • @chakree100
    @chakree100 Před 7 lety

    can we give "ssid" and "password" to esp8266 using a webpage while esp is in AP mode. After rebooting the device it should automatically connect to that particular Access point with the credentials we have given before when esp8266 is on AP mode. i think this is possible with SPIFFS!

    • @datasith
      @datasith  Před 7 lety

      Yup, and you don't even need to write your own, simply use WiFi Manager:
      hackaday.com/2017/03/18/configure-esp8266-wifi-with-wifimanager/

    • @yannickmckenzie6299
      @yannickmckenzie6299 Před 7 lety

      ACROBOTIC

  • @ljl451
    @ljl451 Před 6 lety

    What's the problem with leaving ArduinoOTA.handle() always in the loop without using the ota_flag variable?
    ArduinoOTA.handle() is a small overhead method designed to be used in that way so that OTA is always available without the need to reboot the board.

    • @datasith
      @datasith  Před 6 lety

      Using the method increases the overhead compared to using the flag, small as it may be such difference. Thanks for bringing this up!

    • @ljl451
      @ljl451 Před 6 lety

      The overhead introduced by ArduinoOTA.handle() is just an IF statement.
      The same overhead that you introduced with your ota_flag.
      void ArduinoOTAClass::handle() {
      if (_state == OTA_RUNUPDATE) {
      _runUpdate();
      _state = OTA_IDLE;
      }
      }

    • @datasith
      @datasith  Před 6 lety

      Hmm, it seems you didn't really have a question, so we wonder what was the point of original comment. In any case, we can get into compiler specifics, but we choose to defer the discussion for a later time.

    • @ljl451
      @ljl451 Před 6 lety

      My comment was a proposal for discussion and I thank you for your reply.

    • @dariuszwalczyk4521
      @dariuszwalczyk4521 Před 6 lety

      I use a similar method just to restrict the possibility of programming the board OTA to first 30 seconds after restarting the board without a need to use authentication. I thought that was the idea behind this video. Thanks for the video.

  • @danielhofmann233
    @danielhofmann233 Před 6 lety

    Short Question would this also work with an esp01

    • @datasith
      @datasith  Před 6 lety +1

      Yes it will, Daniel. Thanks for watching!

    • @mikeharmon8733
      @mikeharmon8733 Před 4 lety

      I have done this with Arduino IDE in Win 10.
      It works as in the tutorial here.
      Many viewers do not realize that the libraries allow the code to be transportable between devices.
      Also be aware that serial monitoring takes a lot of resources; CPU and Memory.
      I use conditional compilation to only use the print statements during code development.

  • @manliomalavolti9640
    @manliomalavolti9640 Před 6 lety

    @roy douce: have a look at Andreas Spiess #110, may be he had an original idea to overcome accessibility problem

    • @datasith
      @datasith  Před 4 lety

      Thanks so much for sharing!

  • @AbhishekSingh-fc2rx
    @AbhishekSingh-fc2rx Před 4 lety

    sir, it is not working in Ubuntu showing no answer after network port is formed

    • @datasith
      @datasith  Před 4 lety

      make sure you have mdns installed.

  • @user-sr6io6bz4h
    @user-sr6io6bz4h Před 5 lety

    i success upload code in my esp module by ota. But, problem is i want to control modules which are attached in megaboard by using ota uploaded code. sorry my english is so bad. really i want to know :(

    • @datasith
      @datasith  Před 5 lety

      No worries about the english. you can connect the ESP and Megaboard using TX/RX and transfer the data using Serial.write()/Serial.read().

    • @user-sr6io6bz4h
      @user-sr6io6bz4h Před 5 lety

      @@datasith can i transfer whole Code in ESP module to Megaboard ? Thanks for asking my question

  • @Jim-du9tk
    @Jim-du9tk Před 6 lety

    Can the NodeMCU be programmed with MATLAB?

    • @datasith
      @datasith  Před 6 lety

      Not directly programmed, but you can interact with it doing things like receiving/plotting data, and also controlling different components you plug to it. What did you have in mind?

    • @datasith
      @datasith  Před 6 lety

      Not directly programmed, but you can interact with it doing things like receiving/plotting data, and also controlling different components you plug to it. What did you have in mind?

  • @billferner6741
    @billferner6741 Před 2 lety

    Nice! But, what to do when the new board (with IP) is not showing up? === Problem solved!

  • @kashyapmehta3192
    @kashyapmehta3192 Před 5 lety

    Hey I did exactly as you said but still I am unable to find OTA in Port. Presently I am using Windows 10 Intel i5, I tried to restart all but nothing worked. In serial port I am able to get IP address and I am able to turn on /off D1 pin using blynk application. Please help to resolve this.

  • @BharatMohanty
    @BharatMohanty Před 5 lety

    Will it work on Linux ?

  • @mrteausaable
    @mrteausaable Před 5 lety

    Hello, please help. The network ports does not show up the arduino IP. Only COM ports. What did I do wrong? I update the latest Arduino 1.8.8 version.

    • @datasith
      @datasith  Před 5 lety

      Try restarting the app. What operating system are you using?

    • @mrteausaable
      @mrteausaable Před 5 lety +1

      @@datasith Restart many times. Never seem to works since I install the app on Windows 10 professional on Intel PC i-7.

    • @datasith
      @datasith  Před 5 lety

      Ok, there are a few things that could be preventing the port from showing up. In the interest of thoroughness, please attempt the different suggestions on this thread, but using your current version of the IDE (1.8.8) and skipping the step of re-installing it: github.com/esp8266/Arduino/issues/2415
      It’d be great if you could post the results, once you’ve figured out what was the cause. Also, ping me again if the issue remains! HTH.

    • @datasith
      @datasith  Před 5 lety

      Any luck?

    • @mrteausaable
      @mrteausaable Před 5 lety

      I am using Windows 10 Prof. I install python as needed. Still ports does not show up. I can ping the board just fine. What did I miss?

  • @mrlease
    @mrlease Před 7 lety

    When I go to the serial monitor and press reset, this is what I get:
    ⸮txiR,h⸮⸮@>h⸮⸮⸮⸮⸮
    Suggestions on what to do?
    Also, there are no wifi ports showing up, only COM4.

    • @datasith
      @datasith  Před 7 lety

      It's fine to get gibberish after reset (it is due to a different baud rate issue). See Pascal Lacsap's comment or read the description of the video for how to get the WiFi port to show up on Windows!

  • @harveyschneider9644
    @harveyschneider9644 Před 5 lety

    If the upload fails at 0% the firewall on your computer is blocking the ESP from downloading the file.

    • @datasith
      @datasith  Před 5 lety

      Thanks for sharing, Harvey!

  • @pavankumar693
    @pavankumar693 Před 6 lety

    Cisco when I dumped the code into the board and I typed the password but it is not uploading please check it once!

    • @datasith
      @datasith  Před 6 lety

      Is the board listed as one of the options in the Tools menu?

  • @ablebabu
    @ablebabu Před 4 lety

    After uploading the code the port is not in the tool

    • @datasith
      @datasith  Před 4 lety

      make sure you install apple bonjour (see pinned comment). hth!

  • @opioasde
    @opioasde Před 6 lety

    How to enable ota port in ide?

    • @datasith
      @datasith  Před 6 lety

      By following this video, also look at the pinned comment and video description. Thanks for watching.

    • @opioasde
      @opioasde Před 6 lety

      ACROBOTIC im sorry for the confusion i meant the ota programming/uploading method

  • @mukil_saravanan
    @mukil_saravanan Před 4 lety

    "Corona" in his shirt

  • @andrewmosqueda994
    @andrewmosqueda994 Před 5 lety

    I used the exact code with the same board and get this error, can anyone help?
    ets Jan 8 2013,rst cause:2, boot mode:(3,7)
    load 0x4010f000, len 1384, room 16
    tail 8
    chksum 0x2d
    csum 0x2d
    vbb28d4a3
    ~ld
    Booting
    Connection Failed! Rebooting...

    • @datasith
      @datasith  Před 5 lety

      > I used the exact code with the same board
      Assuming this is a factually correct statement, then double-check your power supply. Otherwise, make sure that you haven't changed anything in the loop() function.

    • @andrewmosqueda994
      @andrewmosqueda994 Před 5 lety

      @@datasith Thank you for the quick response. I am using the laptop, plus I bought the same board. Here is what I have in the loop function:
      bool ota_flag = true;
      uint16_t time_elapsed = 0;
      void loop() {
      if(ota_flag)
      {
      while(time_elapsed < 15000)
      {
      ArduinoOTA.handle();
      time_elapsed = millis();
      delay(10);
      }
      ota_flag = false;
      }
      }
      and it is showing this in the monitor:
      Connection Failed! Rebooting...
      ets Jan 8 2013,rst cause:2, boot mode:(1,7)
      ets Jan 8 2013,rst cause:4, boot mode:(1,7)
      wdt reset
      Appreciate your help!

  • @Akaki85
    @Akaki85 Před 5 lety

    Thanks for your tutorial, but you forgot to mention that Python is also needed to be installed on your PC.

    • @datasith
      @datasith  Před 5 lety +1

      Thanks for the tip. It's the perils from only doing the video on Mac OSX. Thanks for watching!

    • @paintlen
      @paintlen Před 3 lety

      @@datasith If I'm on mac I should be fine then?

  • @wishwaweerasinghe
    @wishwaweerasinghe Před 6 lety

    Thank you very much for the video. It is a great demonstration. If I have a "ESP8266 Esp-01 Serial Wireless Wifi Transceiver Module" and an "Arduino Mega board", is there a way to connect them together so that I can upload new sketches to the Arduino board OTA? I bought this one: www.amazon.com/gp/product/B01EA3UJJ4/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
    But they don't provide much info on how this could be connected to Arduino board so that I can upload new sketches over the air. Appreciate if you could point to some resource. Thank you!

    • @datasith
      @datasith  Před 6 lety

      You could but it's not trivial. You can wire the UART ports together (Tx and Rx), and have the ESP-01 write out the uploaded sketch to the Arduino Mega using Serial.write() (doc: www.arduino.cc/en/Serial/Write). Best of luck!

  • @jodrafting
    @jodrafting Před 2 lety

    doesn't work i get a bunch of java errors

  • @mrrcomp
    @mrrcomp Před 6 lety

    Hi Thanks for your videos .. I followed the process and upload via usb . I see in the ide the new ESP port but when I try to do the ota upload i get an error in the IDE saying "Cannot run Python.exe" .
    What have i missed ??
    Regards
    Meir

    • @datasith
      @datasith  Před 6 lety +1

      Thanks for the kind words, Meir. On Windows you need to install Python. And, if it's already installed, make sure it's on the Windows path!
      www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/
      Thanks for watching our vids!

    • @mrrcomp
      @mrrcomp Před 6 lety

      ACROBOTIC: thanks I installed python 2.7 as I saw listed in other comments. One last question how can I ota with the password without pressing the reset as you showed. In final setup the esp will be installed in locations that will be difficult to access.

  • @ramkishorsuryawanshi3000

    How to program it without resetting

    • @HamzaHajeir
      @HamzaHajeir Před 5 lety

      you can set a button to do that, changing the condition (ota_flag) to (digitalRead(buttonPin))
      or combining them together, as : (ota_flag || digitalRead(buttonPin))

    • @datasith
      @datasith  Před 4 lety

      Did you see my latest video on OTA, I show a different way where you don't need a button. I set a route that you access to reset the board.

  • @timeoschmidt2113
    @timeoschmidt2113 Před 7 lety +2

    I love your videos. Show things others don't show. Not too long, but packed with information! Keep it up.
    Everyone who wants to get electronics - www.acrobotic.com - Just look through the site and you find inspiration for projects. Definetly your supplier for hobby electronics!

    • @datasith
      @datasith  Před 7 lety

      Thanks Timeo for the kind words! We also appreciate the shoutout to our site :) We'll keep working hard to make DIY electronics accessible and fun for anyone!

  • @mikelemon5109
    @mikelemon5109 Před 7 lety

    This OTA is useless and uncomfortable guys need to start developing OTA like on the roborio from FIRST

    • @datasith
      @datasith  Před 7 lety

      Yeah, well, that's just, like, your opinion, man 😂
      More seriously, we agree that OTA is not very robust at the moment on the ESP8266, so if this is a critical feature for your project perhaps other boards are the way to go!

  • @Therysin
    @Therysin Před 7 lety

    Great video, can you guys do a video with a custom web server and using websockets?

    • @datasith
      @datasith  Před 7 lety

      Yup, will do! Thanks for the kind comment, we appreciate you watching our videos!