Programming ESP-12E / ESP-12F / NodeMCU Over Wi-Fi

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2021
  • In this video, I will explain how to program an ESP8266 module over Wi-Fi using the Arduino IDE.
    Code:
    circuitjournal.com/programmin...
    Code with a fallback access point:
    circuitjournal.com/programmin...
    This video is a follow-up to my previous ESP tutorial:
    • Programming ESP-12E / ...
    Buy from Amazon:
    ESP-12F Wi-Fi Module: amzn.to/3xW8LRl
    NodeMcu: amzn.to/3x8ssno
    USB to Serial Adapter: amzn.to/3xbGjsU
    Esp-12E/Esp-12F Programmer Module: amzn.to/32p0ERU
    Witty Cloud Development Board: amzn.to/3BJA9Gj
    (As an Amazon Associate I earn from qualifying purchases)
    Buy from Aliexpress:
    ESP-12F Wi-Fi Module: s.click.aliexpress.com/e/_Amz81r
    NodeMcu: s.click.aliexpress.com/e/_APrxiz
    USB to Serial Adapter: s.click.aliexpress.com/e/_A1HnkZ
    Esp-12E/Esp-12F Programmer Module: s.click.aliexpress.com/e/_AabJHN
    Witty Cloud Development Board: s.click.aliexpress.com/e/_AtV5K9
    Disclosure: Bear in mind that some of the links in this post are affiliate links and if you go through them to make a purchase I will earn a commission. Keep in mind that I link these companies and their products because of their quality and not because of the commission I receive from your purchases. The decision is yours, and whether or not you decide to buy something is completely up to you.
    Music from TH-cam audio library.
    Corbyn Kites - Shadowing
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 51

  • @antikasoundengineering4222
    @antikasoundengineering4222 2 ปีที่แล้ว +3

    Thank you for the knowledge, the method of delivery is clear and easy to understand. I'm from Indonesia, Jakarta, Bali

  • @thisoldjeepcj5
    @thisoldjeepcj5 2 หลายเดือนก่อน

    Very good video! Hope to see more from you. Thanks.

  • @dbuezas
    @dbuezas 3 ปีที่แล้ว +4

    Really thorough and clear! Thanks Indrek!

    • @marceljaxson3481
      @marceljaxson3481 2 ปีที่แล้ว

      you all prolly dont give a damn but does anyone know of a way to log back into an instagram account?
      I stupidly lost the password. I would appreciate any help you can give me.

    • @fernandojoseph352
      @fernandojoseph352 2 ปีที่แล้ว

      @Marcel Jaxson instablaster =)

    • @marceljaxson3481
      @marceljaxson3481 2 ปีที่แล้ว

      @Fernando Joseph Thanks for your reply. I got to the site on google and im in the hacking process now.
      Looks like it's gonna take quite some time so I will reply here later when my account password hopefully is recovered.

    • @marceljaxson3481
      @marceljaxson3481 2 ปีที่แล้ว

      @Fernando Joseph It did the trick and I now got access to my account again. Im so happy!
      Thank you so much you saved my account !

    • @fernandojoseph352
      @fernandojoseph352 2 ปีที่แล้ว

      @Marcel Jaxson happy to help :D

  • @PedroFernandez-cv8ie
    @PedroFernandez-cv8ie 3 ปีที่แล้ว +3

    You are doing a great quality content! thnx. keep the good work! :)

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว

      Thanks!

  • @amitmargalit4551
    @amitmargalit4551 ปีที่แล้ว

    Love your videos!

  • @paulgrayford9296
    @paulgrayford9296 2 ปีที่แล้ว +1

    Hey Indrek, great video! Are you able to program the module over Wi-Fi without setting GPIO 0 to ground to set in programming mode (after programming once of course)? Thank you!

  • @ChrisHalden007
    @ChrisHalden007 3 ปีที่แล้ว

    Great video. Thanks

  • @danielhagos6080
    @danielhagos6080 2 ปีที่แล้ว

    thex for the video. realy saved me

  • @jovenianomadrid9565
    @jovenianomadrid9565 2 ปีที่แล้ว

    Thanks for your video my friend

  • @1stamyk
    @1stamyk 2 ปีที่แล้ว +3

    Nice video! I did everything successfully (no errors, led blinking) by videotime 4:28, also sure I use same WIFI but still can not see new "esp" port in menu. Would you have a hint what else can cause the problem?

  • @nelsonhubahib4859
    @nelsonhubahib4859 3 ปีที่แล้ว

    Can show how to program to watchpower to be used to solar inverter.thx

  • @larswilting8862
    @larswilting8862 3 ปีที่แล้ว

    Hey, thanks for the video. Do you know a way to use OTA between two different subnets?

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว +1

      As far as I know Arduino IDE sees the device only if it is in the same subnet.
      Maybe you can do something clever with router configuration, but I don't know much about that.

  • @supermadson1
    @supermadson1 3 ปีที่แล้ว +1

    Hey, brilliant video! I'm working on a project and was wondering; once the code is uploaded and the esp disconnected from the computer, if I then connected a battery to power the esp, would it still retain the code and be able to receive sketches from the computer without a physical link?

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว

      Hey! Yes, as long as your computer is connected to the same Wi-fi network as the ESP module.

    • @supermadson1
      @supermadson1 3 ปีที่แล้ว

      @@IndrekL Thanks! My bench inspection went really smoothly thanks to your content

  • @mouseminer2978
    @mouseminer2978 2 ปีที่แล้ว

    Can you make a video about making a serial LCD clock using ESP 8266 E and a Garage Opener. Thanks in advance

  • @thisoldjeepcj5
    @thisoldjeepcj5 2 หลายเดือนก่อน

    I know it's been a while since you made this video, could you explain how to add static IP, gateway, and subnet mask to web page and eeprom save as these are not char?
    Thanks.

  • @deroskar
    @deroskar 3 ปีที่แล้ว

    Nice Video. Super understandable and found it easy to follow along.
    Ist it meant to put the code you want to program under the ArduinoOTA.handle(); and server.handleClient(); funktion in the second code?
    I put the digitalWrite(2, millis() % 1000 > 500 ? HIGH : LOW); blink-code in there but the LED did nothing.
    thx

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว

      Hey!
      Yes you should be able to put you code under the "handle" methods.
      Are you trying to flash the on-the-board LED? Maybe try to use LED_BUILTIN instead of 2. I am not sure but the LED_BUILTIN might not be number 2.

  • @ershithvarans7029
    @ershithvarans7029 3 หลายเดือนก่อน

    iam planning to file (IPR) for my own home automation project and also , I had used arduino ota libraries will my IPR will be cancel after serval test i would commercial the product

  • @ekfariant3159
    @ekfariant3159 11 หลายเดือนก่อน

    Can attiny85 programmed with cp2102?

  • @mygpsforcegpsforce2174
    @mygpsforcegpsforce2174 9 หลายเดือนก่อน

    Buena opción

  • @cassie5130
    @cassie5130 3 ปีที่แล้ว

    Unrelated to this video, Your liveOV7670 project. I was wondering if it was possible to add a button to take pictures, videos and save to a SD card. If so, how would I do this.

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว

      I recently learned that it is possible to read data back from the screen. So theoretically it is possible to take image from the screen and save it to the SD card. SD card it too slow to save image to it directly from the camera. I am planning to do a project like this in the future. I will upload a video about it when I am ready.

  • @Jrod4
    @Jrod4 3 ปีที่แล้ว

    Unrelated to this video - do you happen to know where i could find an inexpensive loadcell/strain gauge that is high temp resistant?

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว

      Hey! Unfortunatelly, no.

  • @rizwansaeed91
    @rizwansaeed91 3 ปีที่แล้ว

    Hi, that is great. and Dear can we upload code over the wifi only once or more than 1.

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว

      If the code you upload over the wifi also supports uploading over wifi then you can upload again. But when you upload code that does not have the OTA library then you can't do any more uploads.

  • @Aashutoshkumar-xu1zy
    @Aashutoshkumar-xu1zy ปีที่แล้ว

    Sir please make a video on How to program ESP 12E/12F/NodeMCU through arduino board

  • @domingomikefritzb.1467
    @domingomikefritzb.1467 3 ปีที่แล้ว

    can you make a break horn melody, like denso 2 tone? japanese sound :)

  • @elless317
    @elless317 11 หลายเดือนก่อน

    I got: "error no answer" at the end of uploading process. What does it mean?

  • @quinman16
    @quinman16 2 ปีที่แล้ว

    hay man do I need to write this code to the ESP8266 WIFI shield or to the Arduino board its self, and
    is it possible to make a web controller that I can reprogram over the WIFI connection and be able to change the WIFI name and password.

    • @IndrekL
      @IndrekL  2 ปีที่แล้ว

      Hey! This is programming the ESP8266 module itself without an Arduino board.
      You can programm the ESP8266 module directly using the Arduino IDE.

  • @user-em3jj4xp9g
    @user-em3jj4xp9g ปีที่แล้ว +1

    Hello. Thank you for your helpful videos.
    I use Arduino 1.8.13 and the board version 2.2.0.
    The OTA example (with my ssid and password) creates a network port and is flashed through this port when working with Witty Cloud, ESP-12 and ESP-07S,
    BUT IT DOES NOT WORK with ESP-07 (with a ceramic antenna and a connector for an external antenna).
    The port appears, but when flashing through it, a message is displayed
    No response from device
    Please help me.

  • @pedrorivarepetti
    @pedrorivarepetti 2 ปีที่แล้ว

    Hi, using some other similar code I can save now wifi settings on my module so i think it is something with th e code. If are you interested on what worked I am willing to colabborate with you

  • @dindigulautomationwaterpro5145
    @dindigulautomationwaterpro5145 3 ปีที่แล้ว

    Hi. Can u please write a code to me for Nodemcu Esp12e Module thank-you. ?
    1. On D2 - D2, D7 and D8 off after 30 seconds
    2. On D3 - D3, D7 and D8 off after 30 seconds.
    3. On D4 - D4, D7 and D8 off after 30 seconds.
    4. On D5 - D5, D7 and D8 off after 30 seconds.

  • @antoniomarijanovic1559
    @antoniomarijanovic1559 3 ปีที่แล้ว +2

    First

  • @yazani19
    @yazani19 3 ปีที่แล้ว +1

    Hi, that is great, but can you tell me,
    What is "?" here !!!!
    digitalWrite(LED_BUILTIN, millis() %1000 >500 ? HIGH:LOW);
    Thax

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว +2

      Hey!
      It is an "inline if". If the condition before the "?" is true then the first value is used, if false then the one after the ":".
      For example this:
      int a = some_condition ? 111 : 222;
      is the same as:
      int a;
      if (some_condition) {
      a = 111;
      } else {
      a = 222;
      }

    • @IndrekL
      @IndrekL  3 ปีที่แล้ว +2

      The above "if" could also be written as:
      if (millis() %1000 >500) {
      digitalWrite(LED_BUILTIN, HIGH);
      } else {
      digitalWrite(LED_BUILTIN, LOW);
      }

  • @Viraldanceworlds
    @Viraldanceworlds ปีที่แล้ว

    no its not i even went and bought a board with the links and it still dont work

  • @3dmodeluzb3
    @3dmodeluzb3 2 ปีที่แล้ว +1

    achayni ami