Serial Communication - Arduino UNO and ESP8266 (ESP-01)

  Переглядів 220,550

TechSteering

TechSteering

5 років тому

In this video, you will learn how to do the serial communication between Arduino UNO board and ESP-01. This is a must see video for those who are Arduino lovers and are stepping into the field of Internet of Things using Arduino.
Please do watch other video which sends values from Arduino to ESP-01 : • Serial Communication -...
arduino.esp8266.com/stable/pac...
github.com/jatindera/SerialCo...
www.arduino.cc/en/Reference/S...

КОМЕНТАРІ: 257
@techsteering
@techsteering 4 роки тому
Please do watch other video which sends values from Arduino to ESP-01 : ukposts.info/have/v-deo/oYKemqSdeJCDxmg.html A new step by step series on making your own smart light using ESP8266 and Alexa Skills: (11 Videos) ukposts.info/have/v-deo/qINebYBqqniStIE.html
@uvaishwarsii
@uvaishwarsii 2 роки тому
please Make a project on "ARDUINO UNO with ESP8266 & 8 CHANNEL RELAYS" and program it..... 🙏🙏🙏🙏🙏
@SupremeNoble
@SupremeNoble 5 років тому
Yo after a billion youtube tutorials, this is the only one video where I have been able to get the ESP8266 to actually do something! Thank you so much man! :DDDD
@HariKT
@HariKT 3 роки тому
@Random Duo I guess you already know this. For the rest : Changing baud rate to appropriate one will show the correct message.
@prezbenny7842
@prezbenny7842 2 роки тому
You're probably the only one (I watched) so far that explained how to connect ESP-01 and Uno (Nano perhaps), nice and good job friend.
@Cancellator5000
@Cancellator5000 2 роки тому
I wasted a lot of time looking through written tutorials and nothing really got to what I was looking for. This was great. I finally have a telnet server that I can use to communicate with an arduino remotely!
@brother_ahdan
@brother_ahdan 4 роки тому
I think this is the best tutorial for Arduino to EPS without AT command manually
@EgyptFishingVideos
@EgyptFishingVideos Рік тому
Thank you very much. I have been searching for a couple of weeks, and your video is the ONLY one that gave a complete solution; meaning covering the programming stages (code + connections) on BOTH ESP2866 and Arduino! Best regards.
@jsmythib
@jsmythib 2 роки тому
This was the straight forward tutorial I was looking for! Once the 3.3v regulated is powering the esp8266, its digital output are still recognized by the 5v arduino inputs. However, in a perfect world I would use a voltage divider to lower the digital output from the arduino to esp @ 3.3v. OK, Im going to try. Thanks you :)
@ersinkar8902
@ersinkar8902 5 років тому
after hard days, at last find a really working tutorial. thank you bro :)
@stanlo45
@stanlo45 4 роки тому
Thank you. Clear, concise and to the point.
@toshib_raza
@toshib_raza 3 роки тому
After finding so much on internet i found it ..... your explanation is nice with proper details with ( do, don't do and why don't do)...thank you......
@aymenberkaoui8871
@aymenberkaoui8871 5 років тому
Thank you so much for your video. Waiting for more ESP8266 videos
@kanickdinesh3229
@kanickdinesh3229 4 роки тому
thanks a lot sir, u have really helped me , i was struggling helplessly up until i came across this video............
@shohishi
@shohishi 5 років тому
Thanks so much for the tutorial have had a hard time trying to get it to work.
@ARMANSAHI
@ARMANSAHI 5 років тому
thank u man your video crystal clear teaches the esp connection and finally its running a big thanks
@swiffels1445
@swiffels1445 7 місяців тому
I found this tutorial after 3 hours of trying to figure out why mine wasn’t working, I just went into run app data and deleted the old eps8266 folder I had and then re downloaded the same version he used and it magically started working!!! Thx so much
@djjjozsi
@djjjozsi 3 роки тому
Yeah, tomorrow i'm gonna make this. Thanks for sharing this piece of tutorial. I'm a newbie :) Thanks!
@ZookeeperJohnG
@ZookeeperJohnG 5 місяців тому
"Connect the Reset pin of the Arduino to ground" for the WIN!!! THANK YOU! :)
@tomazbarrantes
@tomazbarrantes 4 роки тому
Best video seem explaining esp8266 + arduino
@jrfirefox8515
@jrfirefox8515 5 років тому
Shurkiya. Best tutorial for esp8266.
@Lez10344
@Lez10344 2 роки тому
Amazing tutorial!! Thank you so much
@hishcodes
@hishcodes 3 роки тому
You are really great man......Thank you so much... I thought my esp01 was dead...but turns out that I didn't knew to use it correctly. Thank you so much
@techsteering
@techsteering 3 роки тому
Glad I could help!
@Omar.bin.khattab
@Omar.bin.khattab 4 роки тому
perfect tutorials ..... can u make another one for making module run as Web Server and how to communicate to Arduino as web server .. thanks again
@Unknown-xw6ik
@Unknown-xw6ik 5 років тому
thanks for this awesome tutorial.
@thomasmolina1024
@thomasmolina1024 3 роки тому
Great explanation, thank you.
@sayokdeymajumder6180
@sayokdeymajumder6180 5 років тому
Man you are awesome. This was really useful.
@hc8714
@hc8714 2 роки тому
This is best out there. The others are really not for beginners.
@rishabarora9269
@rishabarora9269 3 роки тому
Nice Tutorial, Thanks for sharing this.
@batticha462
@batticha462 4 роки тому
Great tutorial from great teacher. It is a pity that there is no much tutorials about Arduino
@techsteering
@techsteering 4 роки тому
I will to add more. Thanks.
@clebdev
@clebdev 2 роки тому
Dude, that's a great tutorial, tnks for sharing.
@BudaSuyasa
@BudaSuyasa Рік тому
Fantastic tutorial!
@Robtor.
@Robtor. 8 місяців тому
Interesting. Thank you.
@jube1907
@jube1907 2 роки тому
thank you! it finally works
@emirhan1356
@emirhan1356 4 роки тому
An awesome video. Congratz
@guliyevshahriyar
@guliyevshahriyar 11 місяців тому
thank you very much, this is the most complete tutorial
@garysenier2440
@garysenier2440 5 місяців тому
Thanks for mentioning about the voltage regulator ... I would have used the onboard 3.3v ... after investigating the uno and Mega2560 they both only supply 50mA ... The esp8266-01 can use as much as 170mA during transmit. I will probably try it with 2 - AA batteries ... only 3v but i am guessing it will still work fine.
@jccruzh
@jccruzh 2 роки тому
wow, the video has some audio problems, but the content and code it's great, thanks for sharing
@SivaPrakashg3
@SivaPrakashg3 4 роки тому
thanks a lot for tutorial !
@LaxinitUp24
@LaxinitUp24 2 роки тому
Outstanding tutorial! You don't miss a single detail. I followed these steps and everything worked perfectly. Much appreciated. Also, I did this without the 3.3 Voltage regulator although I haven't done any long term testing.
@BasemAtia1
@BasemAtia1 2 роки тому
What did u use instead of the regulator ?
@seoul_Jin500
@seoul_Jin500 День тому
how?! without voltage distribution
@sukrukorcoban7020
@sukrukorcoban7020 4 роки тому
it is very good video can you explain how to send sensor data from arduino to esp and from esp to webserver or thingspeak
@Electronics61
@Electronics61 3 роки тому
Excellent video. I saw this first time and have subscribed your channel.
@techsteering
@techsteering 3 роки тому
Thanks.
@alyazfar6958
@alyazfar6958 7 місяців тому
Nice explanation thanx
@abdulwasey1814
@abdulwasey1814 3 роки тому
thanks man u r legend
@jazzingh1201
@jazzingh1201 5 років тому
it does work thanks
@HakkiOgrt
@HakkiOgrt 14 днів тому
thank you for your help, I subscribed
@manjunathmanjunath3973
@manjunathmanjunath3973 3 роки тому
thanks for your knowledge sharing
@markuskernoecker6848
@markuskernoecker6848 Рік тому
can i use the RX and TX pins for communication as well?
@dragonmil6911
@dragonmil6911 5 років тому
do you know how to send data from arduino to esp-01?, great video c:
@jannis6841
@jannis6841 5 років тому
and how can I connect the ESP to the WLAN?
@pierreatallah3797
@pierreatallah3797 2 роки тому
Thank you my friend👌
@anonyone8834
@anonyone8834 3 місяці тому
thanks, it helped alot
@kailashb2011
@kailashb2011 Рік тому
Realy a working tutorial
@lasthandman
@lasthandman 5 років тому
Liked and Subd. A quick question, why did you move tx/Rx to pins 2&3? Could you have left them as is? Awesome and very descriptive video!
@lasthandman
@lasthandman 5 років тому
Unsubscribe and unliked,
@THEWHITEKNIGHT
@THEWHITEKNIGHT 5 років тому
@@lasthandman are you talking to yourself ? hahaha
@rahmaeldreny2746
@rahmaeldreny2746 Рік тому
how did you have the virtual serial com port? I can't do it cause I have only one com port
@karenspalter1839
@karenspalter1839 Рік тому
do i need to connect both arduino and esp usb to computer?
@carlitoespinosa5449
@carlitoespinosa5449 4 роки тому
Hi :) can i use this connection to flash AT commands?
@makrinetskipurishvili
@makrinetskipurishvili 3 роки тому
Thank you so much!!!!
@katiacassar
@katiacassar 4 роки тому
So by doing this process, do you connect the Arduino Uno to the Wi-Fi?
@ankitnishad3320
@ankitnishad3320 3 роки тому
is it neccesary to use voltage regulator
@logikozrc
@logikozrc 4 роки тому
i love u boy
@obaidsid
@obaidsid 4 роки тому
Excellent Video! I would like to know how can i read the data from my equipment and transmit it back to it me on my smartphone. Let say I have an inverter for my solar panels and everytime i have to go physically near to it and check can i get the same values on my cell phone using this method. Yes my inverter have a rs232 port
@techsteering
@techsteering 4 роки тому
If you could read values from inverter and send it using MQTT, you can receive it on your smartphone. Please check my MQTT videos. It's part of my new series "Alexa based smart light"
@gregoryderwon3133
@gregoryderwon3133 2 роки тому
why did you use software serial ? you could have left in on de hardware serial ports .. or is it a must ?
@Zerklickt
@Zerklickt 4 роки тому
It is also possible to have the two controllers connected to different power supplies isn't it?
@MrKillerboyz45
@MrKillerboyz45 5 років тому
good explaination bruh... btw i have question need to be ask. do you know how to make doorbell able to send signal to camera to snap a picture after the doorbell being pressed?
@techsteering
@techsteering 5 років тому
This can be achieved in multiple ways. Place a motion sensor/ distance measuring sensor (ultrasonic)/ touch sensor with door bell and send the signal through bluetooth or MQTT to the Raspberry pi. On receiving the signal, Raspberry pi could execute the command to click the picture. If you are using a foscam, check for foscam APIs. They also provide this feature for developers.
@Willycruyff
@Willycruyff 5 років тому
Thank you man! You save me hehe 😁
@bngk2114
@bngk2114 5 років тому
Thank you my friend and i want to send data from Arduino board to esp-01 please tell me if you knows
@hasnaah5977
@hasnaah5977 5 років тому
Please can you tell me how to get and install software serial library. Thnx
@elitekiller2434
@elitekiller2434 4 роки тому
i would like to connect a similar project with google firebase. is the procedure similar?
@mahadihassanriyadh
@mahadihassanriyadh 5 років тому
Which operating system are you using?
@arvindh4327
@arvindh4327 2 роки тому
Why haven't you level shifted tx & rx channel btw 8266 and uno? As per data sheet 8266 tx and rx are 3.3v reff
@marijnfly
@marijnfly 4 роки тому
I also ran into the 'Times out waiting for packet header' error. Only after using my first Arduino board (lolon d1 mini v3.1.0) for not even an hour. I am a beginner and I don't understand the troubleshooting process and the comments so far on this problem still leave me clueless how to proceed. I have another board, but I have no idea why it got bricked so easily so I don't want to try that one now. Can it be restored without doing hardware stuff? Just by connecting it with the USB? Any help is greatly appreciated.
@gagansharma28
@gagansharma28 4 роки тому
Awesome.
@ziyamaslam2728
@ziyamaslam2728 4 роки тому
hey bro i have arduino uno along with temp,humidity,soil moisture,rain sensors. and i want to save these values into my website domain's database. can u help me how to solve my problem. how can i fetch all readings from Arduino uno to NODEMCU esp8266. then pass these values to DB
@emirhan1356
@emirhan1356 4 роки тому
How can i do. If esp01 returns a string for example if esp01 returns led_on , uno lights the led up
@alos.1198
@alos.1198 2 роки тому
Can i use the 3.3V from arduino directly....without using the voltage regulator?
@awsomeasif6862
@awsomeasif6862 4 роки тому
Uno with ESP-01 (SoftwareSerial) on connecting to Firebase ?
@wotesi
@wotesi 5 років тому
You have got good teaching video. Thank you! But would you help me in similar case - I have got ESP-01 adapter, where I can plug my ESP8266. It has 8 pin connector and out I get 4 pins - VDD, GND, RX, TX. I would like to control, for example, a LED with Mobile phone. So I need to connect it somehow to Arduino (which I can maybe figure out myself), then I need some S/W to connect with my mobile phone to me ESP8266 (like to Bluetooth HC-06 module), which I believe I can find in Internet, but how about Arduino code? How to program Arduino to receive signals and to operate LED? Thank you in advance! BR, Valters
@techsteering
@techsteering 5 років тому
I would recommend to use ESP8266 Dev Board + LED + Mobile to achieve what you are looking for and skip Arduino. The reason I am saying that is you could achieve what you want without Arduino. For some specific reasons, if you wish to use Arduino then you have following choices: 1. Use combination of Arduino + LED + Mobile + Bluetooth module and control LED from your mobile using bluetooth. In this case, you don't need to use ESP-01 2. Let's say you wish to control throught WiFi. Then use Arduino + ESP-01 + LED + Mobile + MQTT (CloudMQTT). Mobile will send the on/off request to MQTT. You can download an existing MQTT app for mobile. ESP-01 will be a subscriber for MQTT. As soon as, mobile sends the on/off request to MQTT, ESP being a subscriber will receive the same. Next, ESP will pass on the on/off request to Arduino through serial communication and Arduino will turn the LED on/off basis on the instructions it has received. Further, in option 2, you can still choose to skip Arduino, ESP-01 and use ESP8266 dev board instead. Personally, I would prefer to use serial communication where something is already designed using Arduino and I need to extend the functionality using ESP. For example: Let's say an arduino based car is already designed and now I want to control it using Alexa voice commands. In this scenario, I will add ESP-01 on top of Arduino. Hope this helps.
@vikaspatil1234
@vikaspatil1234 2 роки тому
Uploading this sketch on ESP, does the firmware erase?
@BharatiSubramanian99217
@BharatiSubramanian99217 4 роки тому
Can you please help me out? I have a different ESP8266 module which has different configuration and pins. I'm unable to find a VCC pin. Can you please help me out?
@hyunglegaspi6220
@hyunglegaspi6220 2 роки тому
Do you have idea about Esp8266 wifi module? I have a problem. AT Commands doesn't work. It only displays reversed "question marks". Thank you again
@FarezGhaniMaheswara
@FarezGhaniMaheswara 10 місяців тому
So i need to upload code to esp01?
@heitlerremlalfaka4063
@heitlerremlalfaka4063 3 роки тому
sir, great tutorial.. hats off to you.. sir, i have a question though, id be really grateful if you answer my doubt.. When, we upload the code to esp, does that mean we have- flashed the firmware and uploaded a new firmware (which is our code) , or is the original firware still there along with the program that we have just uploaded (to the esp)..
@nameless8674
@nameless8674 3 роки тому
In some tutorials i saw that u need to connect esp rx to tx of the arduino, when u go rx to rx and when rx to tx ?
@abdulwasey1814
@abdulwasey1814 3 роки тому
to program esp8266 he is using RX->RX and TX->TX and for listening or serial communication he is using RX->TX and TX->RX.. this is what i understand correct me if i m wrong
@crispychickenwing
@crispychickenwing 2 роки тому
Can I use esp8266 together with Hc05 bluetooh module using 1 arduino uno board
@ankitnishad3320
@ankitnishad3320 3 роки тому
Is it important to flash firmware in esp01
@amprodes
@amprodes 4 роки тому
HI am using a loRa-02 radio module and it also communicating with my Arduino and everything goes well until I add mySerial(2,3) then nothing show's up, help please!
@rawanlankesh5283
@rawanlankesh5283 2 роки тому
Is possible to send and receive serial data between ESP-01 and Arduino UNO in same time.
@Electronics70
@Electronics70 2 роки тому
Sir Thank You
@junaid_0948
@junaid_0948 4 роки тому
help me sir, i have done everything but nothing is being printed in serial monitor after uploading to arduino
@israrali3065
@israrali3065 3 роки тому
Sir i try this on esp o1 and uno it is working perfect but when i trying on Arduino mega 2560 it show nothing on serial monitor with all communication pins what i can do?
@shaileshsingh1717
@shaileshsingh1717 5 років тому
thanks for ur efforts sir.... can i directly connect nodemcu with uno with regulators??
@techsteering
@techsteering 5 років тому
I believe your question is, "Can I connect nodemcu with UNO WITHOUT regulator ?" Here, I am assuming that when you are saying..."NodeMCU", you mean ESP-01 board and not the NodeMCU development board. Assuming that my assumption is correct, answer is...if you are lucky, it would work for you. You need to use 3.3 v from UNO instead of 5v and rest of the process would remain same. The challenge you would face is to upload code on ESP-01. If it does not work, you would keep struggling for hours. Though if you use 3.3v regulator, it would surely run for you. So, my vote is with using regultor. Though you can still give it a try. Don't attempt to use 5v directly with your ESP-01. It may destroy your ESP. Hope this helps.
@shaileshsingh1717
@shaileshsingh1717 5 років тому
ArduinoThing thank you very much for your precious time and attention sir. i will definitely try this out
@SupremeNoble
@SupremeNoble 5 років тому
I only have 1 port that is COM5(Arduino/Genuino Uno), is this the right port or should there be 2 ports?
@sumitmainali9146
@sumitmainali9146 5 років тому
That's the right port man!:)
@bhupendersingh7737
@bhupendersingh7737 4 роки тому
Can you please give schematic if using breadboard power supply instead of regulator ?
@richallen1732
@richallen1732 5 років тому
Great video - thanks. Until last 20 seconds. Error opening serial port COM5 . port busy. is the esp using that port from the first section of the video? Any help welcomed.
@techsteering
@techsteering 5 років тому
Please try following the video from 8.40. Also, try unplugging arduino board from your computer and replug it.
@techsteering
@techsteering 5 років тому
Also do check TX RX wires. You might need to swap.
@prayujpillai
@prayujpillai 4 роки тому
After programming the esp8266, you change tx and rx of it to pin 2 and 3 of Arduino directly. I have seen other video where people pass it through a logic level converter. Is that necessary or can I do it the way you have done.
@techsteering
@techsteering 4 роки тому
It generally does not matter and ESP-01 works properly. Though it would be a good idea to pass it through a logic level converter. Thanks.
@prayujpillai
@prayujpillai 4 роки тому
@@techsteering Thanks for the prompt reply!
@saketsuman275
@saketsuman275 5 років тому
Helped me resolve upload_mem error
@vipulchauhan6562
@vipulchauhan6562 4 роки тому
When connecting arduino reset to gnd, n attempting to upload the code to esp8266, "could not open port COM7" error is coming
@sherlockholmes3864
@sherlockholmes3864 4 роки тому
thank you so much, can we send values from arduino to esp in this way ?
@techsteering
@techsteering 4 роки тому
I did not try. Let me check and get back to you.
@sherlockholmes3864
@sherlockholmes3864 4 роки тому
Thank you
@techsteering
@techsteering 4 роки тому
Hey, Just a quick update. I tried the communication from Arduino to ESP-01 where ESP-01 was a receiver and it worked for me. I will record the solution on weekend though here are the quick steps: 1. Schematic will remain same 2. Exchange the code. Code of Arduino will go to ESP-01 and vice versa 3. Keep baudrate as 115200 everywhere. =========All the best=================
@muhammadrafii8751
@muhammadrafii8751 3 роки тому
What if we connect rx to tx and tx to rx?
@InnovatetoLife
@InnovatetoLife 4 роки тому
i have a probelm ... the StringReady in arduino code never seems to get true for me ... i couldnt figure out y
@hunterpruett5455
@hunterpruett5455 4 роки тому
my arduino in serial monitor does not show any strings from the esp. it shows only Received String: How can i fix this?
Пескоструйный АППАРАТ! #shorts
01:00
Гараж 54
Переглядів 2,8 млн
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Переглядів 617 тис.
Serial Communication - ESP-01 to Arduino
9:34
TechSteering
Переглядів 14 тис.
Arduino UNO & ESP8266 and control using smartphone
9:47
Be Smart nothing impossible
Переглядів 719 тис.
Sending data to thingspeak website using esp8266 Arduino Tutotial
8:08
DPV TECHNOLOGY
Переглядів 132 тис.
How to Program ESP01 WiFi Module | Arduino IDE | DIY
6:04
NematicsLab
Переглядів 114 тис.
ESP 8266 -01 FirmWare Upgrade & BaudRate setting
17:50
Saravanan AL
Переглядів 55 тис.
Communicating With Two ESP01(ESP8266) Using Arduino
15:54
How To Everything
Переглядів 7 тис.
How to Program ESP8266 ESP-01 Module with Arduino UNO
4:22
Yellow Purple
Переглядів 23 тис.