Arduino Mega 2560 with ESP8266 (ESP-01) Wifi, AT Commands and Blynk

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

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

  • @MrMickjbriggs
    @MrMickjbriggs 6 ปีที่แล้ว +30

    Possibly the best tutorial on TH-cam , thank you.

    • @finnbonnen4910
      @finnbonnen4910 4 ปีที่แล้ว

      True I watched so many videos and that’s the only one wich worked

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

    Definitely the best tutorial on using ESP to connect to MEGA as WiFi shield! I'm honestly very doubtful of the other channels as they just show you the steps and wouldn't let you know if their method works. I followed your steps and get it connected to Blynk!
    I used a different firmware and the alternative way of flashing showed, and it worked either.
    Helped me a lot + all the time saving and headcracking going through info of flashing etc, cheers for more videos like this.

  • @crocellian2972
    @crocellian2972 7 ปีที่แล้ว +2

    You did very well. Please do more. You’re complete, clear and modest. None of that is common on TH-cam. You have another subscriber.

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

    I have been struggling on this for days and couldn't find videos that explained it as thoroughly as you did/I needed. Thanks so so very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @MrKartos1
    @MrKartos1 4 ปีที่แล้ว +1

    Your method worked for me, I didn't use a TTL to USB or any kind of adapter.
    Instead I connected to Arduino Uno - RX->RX, TX->TX, EN->3.3V, VCC->3.3V, GND->Ground, GPIO-0->Ground, Arduino RESET->Ground (to bypass the ATMEGA, do this AFTER the Arduino is powered on). For power source I used the Arduino's 5V pin with 2 diodes for their voltage drop instead of a resistor voltage divider, for some reason it didn't work for (current probably or bad connection on my side).
    Also, very important! the moment I started flashing the firmware, I put the ESP-01's RST pin to ground in and out quickly and the GPIO-0 to ground only after I connected power to the ESP.
    Thanks! Turning an LED on and off with the Arduino is fun, doing it over WiFi got me stoked!
    Along with the LED I connected DC motors to L293D with their own power source (I had trouble connecting it to Arduino's ground / 5V) and it worked perfect with the Blynk Slider widget!
    Happy hacking!

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

      Doesn't work on mine, The downloading process did not start

  • @kedarprabhudessai
    @kedarprabhudessai 6 ปีที่แล้ว +9

    Nice video.. from those two versions 8M and 32M stands for modules flash storage esp 01 comes with 8Mbits storage that is 1MBytes and esp12e comes with 32Mbits that is 4MBytes.so you need to choose the right one for your module. By change u chose the right one and it worked.☺️👍

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Thanks for the info.

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

      Great

  • @gustavstreicher4867
    @gustavstreicher4867 5 ปีที่แล้ว +2

    12:14 The 8M stands for 8Mbit, which is equivalent to 1MB (Megabyte). 32M stands for 32Mbit, which is equivalent to 4MB (Megabyte). This refers to the flash memory size of the ESP module. Some have 1MB, some have 4MB. I believe the ESP8266 (ESP-01) that you have has 1MB of flash memory, so the 8M flash version should be appropriate.
    Side note: If you are working on a Linux distribution, you can use esptool to flash the firmware onto the ESP module.

  • @abib2604
    @abib2604 4 ปีที่แล้ว +1

    Hi, I Have question
    I used WemosMEGA, actually same with Arduino Mega + ESP8266
    I have followed step by step, I have probelem on last step, after uploading code and Serial monitor "ESP Not Responding"
    What's wrong?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว +1

      "ESP is not responding" is a common problem. I show some troubleshooting steps, starting from time 34_40 in this video th-cam.com/video/ghylNSjYdMs/w-d-xo.html

    • @abib2604
      @abib2604 4 ปีที่แล้ว +1

      @@duntyou8 thank for information. i have watched the video. I believe no problem on RX TX, 3,3V, GND connected because I use Wemos MEGA, no cabling over there, only change the socket dip.
      in the step after flash fimware, I try to connect esp8266 and accesspoint with AT + CWJAP. and it worked. and have also tried to follow the example to turn on LEDs via the web. it worked.
      but if I try blynk, it's always ESP Not Responding.
      I doubt use version AT Command fimware. On WemosMega use ESP8266EX,
      In this case, which version of firmware do I have to use?
      and what is the difference between Ai hardware and ESP8266_NONOS_SDK?
      I have tried everything, but still ESP NOT responding.
      Thank you

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      Hi, I think what you are doing is outside of my experience, so I cannot help. If you are trying to get Blynk to work with Wemos MEGA, then I suggest you go to the Blynk website and search the forum: community.blynk.cc/t/wemos-mega-wifi-r3-atmega2560-esp8266/19626/2 From what I can see, other people are using Wemos MEGA. Someone said you have to use Serial3 instead of Serial1 on the Wemos Mega.

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว +1

      Hi, I think what you are doing is outside of my experience, so I cannot help. If you are trying to get Blynk to work with Wemos MEGA, then I suggest you go to the Blynk website and search the forum: community.blynk.cc/t/wemos-mega-wifi-r3-atmega2560-esp8266/19626/2 From what I can see, other people are using Wemos MEGA. Someone said you have to use Serial3 instead of Serial1 on the Wemos Mega.

    • @abib2604
      @abib2604 4 ปีที่แล้ว

      Thank you.
      finally it worked
      I use this code for blynk + wemosMega + Example pushdata
      #define BLYNK_PRINT Serial
      #include
      #include
      char auth[] = "vXJswotHJM26Un0jS43Du_-Iw82OG1C9";
      char ssid[] = "ASUS_X00RD";
      char pass[] = "jancok456";
      #define EspSerial Serial3
      #define ESP8266_BAUD 115200
      ESP8266 wifi(&EspSerial);
      void setup()
      {
      Serial.begin(115200);
      Serial3.begin(115200);
      pinMode(13,OUTPUT);
      delay(10);
      EspSerial.begin(ESP8266_BAUD);
      delay(10);
      Blynk.begin(auth, wifi, ssid, pass);
      }
      void loop()
      {
      Blynk.run();
      if ( Serial3.available() ) { Serial.write( Serial3.read() ); }
      if ( Serial.available() ) { Serial3.write( Serial.read() ); }
      }
      Hope this helps someone else, in trouble like me

  • @LillySchwartz
    @LillySchwartz 5 ปีที่แล้ว

    This tutorial is so well done! I was migrating a project from a nano to a mega and just couldn't get the serial connection to work. One look at your sketch and it was sorted, perfect! Two things I'd like to mention: First, you made an effort to conceal your wifi login in the video but neglected to remove it from the sketch you shared! Second: I found the AT command firmware way too glitchy and the connection kept going down especially after trying to send certain packets. I sorted this by using the micropython firmware. I think I had to rebuild the firmware in docker to get it to talk to the Arduino - baudrate -, but my connection is now rocksolid. I also let the ESP do some of the lifting and just trigger python functions via serial. So much more reliable and intuitive!

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      Cool. So you only changed the firmware on the ESP module, and there were no changes to the Arduino code?

    • @LillySchwartz
      @LillySchwartz 5 ปีที่แล้ว

      ​@@duntyou8 Well, I had to change the commands being sent to the ESP. Different application. I had to send an XOR encrypted packet to a specific IP address in the network and whenever I did that with the AT firmware the first one would go through but the next one would reset the network connection. The encryption had to happen on the Arduino which is a pain in C. With python networking functions are super easy to build, so instead of building the packet on the Arduino I used the ESP for that and just sent the plain string over to the ESP via serial. Works great!

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว +1

      Whoa… totally over my head :)
      But still, I’m glad that my video helped in a tiny way!

  • @AlexeyLitvinov
    @AlexeyLitvinov 5 ปีที่แล้ว +15

    thanx! you can flash ESP using arduino, w/o flasher. Need just to connectc txtx, rx and on Arduino connect RST to GND.

  • @neurorad826
    @neurorad826 6 ปีที่แล้ว

    THE BEST AND CLEAR TUTORIAL ON THIS TOPIC! I GET LOST WITH INCORRECT AT Firware links founded in variuois Internet sites but the one you linked in perfect! About the version of the firmware (8M) or (32M) depends on the size of your ESP flash memory. I have a 8M and work nice with the AT 8M Firmare

  • @dompower500
    @dompower500 5 ปีที่แล้ว +3

    Excellent video tutorial with complete clear and beautiful explanation. One of the best tutorial I have ever seen on youtube. Keep it up sir.

  • @lafkihkhalid3473
    @lafkihkhalid3473 6 ปีที่แล้ว +2

    Great tutorial Man ! spending 45 minutes to explain good ideas with a very beautiful way that means you are awesome.Thanks a lot

  • @amosgarcia45
    @amosgarcia45 5 ปีที่แล้ว +1

    There are no words to describe how much you have helped me, thank you very much

  • @garethwilhelm5054
    @garethwilhelm5054 5 ปีที่แล้ว

    Please help!! I manage to get to the step where I successfully flash the firmware, but when I reconnect and open serial monitor it stops at "ready" and doesn't say "WIFI connected" or "WIFI got IP" (refer to 20:41 in the video). Thanks in advance

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      Hi, don't worry about getting the "WIFI connected" or "Wifi got IP" after flashing. Continue with the tutorial even though you did not get those two messages. Several people have asked me about this issue, so I explain in my followup video, check at time stamp 58 seconds ... th-cam.com/video/knYVIo8kNkA/w-d-xo.html&

  • @arunaviswanathan2955
    @arunaviswanathan2955 5 ปีที่แล้ว

    a very well explained video - thanks a lot.... i was really frustrated in search for a proper video and got a big relief in seeing this video. it worked very well.

  • @kamranmu
    @kamranmu 6 ปีที่แล้ว

    The best tutorial about Blynk ESP8266 and Arduino

  • @wolfgangeuen9799
    @wolfgangeuen9799 5 ปีที่แล้ว

    Nathan, your presentation is just perfect! Thanks a lot.

  • @ico450
    @ico450 5 ปีที่แล้ว +7

    Sir u deserve a statue! U saved me from madness with my esp8266.. A BIG THANK YOU!

  • @3LITEDJ
    @3LITEDJ 5 ปีที่แล้ว

    Thank you so much for this. I spent days trying to get this to work and your tutorial is the only one that managed to do so!!

  • @mehulvarshney6708
    @mehulvarshney6708 5 ปีที่แล้ว

    This is the most underrated TH-cam Channel!

  • @PriyanshuKumar-zd1lq
    @PriyanshuKumar-zd1lq 6 ปีที่แล้ว

    One of the best videos on this topic.Cleared all my doubts.

  • @minoruhaginoya2249
    @minoruhaginoya2249 6 ปีที่แล้ว +3

    Wow, thank you so much for such a detailed tutorial!! You're awesome!

  • @rssicr1tical
    @rssicr1tical 4 หลายเดือนก่อน

    The firmware version you need depends on the flash memory size. You can find that out with the command "AT+RST". For me it output "SPI Flash Size & Map: 8Mbit(512KB+512KB)", therefore I need the 8M version.

  • @LoverOfToast43
    @LoverOfToast43 4 ปีที่แล้ว

    A question I have is why do you need the 5v to 3.3v adapter for the second circuit? Can't you use the breakout board for the ESP-01 along with your external 3.3v power supply that you used in the first circuit?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว +1

      Regarding the 3.3V power supply, when I received the power supply in the mail, it came with a female power jack connector… probably identical to yours. I cut the jack off, stripped the wires and added the pins that you see in the video. I do not remember where I got the pins from, but I probably just pulled them off of some jumper wires that were in my tool kit. I suggest you do the same with your 3.3V supply. When flashing, I sometimes get the “failed to connect” message. It is usually a setup problem. See this video, at time 4:00 : th-cam.com/video/knYVIo8kNkA/w-d-xo.html
      You are right. You can use the breakout board and the 3.3V supply for flashing and for the Blynk project. Functionally, they work the same. The 5-3.3V adapter board is a little more convenient for projects, but it cannot be used for flashing because it does not provide access to all the pins on the ESP-01.

    • @LoverOfToast43
      @LoverOfToast43 4 ปีที่แล้ว

      @@duntyou8 Thank you for the prompt and informative response

  • @Chef_engineer...
    @Chef_engineer... 2 ปีที่แล้ว

    Hello sir I followed these procedures but in my serial monitor [1527]ESP is not responding. Like this coming please give me a solution for this error sir 🙏

  • @zarahmoran4699
    @zarahmoran4699 6 ปีที่แล้ว

    Most useful video i have ever watched. Much thanks for sharing the video sir! Survived my college thesis through this 😊

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Wow. Congratulations. Glad I could help.

  • @punithreddy9223
    @punithreddy9223 5 ปีที่แล้ว +1

    i am getting [1609] ESP is not responding
    error? could u have any idea?

    • @nathanchurch419
      @nathanchurch419 5 ปีที่แล้ว

      Hi, The video shows a step-by-step process to make the project work. Make sure you have completed all of the steps up to the point that you see the error. Then let me know at which point (or time) in the video that you see the error. Are you using an Arduino Mega? If not, what board are you using?

    • @nathanchurch419
      @nathanchurch419 5 ปีที่แล้ว

      A lot of people see this error. In fact, so many people see it that I made a new video that explains some of the causes. Starting from time 34:32, watch this video... th-cam.com/video/ghylNSjYdMs/w-d-xo.html .

    • @punithreddy9223
      @punithreddy9223 5 ปีที่แล้ว

      I am using Arduino mega and I am getting that error at the end when the we try to check at last ping is also not showing up

    • @nathanchurch419
      @nathanchurch419 5 ปีที่แล้ว

      Please find the spot in the video where the first error occurs, then give me the time of the video. With that information, I can help. Do not worry about the ping problem yet.

  • @joshuavarela5647
    @joshuavarela5647 5 ปีที่แล้ว

    i dont have the "#include " ive included the library getting an error

  • @SupremeNoble
    @SupremeNoble 5 ปีที่แล้ว

    how did u get it to auto connect? like at 20:47 it says
    "WIFI CONNECTED
    WIFI GOT IP"
    I'd like to know how u do that :)

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      When you first flash the ESP module and set up the circuit, you will not see "wifi connected". In the video, my ESP saved its wifi settings. I explain this at 1:00 in my follow up video: th-cam.com/video/knYVIo8kNkA/w-d-xo.html

    • @SupremeNoble
      @SupremeNoble 5 ปีที่แล้ว

      @@duntyou8 Yea thanks man, just watched that one! Honestly this is the first time I got my ESP8266 to do anything, this is the best tutorial it's awesome. I actually came by this video awhile ago but I didn't have that converter and I was using an arduino uno so I didn't think I could do it but just learned I could use my uno to flash my ESP and now this tutorial is just amazing :)

  • @greenspanfx
    @greenspanfx 5 ปีที่แล้ว

    Hi Nathan, does it happen to work with newer versions of the firmware? I currently have this one T version:1.3/0.0(Jul 14 2016 18:54:01)
    SDK version:2.0.050

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว +1

      For all of my projects, I have used AT version:1.1.0.0(May 11 2016 18:09:56) SDK version:1.5.4(baaeaebb). I don't know what happens when newer versions are used. The Blynk website simply states that 1.1.0.0 works best. This is the link that I am referring to:
      help.blynk.cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware

    • @greenspanfx
      @greenspanfx 5 ปีที่แล้ว

      @@duntyou8 Thank you for the detailed tutorial! It is working now! I was having a lot of trouble trying to update the firmware(the first part of your tutorial), and didn't even check the version my module had, I believed it was old. When I checked I noticed I had AT version:1.3.0.0(Jul 14 2016 18:54:01)
      SDK version:2.0.0(5a875ba), so I decided to skip that part, and yay! It is working now :D Thank you very much.

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

    How can use esp32 with an Arduino board? it does not appear esp32 when I select the board as Arduino Uno in the Blynk browser page!

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

      I think you are talking about the Blynk web page that provides code examples. On that page, set the “Board” option to whatever Arduino you are using. For “Connection”, select ESP8266 Wifi Shield. That should work with an ESP32. For your project, I suggest you use an Arduino Mega or Due instead of the Uno. You might find the system is less stable with an Uno. If you must use an Arduino Uno with an ESP module, then I suggest you follow the instructions in my other video: th-cam.com/video/knYVIo8kNkA/w-d-xo.html

  • @stegreece3
    @stegreece3 5 ปีที่แล้ว

    I can’t find the 3,3v power cord for breadboard in my country at all . Is there another solution like MB102 breadboard power supply module ?

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว +1

      Typically, MB102 breadboard power supply modules can provide 3.3V @ 700 mA. That is good enough.

    • @stegreece3
      @stegreece3 5 ปีที่แล้ว

      Nathan Church Thank you very much for fast respond first of all . I bought a rotary switch adaptor and it’s 600mA . You can set it on different outputs and one of the outputs is 3 not 3,3v (it doesn’t matter?)

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      I do not know if 3.0V will work. I think it probably will work, but if you see strange behavior from the ESP8266, then you should try to find a 3.3V supply.

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

    I have a claw machine, which i would like to setup something like this to move the claw and drop the claw by using my computers keyboard. Any ideas, where to start?.

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

      I would try ThingSpeak. I have not used it myself, but it might be what you are looking for.

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

    A little help, sir ?
    i have this error, and have been looking everywhere online but to no avail. Thank you in advance!
    [1616] ESP is not responding

  • @AdnanFKSA
    @AdnanFKSA 5 ปีที่แล้ว

    I've got problems while trying to flash ESP8266, connected with ESP-01 Adapter, through Arduino Mega. Is it even possible, or you have to have FTDI to USB converter to flash it?

    • @nathanchurch419
      @nathanchurch419 5 ปีที่แล้ว

      Yes, it is possible to use the Mega to flash the ESP-01. But there are some things that make it tricky. The Mega is a 5V device; the ESP is 3.3V device, so you have to use a level shifter or voltage divider on the RX line of the ESP module, otherwise you will probably damage the ESP module. Also, you need to power the ESP with 3.3V, and the 3.3V output from the Mega might not provide enough power, so you are still likely to need an external 3.3V supply for the ESP module. I do not have a tutorial that shows how to flash an ESP module with a Mega, but I do have a video that shows how to flash an ESP module with an Arduino Due. That video might help you a little. Go to time 12_38 in this video th-cam.com/video/ghylNSjYdMs/w-d-xo.html&

  • @deepakraj6730
    @deepakraj6730 5 ปีที่แล้ว

    Plz solve my problem :- Connect minimum 3 Nodemcu devices with one Arduino-Uno OR Raspberry Pi( As
    controller ) to Established connection between all the Nodemcu.
    And on the basis of some range of virtual keys( like 10 keys per Nodemcu ) of Blynk
    App, the controller communicates with there respected Nodemcu and do the work as per
    data provided by Blynk App.

  • @seandonelan5740
    @seandonelan5740 4 ปีที่แล้ว

    Very useful video, thanks for taking the time to create it.

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

    Tried doing this project but with a LM35, LDR and gas sensor using an esp-01 wifi module.. The readings for LDR and gas sensor are correct but Lm35 is always showing incorrect temperature. If I use only the Lm35 then it shows correct answer but with other sensors in circuit, it shows wrong answer. What is the problem please help?

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

      It is difficult to troubleshoot a circuit via TH-cam comments, but based on what you said, I wonder if your power supply is adequate. Perhaps it can power one or two sensors, but not all three. If you use a bigger power supply, does the problem go away?

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

      I powered the esp-01 via a voltage divider to get 3.3V and used the 5V pin to power the sensors.Haven't tried using an external supply since all of them except lm35 were working fine

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

      Are you using an Arduino Mega to control the LM35, LDR and sensor? If so, disconnect the ESP-01 and troubleshoot the sensor problems first. Then add the ESP-01 to the circuit. It is not a good practice to use a voltage divider as a power supply for the ESP-01, which draws a lot of current. It is better to use a voltage regulator or a separate 3.3V power supply. The voltage divider is probably not the cause of the LM35 problem, but the ESP-01 performance could be unstable without a regulated 3.3V supply.

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

      @@duntyou8 using an arduino uno

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

      I have a different video that shows how to connect an Arduino Uno to an ESP-01: th-cam.com/video/knYVIo8kNkA/w-d-xo.html&

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

    Hello Nathan ,its great explanation , I have been following through the process however, the At_firmware_bin1.54 has been deleted(I cant find it on the link you provided). is any other option I can use .

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

      I think the link in the video is old and no longer works. Please try the link in that is provided in the description of the video... I just tried it... it takes you to Github. That should work.

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

      @@duntyou8 thankyou ,i am going to try it.

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

    Your tutorial greatly helped, thank you!

  • @darylmanago1247
    @darylmanago1247 6 ปีที่แล้ว

    Hi Sir, I have problem when I flash the ESP8266-01, I follow your instruction after the flashing but when I'm in the Serial monitor, there are continues flowing of garbage data horizontaly in serial monitor. Thanks Sir.

    • @darylmanago1247
      @darylmanago1247 6 ปีที่แล้ว

      I already sent a video of my work sir. Thank You sir.

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

      Same issue here

  • @zacklee6674
    @zacklee6674 4 ปีที่แล้ว

    hi, I need some help. I used a converter to step down 12V to 3.3V and supply to ESP8266 but the LED does not light up and it is not functioning. But when I connect the 12V to the barrel jack of Arduino and use the 3.3V pin to supply to ESP8266, the led does light up an instant and goes off immediately, the serial monitor shows an unknown character. Why does my external supply cannot power the ESP8266?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      It is difficult to say with certainty why the ESP8266 and LED behaved as you described, but some ESP modules pull a lot of current during the first few milliseconds. The Arduino 3.3V supply is not designed to provide the high current required by the ESP8266. That is why I do not use the Arduino 3.3V supply for my projects. I am not sure why your converter did not work. Do you know the current rating? It needs to supply 430mA which is what the ESP8266 draws during startup.

    • @zacklee6674
      @zacklee6674 4 ปีที่แล้ว

      @@duntyou8 my power supply has a current of 2A. The blue led lighs up the moment i turned on the switch but immediately goes off. I am confused why it is not operating even I used the converter to step down the voltage to 3.3V.

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      Have you flashed the firmware to the ESP module? The LED might act in a strange way if some oddball version of firmware is on it.

    • @zacklee6674
      @zacklee6674 4 ปีที่แล้ว

      @@duntyou8 it is not functioning at all when I tried to flash it. The Serial monitor shows an unknown character after I powered the esp

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      There are several ways to flash an ESP8266 device. When you attempted to flash your device, did you use the procedure that is shown in the video, starting at time 16:44 ?

  • @OskarP2601
    @OskarP2601 4 ปีที่แล้ว

    Is it possible to connect without the WiFi module? Pretty sure the Arduino mega 2560 already has one built in? Might be wrong tho

  • @jmeska
    @jmeska 6 ปีที่แล้ว

    Hello, Nathan can you tell more about the 4 pin breadboard adapter you use? Is it possible to program esp with it? Thanks!

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      The four pin adapter does not have a convenient way to connect GPIO to ground, so it is not very helpful for flashing the ESP. I thought that was an annoying design flaw. If you are really determined, you could probably find a way to hack the adapter board and add wire connected to GPIO, and then you could flash the ESP.

  • @zaimaiman4742
    @zaimaiman4742 5 ปีที่แล้ว

    I had a problem when to download flasher to esp...the flasher didt start download it and when i close it show message "see the logfile for detail"..please help me

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      Sometimes people have problems with flashing the ESP. I give some troubleshooting hints in this video, starting from time 2:30 …
      th-cam.com/video/knYVIo8kNkA/w-d-xo.html This is another video where I discuss problems with flashing ESP modules, starting from time 10:50 …
      th-cam.com/video/ghylNSjYdMs/w-d-xo.html

  • @LoverOfToast43
    @LoverOfToast43 4 ปีที่แล้ว

    I have another question. I bought a DC connector to barrel power jack adapter for my external 3.3v power supply (instead of stripping it like you did). When I compile and upload my code I got from the example code generator I get no output on my serial monitor. Nothing at all. I'm sure that the COM and baud rate is correct. I also double checked all my wiring to make sure it was the same as yours (I don't have the adapter, but its exactly the same outside of that). Could the problem be my dc connector adapter? Do I need to just strip the power supply?
    I do have a different version of the Blynk libraries, could that be the problem? I have the newest version instead of 0.4.10.
    I also have the latest arduino version. Maybe I need the latest firmware version as well?
    Finally, my end goal is to send data to a website I'm making, It seems like this video just shows how to send the data to Blynk, but can you use the ESP-01 to send data from your circuit to an API so that my website can pull from it?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      I can imagine that the barrel power jack for your DC power supply is fine, but you should confirm which pin on the jack is ground and which pin is +3.3V. The easiest way to check is to use a voltmeter. If you do not have a voltmeter, then use an LED to check the polarity of the power coming from the jack. Also, when you have power to the ESP-01 you should see its LED light up, just like in my video at time 19:13.
      Blynk comes out with new versions every month or so. That is normal and shouldn't cause a problem. Same with the Arduino code. The ESP8266 firmware to use is AT version 1.1.0.0. Refer to this site: help.blynk.cc/en/articles/605485-esp8266-with-at-firmware.
      From your message, it isn't clear if you have gotten through the first step of flashing the ESP module. If you haven't gotten that far yet, then the version of Arduino and Blynk doesn't really matter. Successfully flashing the ESP is the first step.
      Blynk is probably not your best solution if you are trying to send data to a web site. I think there are some other IoT platforms that are better suited for that. Sorry that is outside of my scope of experience, but I would probably do a bit of research on the web to find out what seems to work.

    • @LoverOfToast43
      @LoverOfToast43 4 ปีที่แล้ว

      @@duntyou8 I was able to successfully flash the AT v1.1.0.0 firmware to the ESP. My ESP also lights up when I connect the pins from the external power supply. I'm blanking on what the problem could be though.

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      Are you using an Arduino Mega? I think you said you do not have an adapter. Can you describe your connections from the ESP-01 to the Arduino?

    • @LoverOfToast43
      @LoverOfToast43 4 ปีที่แล้ว

      @@duntyou8 I am using the mega. Connections are from the ESP to Arduino respectively are TX to RX1 (pin 19), RX to TX2 (pin 18), VCC to my external 3.3v power, and ESP GND to my external 3.3v ground. And then of course I have a sensor, LED, and resistor. I'm using the breakout board for my ESP-01.

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      The Mega is a 5V device and the ESP-01 is 3.3V device. Connecting the ESP TX to the Arduino RX is probably okay. The Arduino will accept 3.3V as a High. Connecting the Arduino TX (5V) to the ESP RX is bad, because the ESP is only designed to handle 3.3V signals. You should put a voltage divider on the Arduino TX line. See my other video that shows how to do that. th-cam.com/video/knYVIo8kNkA/w-d-xo.html at time 12_00. The cleaner solution is to use the adapter shown in video with the Mega. The adapter does the level shifting for you. There is a small chance that you have damaged your 3.3V ESP board by connecting it directly to the 5V Mega.
      If you want to run the circuit without an adapter, and you are powering the ESP-01 with an external 3.3V supply, make sure you have connected the ground of the 3.3V supply to the ground of the Arduino. If you do not make that connection, then you will have a voltage step between the the ESP and the Arduino, and the circuit will not work.
      I have some other troubleshooting advice in yet another video... th-cam.com/video/ghylNSjYdMs/w-d-xo.html . Time 34_30.

  • @yindigo7826
    @yindigo7826 4 ปีที่แล้ว

    Very detailed and great video. I follow all the steps, from flashing esp until connecting the esp to blynk. But the problem, after the code is excuted, serial monitor display Fail2Rst and FailW. Do u hav any idea to solve this problem? I have check the baud rate and the circuit connection. Both are correct. Please help!

    • @yindigo7826
      @yindigo7826 4 ปีที่แล้ว

      Never mind. I hav solve the problem. In the blynk code builder, esp8266 baud rate define is 38400. The code suppose to be:
      #define ESP8266_BAUD 115200
      Just like ur code in the tutorial. Thank god, I compare every line of code to yours 😅😅

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      The video shows a step-by-step process to make the project work. It sounds like you followed all of the steps up to one spot in the video where you saw something go wrong. Please tell me where in the video (the time stamp) where you see the Fail2Rst and FailW message. For example, you might say, “Everything works fine up until time 39m03s. I see Connected to WiFi in the serial monitor, but then instead of Ping, I get Fail2RST”. With that information, I might be able to help.
      Some more advice: make sure you flashed the EXACT same version of the AT commands onto the ESP module, as shown at time 10:36. If you did not flash the ESP module, or if you flashed a different version of AT commands, then you might see strange behavior. Also, do not try to power the ESP module from the 3.3V supply on the Arduino… sometimes it works, sometimes it doesn’t, and it is really hard to troubleshoot. Also, Blynk has a pretty good forum for users. Search the database of questions on the Blynk website, you might find an answer to your problem.

    • @yindigo7826
      @yindigo7826 4 ปีที่แล้ว

      ​@@duntyou8 38:50 After code is upload, the word Blynk version willl be showed. Then, the next line will show Fail2Rst and FailW. That was my problem before and already solved. Thank you for pointing that out and also for the advice. :)

  • @sukritwoo7568
    @sukritwoo7568 6 ปีที่แล้ว

    Thank you for video. I have a problem to check the version of my ESP-01 module. I connected all the connections on the breadboard, the flashing steps are working well. However, please help me sort this out, when I typed the "AT" and "AT+GMR", the serial monitor doesn't response the firmware version that I just uploaded.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      If the flashing finished completely, and you want to communicate with the ESP-01, make sure you close the Flash Downloader app before you open the Serial Monitor. Also make sure GPIO is DISCONNECTED from ground. Also cycle the power to the ESP-01. Did you do that?

    • @sukritwoo7568
      @sukritwoo7568 6 ปีที่แล้ว

      Nathan Church thank you forr your kindly reply. Yes, I did. The word "ready" came up but when I typed "AT" but the serial monitor did not response.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      In the serial monitor, confirm that you have "Both NL & CR" selected and the baud rate is set to 115200. What device are you using to communicate with the ESP-01? Is it a TTL-USB converter like in the video?

    • @sukritwoo7568
      @sukritwoo7568 6 ปีที่แล้ว

      Nathan Church thank you for your reply. May I have your e-mail please?

  • @amitthakur6998
    @amitthakur6998 6 ปีที่แล้ว

    If you want to use esp just as a handshaking tool /to make ur device Wi-Fi enable. Then also does we have to download firmware for esp???

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      In general, I think it is important to know what version of AT commands is on your ESP module. In the video I show how to check the version (at 21:00). For the Blynk app, only certain versions of AT Commands are recommended.
      I think you are asking if you really need to flash the ESP-01. You might be lucky, and the code that is installed by the chip manufacturer is suitable for your needs, but it would be unwise to assume that is the case. Just flash the ESP module with code that fits your application. If you do not know which code to use, start with the AT command version that I show in the video.

    • @amitthakur6998
      @amitthakur6998 6 ปีที่แล้ว

      Nathan Church can you tell what is "SDK version " as it is written with "AT version " link--(help. blynk. cc/how-to-connect-different-hardware-with-blynk/arduino/esp8266-with-at-firmware)

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      I believe SDK is an abbreviation for Software Development Kit. Sorry, I don't know why its version is presented along with the AT Command version.

  • @basejumper1379
    @basejumper1379 6 ปีที่แล้ว

    FYI, I have 2 different chinese chips that I bought this year, one blue one black. They came with AT version 1.2.0.0, SDK version 1.5.4.1. I needed to set the baud rate to 9600 for the black one and 74880 for the blue one in order to communicate with them.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Interesting. I guess 115200 isn't as universal as I thought it was.

  • @danielerighetti3516
    @danielerighetti3516 4 ปีที่แล้ว

    Great tutorial! But I have a little problem. After flashing in the serial moniotr I have the message READY, not the mesage OK. Then I have tried to enter the command AT and I received the message "ERROR". Is this a problem?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      Hi,
      I don't know if that is a problem. Please make sure that you flashed the same version of AT commands that I did in the video. After you see "ready", type "AT+GMR". That will show the version, and you should see the same version information that I show at 23:28. Also make sure that you disconnected GPIO before typing "AT". When in doubt, go through the flashing process again.

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

    when i sent an AT command in the serial monitor it works find but when doing it with code using SoftwareSerial it doesnt say anything in the console? ????

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

      Your message is very brief, but I think you are saying that you were able to send AT commands through the USB-TTL converter… as was demonstrated at time 20:47. In this video, I do not communicate with the ESP8266 with Software serial. I am using the hardware serial port (TX1 RX1) on the Arduino Mega. Which Arduino board are you using? If you are using an Arduino Uno, then you need to use SoftwareSerial. I show how to connect an Arduino Uno and Software Serial in this video: th-cam.com/video/knYVIo8kNkA/w-d-xo.html

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

      @@duntyou8 Sorry, I'm kinda new to Arduino and my message was very brief.
      I have an esp8266 esp-01s hooked up to my Arduino Mega 2560 Rev3,
      I can send commands through the USB-TTL converter, and it works fine and connects to my network and gets an IP assigned.
      But yes, I was trying to use Software Serial for communication,
      How would I set up Hardware serial ? Do you have a small example? Not the blynk code? Thanks

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

      If you follow all of the steps in the video, you will see how to write the sketch. Specifically, starting at about 36:00 in the video, I show how to write the sketch. I also provide a link the Arduino sketch in the description of the video.

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

      @@duntyou8 I mean without Blynk,

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

      The sketch shown in the video (and provided in the description) allows the Arduino Mega to communicate with an ESP8266 module with the Mega’s hardware serial port 1. You can leave the lines of code in the sketch related to Blynk, even if you are not using Blynk… the sketch should still compile and run, but the sketch won’t do anything interesting until you add the features specific to your project. You can delete the lines related to Blynk if you want to. Alternatively, you could complete the whole project shown in the video (with Blynk). Some people can get it done in less than an hour. The experience that you gain in the process might be helpful for your project.

  • @gonzalorumeuclaret9533
    @gonzalorumeuclaret9533 6 ปีที่แล้ว +1

    OMG so helpful. I wish more people would be as detailed as you have been in this video. Thank you so much

  • @apriladrian2797
    @apriladrian2797 5 ปีที่แล้ว

    Where we have to put the pin of RX and tx from esp to arduino in order to the blynk server connected. Because my project is doesnt connect sir. Thank you.

    • @nathanchurch419
      @nathanchurch419 5 ปีที่แล้ว

      ESP-01 RX goes to Arduino Mega pin 18. ESP-01 TX goes to Arduino Mega pin 19.
      The schematic is shown at 25:05 .

    • @apriladrian2797
      @apriladrian2797 5 ปีที่แล้ว

      @@nathanchurch419 ok

    • @apriladrian2797
      @apriladrian2797 5 ปีที่แล้ว

      What if arduino who i use is Uno R3, Will be so different or same sir?.

    • @nathanchurch419
      @nathanchurch419 5 ปีที่แล้ว

      If you are using an Uno, you should follow the instructions in another video: th-cam.com/video/knYVIo8kNkA/w-d-xo.html

  • @jayatejakalla5190
    @jayatejakalla5190 6 ปีที่แล้ว

    hii sir at 20.46 sec in a video, it is showing WIFI Connected after ready. I followed the exact same steps but I am getting WIFI DISCONNECT after ready. Could you please help me.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Hi,
      Many people asked about that. Don't worry if don't see the Wifi messages. As long as you see "ready", then you are good to go. If you want a longer explanation, go to my other video:
      th-cam.com/video/knYVIo8kNkA/w-d-xo.html
      at time 1.05.

  • @refakmakeen5248
    @refakmakeen5248 6 ปีที่แล้ว +1

    HI WHEN I USE THE FLASHER INORDER TO UPLOAD THE FIRMWARE ONTO THE ESP-01 IT STATES 'INVALID HEAD OF PACKET ' YOU KNOW THE SOLUTION FOR THIS?

    • @tonib4307
      @tonib4307 4 ปีที่แล้ว

      You need the "8M-8M...bin"

  • @kolayscada9244
    @kolayscada9244 5 ปีที่แล้ว

    Hi When I want to connect Esp8266 to the wireless network with AT codes, I get MEM CHECK FAIL error on the serial port monitor screen. It is stated in some sources that esp8266 may be corrupted. Do you have experience in this regard? Or can you give me some advice? I wish you convenience in your work.

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

    Can i use an ESP8266 12E(NODE MCU) instead of the esp-01? if so how? Thank you!

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

      I think this project could be done with an ESP12, but I have never tried. When flashing, the ESP12 will require some different wiring. See this other video th-cam.com/video/ghylNSjYdMs/w-d-xo.html , and go to time 14 minutes. The wiring will be similar.

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

      @@duntyou8 thank you so much and keep up the good work!!

  • @harez93
    @harez93 4 ปีที่แล้ว

    Funny thing happen with my esp01. And i tested this out with a very simple relay trigger. While the relay is connected to an AC load, when i play around pushing buttons on the blynk app to trigger the relay on and off, after a few seconds its says device is disconnected on the blynk app. I used the blynk_debug code to see whats happening, and as i was pressing the button, the serial monitor freezes for a while and a “cmd error” appeared. Cannot reconnect or do anything once this happen, on the app it will say device is disconnected. Only thing to do is to reset it, or by closing the serial monitor and open it back up. Have any idea whats going on with my esp01?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว +1

      I do not know exactly what is going on, but I too find Blynk to be “finicky”. These are some things I suggest you test or try:
      Try a different wifi network. (I assume you are using wifi).
      Make sure you are not trying to send too much data, too fast to Blynk. It sounds like you are not doing that, but the symptoms you describe are similar to what one sees when Blynk gets too busy.
      Simplify the to code to the bare minimum to see if the problem goes away.
      Sorry I cannot pinpoint the issue for you.
      The support forum on Blynk's website might be helpful to address your issues.

    • @harez93
      @harez93 4 ปีที่แล้ว

      @@duntyou8 i've searched this problem in blynk's website and forums, non of the solutions work for me though. But havent tried using a different wifi network, i'll try that later.
      Im not sending too much data or too fast, just pressing the on and off button on blynk app a couple of times and this happens. I did try sending 3 analog values through virtual pins and it worked fine. the only issue is on the relay trigger. and whats even weirder is the cmd error didnt come up if i trigger the relay without a load on it. But as soon as i connect it to an AC load, pufff there it is again, that annoying cmd error haha
      Another fun fact, i tried it with the ESP32 and pressed the hell out on that trigger button with the load on, and there was no error. Im starting to think it might be a blynk and ESP8266 problem. Care to make a tutorial video on MEGA + ESP32 maybe? xD haha
      Anyway thanks for your reply and help. I might have to find another way to do this then.

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      Does the relay and the ESP8266 share the same power supply? If so, you might have a noise problem. In other words, when the relay triggers, a short voltage drop (or spike) might be seen by the ESP8266, causing it to reset.
      I have another TH-cam video that shows how to connect an Arduino Due to the ESP-WROOM-02U. That might be of interest to you.

  • @felixg4m3r31
    @felixg4m3r31 5 ปีที่แล้ว

    Your video is great. Very good explanation that even beginnerst will understand. I had a lot of Issues for example uploading the AT Firmware (dont know why but it alwasy said that there is no connection but there was... i tried it a lot of times even with 3 different Flasher softwares and sometimes it worked) the last problem was the it did not show me the Blynk sign in the Seriell Monitor but after i changed da Baud rate to 9600 it worked. Maybe i can help someone with that information but again i am very thankfull for this awesom video

  • @zaimaiman4742
    @zaimaiman4742 6 ปีที่แล้ว

    This video really help me up on my project. Thanks for helping me.

  • @drumminjeff71
    @drumminjeff71 5 ปีที่แล้ว

    I totally agree with the last comment. Awesome job. Thank you so much for investing your time to help us out :-)

    • @drumminjeff71
      @drumminjeff71 5 ปีที่แล้ว

      I have created a similar project to turn on and off my aquarium heater that I watch with blank and it notifies me through text message if my parameters get out of range. But you're project here made it much more simple for me and I'm going to change my setup :-) thank you.

  • @kuldeepchauhan4826
    @kuldeepchauhan4826 5 ปีที่แล้ว

    #error This code is not intended to run on the ESP8266 platform! Please check your Tools->Board setting.
    This error is showing when I am uploading this code to my esp8266

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      In the video, I show how to flash AT Commands to the ESP8266, but I do not write any code for the ESP8266, and I do not attempt to write code to the ESP8266 using the Arduino IDE. In the video, I am writing code to the Arduino Mega 2560. If you are trying to follow the steps in the video, in the Arduino IDE, go to Tools > Board > Arduino/Genuino Mega or Mega 2560.

  • @tougeattack123
    @tougeattack123 5 ปีที่แล้ว

    i got a nano that reads some data from a bike and i want that data to be transfered online how can i use esp to comunicate with nano ?

  • @caffeinatedinsanity2324
    @caffeinatedinsanity2324 5 ปีที่แล้ว

    Great video! Just a notice that at 40:58, the Wire.h library isn't necessary here, because in the code bit you imported, it is for the lcd that uses I2C, and you're not using any I2C devices as far as I know in this project.

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      Thanks for the tip. I probably had an LCD connected in another version of the circuit.

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

    My project doesn't work. It fails at include ESP8266_Lib. Any one please help me. Thanks

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

      I had this happen to me once. I think it happened after I clicked on the button to update the Aduino IDE... to get the latest version. I don't remember exactly how I fixed the problem, but I think I deleted the the old ESP8266 library and then went to Github and downloaded the ESP8266 library again.

  • @ktoh6490
    @ktoh6490 6 ปีที่แล้ว

    Hi Mr Nathan,
    I had gotten this error from the Serial Monitor upon attempting to connect to the Wifi using ESP8266
    [1590] Failed to disable Echo
    and..
    [14611] Failed to enable MUX
    [15621] Failed to set STA mode
    after which it just goes to..
    [1579] ESP is not responding
    (after multiple reset)
    Thank you for your advise.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      The message Failed to enable MUX is probably nothing to worry about. I see it from time to time, and it does not seem to cause any problem… my ESP still works and I can connect to wifi.
      I don’t remember seeing the messages about Echo and STA mode. I don’t know what they mean.
      The message ESP not responding is a very common problem. It can be caused by many things. Usually it is caused by a wiring or setup problem.
      Check/confirm these things:
      Are you using and ESP-01? If yes, that is fine. If not, then the setup might be different than what I show in the video.
      Which Arduino are you using? If it is a mega, that is fine. If it is an Uno or something else, then a lot of things change in the setup.
      Make sure the ESP module is powered with a separate 3.3V power supply that can provide at least 400 mA. Do not try to power the ESP module with the Arduino 3.3V output.
      Were you able to flash AT commands to the ESP module? If yes, that is a good sign that the ESP module is working. It also ensures that the baud rate of the ESP module is set to the default value of 115200.
      Make sure you can flash the ESP before trying the rest of the project.
      After flashing, make sure you disconnect GPI0 from ground.
      Make sure the power supply ground, the Arduino ground and the ESP module ground are all connected.
      How are you doing the level conversion from 5V to 3.3V? Is it the same as in the video?
      Send a photo or a schematic of your circuit: nathan_church@hotmail.com

  • @juanmanuel-ov3sd
    @juanmanuel-ov3sd 6 ปีที่แล้ว

    Hi, im not finish watching the tutorial yet but wanted to ask why you didnt use the 3v from arduino to the esp , thank you

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      The 3.3V supply from Arduino Mega and Uno cannot provide enough current to run the ESP module reliably. The ESP can draw up to 430 mA. The 3.3V supply on the Mega and Uno is only rated to 50 mA.

  • @ma.angelicamayor4605
    @ma.angelicamayor4605 3 ปีที่แล้ว

    Great Video! Continue inspiring us!

  • @wesleywiggins86
    @wesleywiggins86 5 ปีที่แล้ว

    If you are using Mac and esptool.py...I had some trouble getting the right command arguments. This ended up working for me "--baud 115200 --after no_reset write_flash --flash_mode dout 0x00000". Changing flash_mode from dio to dout seemed to be the key.

  • @michaeldedulle7555
    @michaeldedulle7555 5 ปีที่แล้ว

    I ran in problems because win OS dedicated the port to arduino IDE, after closing the IDE I was able to flash the esp

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      That's good advice. Close the Arduino IDE before running the Flasher.

  • @krtecekfant
    @krtecekfant 6 ปีที่แล้ว

    hey. nice tutorial. thank you very much. my setup is working for everything between a few hours and a few days. but then the ESP stops working completly. im using the 3.3v directly from the mega2560. could it be that esp8266-01 suddenly stops because i dont use the external 3.3v? Probably a more specific question would be, why can it stop functioning after working for days, what does change for the esp that it just hangs?
    I would understand if it doesnt work at all or stops after sending data or any other action that requires more power, but it does the same thing for 3 days and then just hangs? it seems so random, that i cant belive its the 3.3v.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Hi, your problem is a bit mysterious. I too am suspicious of the power if you are using the Mega2560 board 3.3V supply. Try an external supply. Also, are you sure it is the ESP that stops working, or has the Arduino crashed? There might be bug in your code or in a library that causes the microcontroller to hang up, and it just looks like the ESP had died. Write a super simple sketch… maybe it only sends millis to Blynk. If the problem goes away, then it is likely to be a coding issue.

    • @krtecekfant
      @krtecekfant 6 ปีที่แล้ว

      ​@@duntyou8 wow thanks for the fast anwser. i have to sleep now, but i will try tomorrow again, with a really simple sketch and let it run. but i think its only the esp because the sensors and the oled connected to the mega are still working, while wifi is gone.

  • @jonasbraga7436
    @jonasbraga7436 6 ปีที่แล้ว

    Hey, is the conversor USB to TTL only for install the newest firmware? So then, can I use the esp8266 with their default firmware?

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว +1

      The ESP8266 will probably have AT Commands installed when you buy it. The ESP8266 might work with that firmware. If you are trying to duplicate the project shown in the video, then you need to check which version of AT Commands is installed on the ESP8266, because Blynk only works with certain versions of AT Commands. This is discussed at 10:23 and 20:55 In the video.

    • @jonasbraga7436
      @jonasbraga7436 6 ปีที่แล้ว

      @@duntyou8 okay, got it thanks

  • @madhankumar8294
    @madhankumar8294 7 ปีที่แล้ว

    Frnd, I am unable to communicate with esp through AT commands..I can see the ESP_36649D in wifi connections..I connected to it..but when i try AT commands, it simply doesnt respond anything and also I tried changing baud rates, NL CR (No changes)...But I am able to upload any codes to ESP module through generic esp board....KINDLY HELP ME PLS..im stuck

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Hi, Sorry it took a few days for me to respond. Did you manage to fix the issue? It sounds like you reached a point similar to where I was at 20:51 in the video, but when you try to type AT+GMR (for example) nothing happens for you. Is that correct? If you could, please send a screen shot of the Serial Monitor, showing what information is coming from the wifi module. Also, please send a photo or schematic of your circuit. There might something wrong with the way the TX and RX are connected.

  • @benjaminbaptista1408
    @benjaminbaptista1408 4 ปีที่แล้ว

    Great tutorial, never seen like this before so clear information. But i have a question, my esp8266 connected to wifi but there no reply from blynk, do you know why?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      Hi. It could be your wifi has a firewall that prevents communication with Blynk. If possible, try a different wifi network. Other people have had problems similar to yours, in my third ESP8266 video, I discuss this more. Go to this video, th-cam.com/video/ghylNSjYdMs/w-d-xo.html , and jump to time 38:50.

    • @benjaminbaptista1408
      @benjaminbaptista1408 4 ปีที่แล้ว

      @@duntyou8 thanks for your kind reply. I'll try another wifi, Thanks Nat.

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

    ESP01 3V3 5V Serial Adapter can use to esp-01s?

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

      At 16:43 I show how to use the USB to TTL adapter. The voltage jumper on the adapter should be set to 3.3V. Then it can be connected to the ESP-01.

  • @duniaatlas4307
    @duniaatlas4307 6 ปีที่แล้ว

    excusme bro , I want to ask about the esp8266 you are using.Do you use esp with 8MB of flash memory or 1MB of flash memory? ty

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      The ESP-01 module shown in the video has 1Mbyte (8Mbits) of flash.

    • @duniaatlas4307
      @duniaatlas4307 6 ปีที่แล้ว

      Nathan Church i got it, thanks bro

  • @RiazAhmad-ww1br
    @RiazAhmad-ww1br 4 ปีที่แล้ว

    can esp8266 wifi module sand the data to two mobile it a time???

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      I am sure that you can develop an ESP-8266 application where data is sent to multiple devices, unfortunately it cannot be done with the basic version of Blynk that I demonstrate in this video. (If someone out there thinks I am wrong about that, please let me know.) You might check out Cayenne: www.survivingwithandroid.com/how-to-use-cayenne-iot-with-esp8266-and-mqtt/

  • @mohammadrezahomayoun48
    @mohammadrezahomayoun48 6 ปีที่แล้ว

    Hello
    what is the range of esp8266 and the phone.I mean without home wifi router just the range between phone and esp module .did u test this?

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      I did not test the range. In the video, the ESP module and phone are about about 20 m from my wireless router.

  • @aarushgupta2059
    @aarushgupta2059 6 ปีที่แล้ว

    When I try to flash the firmware onto my esp2866, it says that my board isn’t connected at com4, or that doesn’t exist, even though it exists and is connected. Does anybody know what could be wrong?

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Hi. A few questions...
      Are you flashing an ESP-01?
      Are you using the same flasher app shown in the video (e.g. at 15:50)?
      Is your circuit for flashing the ESP module roughly the same as shown in the video at 16:56?
      If you are using Windows, can you go to Device Manager and check what shows up under Ports (COM & LPT)?
      You might be missing a driver for your USB-TTL converter.

    • @aarushgupta2059
      @aarushgupta2059 6 ปีที่แล้ว

      Yeah I am flashing an ESP-01 with the same flasher app. The only difference in my circuit is that I am using a power supply module run by a battery instead of the 3.3 V adapter (it is still providing enough current at 3.3 V). When I checked in my device manager, it shows com4, but it says that “this hardware device is not connected to the computer,” and that I need to reconnect it. Do you know how to reconnect a hardware device to computer? I am running Windows 10.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      A few more questions...
      Are you using the same (or similar) USB-TTL converter that is shown in the
      video?
      When you disconnect and reconnect the USB cable from the converter, do you
      see the COM4 device disappear and reappear in the Device Manager?
      Is there any chance you can try the flasher on a different computer?

    • @aarushgupta2059
      @aarushgupta2059 6 ปีที่แล้ว

      Yes, I got the same exact USB to TTL converter off of Amazon. I have noticed that sometimes COM4 disappears and reappears in the Device Manager. I can try on another computer and see if that works then. Thank you for all the help!

    • @aarushgupta2059
      @aarushgupta2059 6 ปีที่แล้ว

      Hi Nathan,
      I actually ended up figuring out the problem. There was something wrong with my USB cable so my computer wasn’t creating a new com port. When I got a different one, it created a new com port and that basically solved all my problems! Thank you for all the assistance and the amazing tutorial! I feel like this is a very detailed and explanatory tutorial, unlike some of the other ones I have seen.

  • @mannhansen9337
    @mannhansen9337 6 ปีที่แล้ว

    Thanks. Very good and instructive. You saved me a lot of time collecting information.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว +1

      I know what you mean. Nothing in the video is difficult, but it took a week for me to find all the info, which was scattered across the internet. I hope the video ties it all together and saves other people time.

  • @timmorgan3673
    @timmorgan3673 6 ปีที่แล้ว +1

    Thanks Nathan - A most useful tutorial - Cheers :)

  • @dzheirhald
    @dzheirhald 4 ปีที่แล้ว

    is there another way if you dont have the usb to tll converter?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      You can flash an ESP module with an Arduino instead of a USB-to-TTL converter. I show how to flash an ESP module with an Arduino Due in this video, th-cam.com/video/ghylNSjYdMs/w-d-xo.html , at time 12_38. There are some other TH-cam videos that show how to do it with other devices.

  • @dimsomto9271
    @dimsomto9271 6 ปีที่แล้ว

    please help i have done all the connections correctly but my AT COMMANDS are not showing anything. when i type them into the serial monitor i get nothing.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      It sounds like you are at roughly the same point that I was at in video at 20:27.
      When you cycle the power on the ESP module, does anything appear in the serial monitor (before you type any commands)? Typically you will see some garbage text, then the word "ready" will appear in the serial monitor. If you do not see "ready"...
      Make sure you have "NL & CR", and 115200 baud selected in the serial monitor.
      If that does not work, it could be your ESP module is set to a different baud (though most are 115200). Try other baud settings in the serial monitor, cycling the ESP power each time you change the baud rate.

    • @dimsomto9271
      @dimsomto9271 6 ปีที่แล้ว

      Okay i was finally able to get the AT commands to work because i did not connect CH_PD to vcc. Then i tried using the flasher it says
      Connecting..
      Erasing flash
      Writing at 0x000000000.. (0%)
      Invalid head of packet.
      Please do you have an idea of what i should do thankyou.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      I am not familiar with that problem. Make sure you connected GPI0 to ground before you try to flash, as shown at 21:20 in the video.
      These are things you have probably already thought of, but…
      Try a different ESP module
      Try a different flasher app. There are others out there on the web.

  • @muzammilbathi6483
    @muzammilbathi6483 4 ปีที่แล้ว

    Esp8266.h lib no such filr directory error occuring even i include the eap8266 master library

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      From your description, it sounds like you do not have the ESP8266_Lib.h library installed in your Arduino IDE libraries folder. ESP8266_Lib is included with the Blynk library. Download and install the Blynk library from here: github.com/blynkkk/blynk-library/releases/tag/v0.6.1 . Also in the video, at time 33:52, I show where to get the Blynk Library. Here is another link that explains how to install the Blynk libraries help.blynk.cc/en/articles/512105-how-to-install-blynk-library-for-arduino-ide

    • @muzammilbathi6483
      @muzammilbathi6483 4 ปีที่แล้ว

      @@duntyou8 thanks, but i already done all instructions..?

    • @duntyou8
      @duntyou8  4 ปีที่แล้ว

      I don't know what the problem is. You might try looking at the Blynk Community board... search and see if other people have the same problem. community.blynk.cc/guidelines

    • @muzammilbathi6483
      @muzammilbathi6483 4 ปีที่แล้ว

      @@duntyou8 ok thanks alot

  • @rh1532
    @rh1532 6 ปีที่แล้ว

    Hi Nathan,
    Could you give some advice on this issue?
    I followed through your video, until uploading of blnyk coding to the arduino, and i have this error:
    Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"
    Sketch uses 17762 bytes (55%) of program storage space. Maximum is 32256 bytes.
    Global variables use 1129 bytes (55%) of dynamic memory, leaving 919 bytes for local variables. Maximum is 2048 bytes.
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
    Problem uploading to board. See www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
    Kindly seeking your help.
    Thank you very much!
    Regards

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      What type of Arduino board are you using... Mega, Uno or something else?

    • @rh1532
      @rh1532 6 ปีที่แล้ว

      Thank you for replying!
      Uno, Sir.

    • @rh1532
      @rh1532 6 ปีที่แล้ว

      Nathan Church , I figured out the problem, apparently for my case, I read online is because my pin 0 which is “RX” is connected when uploading. By removing the pin, the uploading is complete.
      However, I got another problem.
      In the Serial Monitor: “ESP is not responding”
      Any help on this?
      I did a check on the firmware for ESP8266 is the same as your video..

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Using an Uno is more tricky. You need to watch my "sequal" video.th-cam.com/video/knYVIo8kNkA/w-d-xo.html

  • @AliG.G
    @AliG.G 7 ปีที่แล้ว

    Just wondering how to control a robot with esp8266 without connecting to my Wi-Fi. I want to make a hotspot kinda network and control the robot as a replacement for a pair of Bluetooth modules

    • @duntyou8
      @duntyou8  7 ปีที่แล้ว +1

      I think you are suggesting that you want to create a wifi hotspot with your phone, then allow the esp8266 connect to the internet through the hotspot, then use Blynk to control the robot. I think it will work. I might give it a try, but I am away from home where all my gadgets are.

    • @AliG.G
      @AliG.G 7 ปีที่แล้ว

      Nathan Church sorry about the confusion. What I meant was I want to control a motor with WiFi only and I don't want to connect to any network (internet). All the tutorials are about creating a webserver and I don't want that. At the moment I'm controlling the motor/robot using two Bluetooth hc05 modules.

    • @duntyou8
      @duntyou8  7 ปีที่แล้ว

      I see. That is a unique application. Blynk allows you to set up a local server for wifi communication. I have not tried it, but my understanding is that no access to the internet is needed for the implementation, and people do this for security and privacy reasons.

  • @thanhhaitrinh4403
    @thanhhaitrinh4403 6 ปีที่แล้ว

    Good evening, Sir. I already followed all steps in your video, but when i opened the serial monitor, i couldn't receive Ping as yours. Do you know what was the error happened? And how i can fix it?

    • @thanhhaitrinh4403
      @thanhhaitrinh4403 6 ปีที่แล้ว

      and this is the error
      drive.google.com/open?id=1Fy0mpLwzKaBTtfYG1p7zNgUQiqCNDdV1

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      If you see "connected to wifi", but no ping, that probably means your wifi network is blocking the exchange of data with the Blynk cloud server. This is typically caused by firewalls and other security measures on your network. I saw this problem myself when I tried to use my employer's wifi. I switched to an "open" network, and everything connected.

    • @thanhhaitrinh4403
      @thanhhaitrinh4403 6 ปีที่แล้ว

      Thank your for your response, Sir. I restarted my project and made it succeed without any mistakes. The reason of no ping at the last time was that I did " At-firmware esp8266" without carefulness. And now, everything has been done as I can control LED light by Blynk app. One more time, thank you for your kindness.

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      That's great. Thanks for writing.

    • @haitrinhthanh7525
      @haitrinhthanh7525 6 ปีที่แล้ว

      Nathan Church hello sir. It’s me. I bought a new ESP. But the serial monitor always says ESP is not responding. I have already to send email to your email nathan_church@hotmail.com. Please check your email and help me. Thanks a lot

  • @techmj4837
    @techmj4837 6 ปีที่แล้ว +2

    Please help for esp connection to LCD, ultrasonic sensor,

  • @shahiramathussain405
    @shahiramathussain405 6 ปีที่แล้ว

    in your video you,first you flash the eps8266 with TTL after flashing you connected the arduino uno/mega with esp8266 but what happen if i flash arduino with eps8266..THank you

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Hi, I don’t think you can flash an Arduino with an ESP8266… but maybe I misunderstood your question. Perhaps you are asking if it is okay to flash the ESP8266 with an Arduino. Yes, that is possible; perhaps it is even easier than using the TTL-USB adapter. (I just like gadgets, so I used the adapter.) There are several websites and TH-cam videos that show how to flash an ESP8266 with an Arduino.

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

    Have you tried the ESP-01S version? Can you confirm if your solution works in this new version of esp? Thanks!

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

      I have not tried the ESP-01S, but I read about the small changes between the ESP-01 and ESP01S. Think those changes are insignificant with respect to the instructions in this video. I would expect the ESP-01S to work fine with the procedures in this video. But be aware, the ESP-01S board has different LEDs, so don't be surprised if the LEDs on the ESP-01S board don't blink exactly like what you see in the video (I am using an ESP-01).

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

      @@duntyou8 Thank you for answering!

  • @tegasandhikam1554
    @tegasandhikam1554 6 ปีที่แล้ว

    Sir, does flashing firmware and flashing app work on esp8266 12E/F ? And how bout the wiring, does it same ? Thx for the help

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      I have not used the -12, but I think the app will work and the wiring will be the same.

  • @refakmakeen5248
    @refakmakeen5248 5 ปีที่แล้ว

    Hello!
    I have been using this concept (Arduino + Blynk + ESP-01) to control and monitor an aquaculture system. Everything went well at first but i started to include more sensors to the control system (Dissolved oxygen,pH,Temperature + a servo motor to control oxygen in in the pond) after doing these improvements to my system the system freeze in a timely manner (when i reset the arduino it runs for around 40 minutes and then stops) I digged deep about this problem and figured out that this is a problem with the ESP_01 when too much information is given to it, it tend to freeze or restart (In my case it freezes and requires a manual reset ) Have you got any idea regarding this problem and/or how to solve it
    Thank you very much!

    • @duntyou8
      @duntyou8  5 ปีที่แล้ว

      Hi. I have encountered similar problems, and the Blynk help page includes some discussion of similar issues. In my case, I solved the problem by reducing the "send rate" for slow changing sensors. For example, the RPM of my motor changed quickly, so I sent that reading once per second. Temperature in my system changed very slowly, so I only sent that info every 20 seconds. In my Arduino sketch, I used two timers to send info to Blynk... one timer for "fast" data, and one for "slow" data.
      Some of the documentation on the Blynk website says that you should not try to send more than 10 values per second, but you might find even 10 values per second is too fast. Hope this helps.

    • @refakmakeen5248
      @refakmakeen5248 5 ปีที่แล้ว

      @@duntyou8 th-cam.com/video/D_7ciW_TCac/w-d-xo.html i found this video about a concept called watch dogs which happens quite often with the nodemcu (esp_01) i think this can be used instead of playing the timers i will be testing this on my system. Please be kind enough to update if you find anything more than this to improve this condition without using timers and delays.
      Thank you very much for the reply!!!
      Cheers!

  • @coctakiesmaster4513
    @coctakiesmaster4513 6 ปีที่แล้ว

    excellent wifi controlled working video

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

    Also, well written description :)

  • @yewchunyen7704
    @yewchunyen7704 6 ปีที่แล้ว

    Sir, i can upload the program to UNO board, but in Blynk it shows project not online yet. I am not able to control it. What should i fix?

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว +1

      Make sure you have changed the Arduino code to include your wifi settings and the Auth Token.
      If you are using an Uno, you will have to change the code and the TX and RX connections.
      In my code for the Mega, we have this:
      // Hardware Serial on Mega, Leonardo, Micro...
      #define EspSerial Serial1
      // or Software Serial on Uno, Nano...
      //#include
      //SoftwareSerial EspSerial(2, 3); // RX, TX
      If you are using the Uno, you should change the code to this:
      // Hardware Serial on Mega, Leonardo, Micro...
      //#define EspSerial Serial1
      // or Software Serial on Uno, Nano...
      #include
      SoftwareSerial EspSerial(2, 3); // RX, TX
      On the Mega, I connected
      ESP-01 RX to Mega pin 18
      ESP-01 TX to Mega pin 19
      On the Uno..
      ESP-01 RX to Uno pin 3
      ESP-01 TX to Uno pin 2
      If you already did those things,
      Send a photo of your circuit.
      Send your sketch
      Send a screen shot of the serial monitor.
      nathan_church@hotmail.com

  • @sy_person
    @sy_person 6 ปีที่แล้ว

    hello sir.. may u give us main points to use Esp1 as privite network?
    in my country we don't have good internet.. so may i find some help please?

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      You can set up your own network. You do not need internet. I have not tried that method, but there are instructions on the Blynk website. Go to this site:
      docs.blynk.cc/#blynk-server
      Then scroll down until you see instructions for "Blynk Server".

    • @sy_person
      @sy_person 6 ปีที่แล้ว

      really i'm so glad for reply. thank you sir very much

  • @khanjohn6742
    @khanjohn6742 6 ปีที่แล้ว

    When I upload code to arduino mega 2560 in serial monitor says that esp not present

    • @duntyou8
      @duntyou8  6 ปีที่แล้ว

      Hello, thanks for watching.
      Did you install AT Version 1.1.0.0 on the ESP module?
      Is your circuit the same as the video at 25:52? If not, show your circuit to me. There could be a setup problem.

  • @gauravchhaidy9576
    @gauravchhaidy9576 6 ปีที่แล้ว

    we can use the arduino mega itself for flashing the firmware to esp 8266..... why did you use FTDI, 3.3v adapter etc.... there is no such need if we have arduino....Arduino mega can work as serial interface between esp8266 and computer