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

  Рет қаралды 322,728

Nathan Church

Nathan Church

Күн бұрын

Пікірлер: 550
@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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@MrMickjbriggs
@MrMickjbriggs 7 жыл бұрын
Possibly the best tutorial on KZbin , thank you.
@finnbonnen4910
@finnbonnen4910 4 жыл бұрын
True I watched so many videos and that’s the only one wich worked
@jinhangkhaw696
@jinhangkhaw696 3 жыл бұрын
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 жыл бұрын
You did very well. Please do more. You’re complete, clear and modest. None of that is common on KZbin. You have another subscriber.
@MrKartos1
@MrKartos1 4 жыл бұрын
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 3 ай бұрын
Doesn't work on mine, The downloading process did not start
@LillySchwartz
@LillySchwartz 6 жыл бұрын
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 6 жыл бұрын
Cool. So you only changed the firmware on the ESP module, and there were no changes to the Arduino code?
@LillySchwartz
@LillySchwartz 6 жыл бұрын
​@@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 6 жыл бұрын
Whoa… totally over my head :) But still, I’m glad that my video helped in a tiny way!
@ico450
@ico450 6 жыл бұрын
Sir u deserve a statue! U saved me from madness with my esp8266.. A BIG THANK YOU!
@kedarprabhudessai
@kedarprabhudessai 6 жыл бұрын
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
@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
@amosgarcia45
@amosgarcia45 5 жыл бұрын
There are no words to describe how much you have helped me, thank you very much
@lafkihkhalid3473
@lafkihkhalid3473 6 жыл бұрын
Great tutorial Man ! spending 45 minutes to explain good ideas with a very beautiful way that means you are awesome.Thanks a lot
@dompower500
@dompower500 5 жыл бұрын
Excellent video tutorial with complete clear and beautiful explanation. One of the best tutorial I have ever seen on youtube. Keep it up sir.
@kamranmu
@kamranmu 6 жыл бұрын
The best tutorial about Blynk ESP8266 and Arduino
@gustavstreicher4867
@gustavstreicher4867 5 жыл бұрын
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.
@gonzalorumeuclaret9533
@gonzalorumeuclaret9533 7 жыл бұрын
OMG so helpful. I wish more people would be as detailed as you have been in this video. Thank you so much
@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.
@AlexeyLitvinov
@AlexeyLitvinov 6 жыл бұрын
thanx! you can flash ESP using arduino, w/o flasher. Need just to connectc txtx, rx and on Arduino connect RST to GND.
@PriyanshuKumar-zd1lq
@PriyanshuKumar-zd1lq 7 жыл бұрын
One of the best videos on this topic.Cleared all my doubts.
@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.
@3LITEDJ
@3LITEDJ 6 жыл бұрын
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!!
@wolfgangeuen9799
@wolfgangeuen9799 5 жыл бұрын
Nathan, your presentation is just perfect! Thanks a lot.
@mehulvarshney6708
@mehulvarshney6708 5 жыл бұрын
This is the most underrated KZbin Channel!
@minoruhaginoya2249
@minoruhaginoya2249 6 жыл бұрын
Wow, thank you so much for such a detailed tutorial!! You're awesome!
@seandonelan5740
@seandonelan5740 4 жыл бұрын
Very useful video, thanks for taking the time to create it.
@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.
@bluuey
@bluuey 2 жыл бұрын
Your tutorial greatly helped, thank 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
@aaronglafenhein9565
@aaronglafenhein9565 6 жыл бұрын
this is the best tutorial by far that i have found on the web!
@zaimaiman4742
@zaimaiman4742 6 жыл бұрын
This video really help me up on my project. Thanks for helping me.
@mannhansen9337
@mannhansen9337 6 жыл бұрын
Thanks. Very good and instructive. You saved me a lot of time collecting information.
@duntyou8
@duntyou8 6 жыл бұрын
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 жыл бұрын
Thanks Nathan - A most useful tutorial - Cheers :)
@engamin89
@engamin89 4 жыл бұрын
YOU'RE AMAZING!! Thanks a lot for amazing video.
@ma.angelicamayor4605
@ma.angelicamayor4605 3 жыл бұрын
Great Video! Continue inspiring us!
@karthikk4890
@karthikk4890 6 жыл бұрын
The best video I've ever seen. Awesome keep up the good work!!!!!!!!!!!!!!!!!!!!!!
@rssicr1tical
@rssicr1tical 5 ай бұрын
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.
@ManuVenugopaltheblazedundead
@ManuVenugopaltheblazedundead 6 жыл бұрын
Dude. Thank you so much. I've been following this tutorial for almost 2 days now and I finally got it working. A few things to add for someone who may face the same problem as me: 1. for some reason, I couldn't get pin 18 and 19(TX1 and RX1) to work the way I want to so I ended up using pin 0 and 1.(RX0 and TX0). The only thing to keep in mind while doing that is, while uploading the code to the Arduino, you need to keep RX0 and TX0 free. After uploading the data, you can reconnect them. Also, in the code that you copy from the Blynk website, change ' #define BLYNK_PRINT Serial1 ' to ' #define BLYNK_PRINT Serial' because you're working with Serial and not Serial1. 2.Also while flashing the firmware to the ESP module, I connected the RESET of the Arduino board to GND. It helped me, it may not help you. 3. Also while flashing firmware, connect RX of ESP to RX of Arduino and TX to TX of Arduino.
@duntyou8
@duntyou8 6 жыл бұрын
That's awesome. Two days ain't bad. It took me five days to work out all the problems prior to making the video. It is strange that Serial1 did not work for you. Did you try Serial2 or Serial3?
@GaryTube18
@GaryTube18 7 жыл бұрын
Very helpful. It took me 2 days to setup the esp8266 XD
@rajdeepdas86
@rajdeepdas86 5 жыл бұрын
Thanks a lot for this amazingly detailed tutorial
@ayubi4070
@ayubi4070 4 жыл бұрын
im glad i found this tutorial
@usersn300
@usersn300 3 жыл бұрын
Also, well written description :)
@ronenbarakc.p.a8985
@ronenbarakc.p.a8985 4 жыл бұрын
great videao very very well explained - one of the best. you got the talent
@cemcumhurklc5531
@cemcumhurklc5531 5 жыл бұрын
At last it works thank you for your sharing.
@coctakiesmaster4513
@coctakiesmaster4513 6 жыл бұрын
excellent wifi controlled working video
@mcie6306
@mcie6306 3 жыл бұрын
Great video thank you so much man, that's fantastic
@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.
@pbalba
@pbalba 6 жыл бұрын
Thanks a lot, man. Best tutorial ever.
@pbalba
@pbalba 6 жыл бұрын
omg just realised you were my teacher at SLB!! El Tigre 2001!! =)
@philipcherry1104
@philipcherry1104 5 жыл бұрын
Thankyou soo much! I had been pulling my hair out over this
@adarshtomy3483
@adarshtomy3483 6 жыл бұрын
perfect one i was looking for it.thank you
@RadiofarafiltruBlogspot
@RadiofarafiltruBlogspot 5 жыл бұрын
many thanks it works very well !!! i try many pojects on the net, but no one function. this it work on first try. i do alimentation of esp8266, direct from arduino mega, on pin 3,3v and it work very well
@AfzalRaza54
@AfzalRaza54 6 жыл бұрын
nice and detailed info for beginners
@jerrijaenuri3019
@jerrijaenuri3019 8 күн бұрын
Halo Nathan, I have followed everything from the beginning until I found that esp is not responding during the blynk example test. I have tried various ways and searched various forums and tried again, but it didn't work. How do I solve this? thank you.
@zaimaiman4742
@zaimaiman4742 6 жыл бұрын
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 6 жыл бұрын
Sometimes people have problems with flashing the ESP. I give some troubleshooting hints in this video, starting from time 2:30 … kzbin.info/www/bejne/oZ-8h3ylbdCBoaM This is another video where I discuss problems with flashing ESP modules, starting from time 10:50 … kzbin.info/www/bejne/nZncnYGJn76Xg9U
Introduction to ESP32 - Getting Started
47:57
DroneBot Workshop
Рет қаралды 1,7 МЛН
#1 Program an ESP01: The easy way!
7:38
AIbeginsDotNet
Рет қаралды 117 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,9 МЛН
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,6 МЛН
The BEST Mechanical Display You've EVER Seen!!
13:51
Tin Foil Hat
Рет қаралды 623 М.
Визитка программиста
19:40
Александр Красников
Рет қаралды 254 М.
Blynk IoT (Blynk 2.0) App w/Arduino Uno R3, ESP8266 ESP-01 Module, Blynk Cloud & 4 x LED [TUTORIAL]
39:58
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 649 М.
Wireless Light Bulb Control Wifi Relay Module ESP8266 01/01S ESP RELAY
8:58
WIFI module ESP8266 - AT commands & sending Data to WebBrowser
12:36
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.