Це відео не доступне.
Перепрошуємо.
Serial communication between ESP8266 12E(NODE MCU) and Arduino
Вставка
- Опубліковано 22 бер 2018
- #arduinoproject #arduino #projectideas #schoolproject #college #finalyearprojects #homeautomation #bluetooth
This Video demonstrates the serial communication between Arduino and ESP8266-12E(NODE MCU). This Interfacing is useful when you want to add more than one analog sensor because ESP8266-1E or NODE MCU has only one built-in ADC PIN. So now you can add more analog sensors and send the data in string form to ESP8266-12E and ESP8266-12E or Node MCU will do the rest. This means it will upload the data to your MySQL database.
🪔 Please help to grow my channel by subscribing to my channel:
🎬 / @myengineeringstuffs
👉 You can visit my website and find interesting projects.
🌍 myengineerings...
⚡🌟⚡🌟 More Projects below🌟⚡🌟⚡
🧸 Game using Arduino
🎬 • Two Player Ping Pong G...
🌍 myengineerings...
📡 Notice board projects
🎬 • IOT (internet of thing...
🌍 myengineerings...
🎬 • Wireless notice board ...
🌍 myengineerings...
🏡 Home Automation Projects
🔥 Firebase Based Home Automation
🎬 • Google firebase based ...
🌍 myengineerings...
☁ Google Assistance Home Automation
🎬 • Google firebase based ...
🌍 myengineerings...
⏱ RTC Projects
🕜 Schedule ON/OFF devices using RTC
🎬 • Schedule turn ON/OFF o...
🌍 myengineerings...
🕜 Timer, Stopwatch, and Alarm
🎬 • Schedule turn ON/OFF o...
🌍 myengineerings...
🔌💡 AC voltage controlling Projects
🎬 • ARDUINO AC VOLTAGE CON...
🌍 myengineerings...
👉 ⛅🌈Weather Monitoring Project
🎬 • Weather data monitorin...
🌍 myengineerings...
👉🖨️ Thermal Printing Machine DIY
🌍 myengineerings...
🎬 • Mini serial TTL Therma...
🌍 myengineerings...
⚠️Disclaimer: It contains Amazon affiliate links. which means I can get a small commission on the sale.
This might be your indirect help to me.
🌟 Material Requirements:
👉 Arduino UNO ⚡ amzn.to/3ryB1ED
👉 ESP8266-01 ⚡ amzn.to/39qiioC
👉 Small Bread Board ⚡ amzn.to/3wdPKZ9
👉 Connectors ⚡ amzn.to/39rwoGy / amzn.to/3mgxB8R
👉 DHT-11 Sensor ⚡ amzn.to/3ryC2MX / amzn.to/3dzq81W
👉 DHT-12 Sensor ⚡ amzn.to/39sGbvK
👉 Variety connectors⚡ amzn.to/3mgxB8R
👉 Arduino Starter KIT ⚡ amzn.to/3eOYfTU
👉 HC-05 Bluetooth module ⚡ amzn.to/2Pa9P28
👉 Micro servo ⚡ amzn.to/3n1q0uW
👉 LDR sensor ⚡ amzn.to/2Q9rLul / amzn.to/40lnJxS
👉 LDR sensor module ⚡ amzn.to/3tMdodC / amzn.to/3kXZqGi
👉 Microswitch ⚡ amzn.to/3tMduC0
👉 5mm LED ⚡ amzn.to/32vtLzC / amzn.to/3wPEB2c
👉 Variable Resister POT 10K ⚡ amzn.to/2QD1iVF
👉 I2C LCD Module ⚡ amzn.to/32smgt2
👉 16x2 LCD Module ⚡ amzn.to/3ecu07Y
👉 0.96" I2C OLED ⚡ amzn.to/3JmV1H1
👉 Raspberry Pi Pico ⚡ amzn.to/3HgWY5e
👉 RC522 RFID ⚡ amzn.to/3j6cJUE
👉 Micro USB Cable ⚡amzn.to/3HEhNJ0
👉 TCS3200 Color Sensor ⚡amzn.to/3XRQtg9
👉 PCF8574 IC ⚡amzn.to/3kUzgnP
👉 NodeMCU⚡amzn.to/3HHGKUa
👉 MAX7219 32x8 Dot matrix display⚡amzn.to/3RjJU3s
👉 Variable Voltage Supply⚡amzn.to/3YtdPsD
👉 USB to TTL⚡amzn.to/3wIcL8d
👉 RTC Module⚡amzn.to/3wLahG4
👉 4 Channel Relay⚡amzn.to/3RoX67f
👉 Thermal Printer⚡amzn.to/3jjL96b
👉 P10 Display⚡amzn.to/3HouW7Y
👉 4x4 Keypad⚡amzn.to/3DvDHM5
👉 Raspberry Pi Pico⚡amzn.to/3XIBMMq
👉 Micro USB Cable⚡amzn.to/3Hzdmzo
🎶Music in this video
Artist: Keith Kenniff
Album: The Last Survivor
A little tip, you can record the desktop with obs studio! You can enable hardware accelerated encoding for better performance and quality than you have now!
And obs is opensource so that is a large bonus
Thank you friend for your suggestion.
Vin of nodemcu is up to 12 V, there is a regulator on the board. But don't forget the serial communication between arduino and esp. You have to use a partitor of tension or voltage adapter because you may demage the esp8266 in the RX input pin
Hey *Walter P* thanks and that's true all ESP's operating voltage is 3.3v, but for my experiment I use 5v as default. As of now my ESP's are OK but yes we should not provide 5v. Once again thanks.
@@MyEngineeringStuffs you're welcome ;)
Nice video partner, easy to understand you are a machine.
Thank you friend.
Is it ok to connect the nodeMCU to the Mega? Cause i have read in some post that the Mega is 5v and nodeMcu is 3.3v will it damage it
Hey friend i m doing only as an example. So better to use voltage divider in the Rx pin of NodeMCU for 3.3v but for i example... I want to show the transmitting and receiving functionality and rest safety you people need to find out.
Thank you.
I recommend to use resistor.
Thank you so much - this has helped me so much!
Happy to help
sir, can you send me the link to download the circuit diagram? the above link only has code. thanks.
i want to send a number (for example: 120) from nodemcu to the arduino mega, you know how to do it?
you can send it as it is... but while receiving the exact data it will be in array. so you need to take out of the and subtract 48 from each of the so that you will get the exact integer. Because you are transmitting a string from nodemcu.
sir, i have this question hope you have the answer of. I am doing this led matrix project project where user can make any text to appear on the scrolling led dot matrix. I am having trouble setting up the serial connection between my arduino with the nodemcu. i want the nodemcu to recieve the data(that the user would enter on a web page) and then it would be trasmitted to the arduino so whatever message the user wants is displayed on the matrix display. I'd be so happy if you can help me with this
thank you my friend you are the best!!
Thank you friend for your kind words.
WOW so much thanks, you are my live saver, really big thanks
welcome
hi. how can i send let''s say data like temp value FROM my eps32 TO my arduino uno?
You can use the same procedure as in the video.
May i know what is the use of char(176) just after displaying temperature in the mega code?
thank you sir
Hey friend if your search ASCII decimal value of degree centigrade symbol you will find 176.
@@MyEngineeringStuffs Thanks a lot
Thank you very much, it is useful!
Thank you *Arak Rachael* for your kind words.
thank you sir
Hi thansk for this video.
but how can i upload to arduino NANO ? works with mega but not NANO
how i can send the sensor data in arduino mega to thingspeak with node mcu
Sir we have to insert both node mcu and arduino uno simultaneously and then run the code seperately using different ports.
Yes *Rajiv nayan singh*, To see both the data at the same time. Means at transmitting end and in receiving end, we need to open two serial terminal at the same time. If you don't wish to see the transmitting data you can program both the board and by opening serial monitor only for Node MCU will also work.
Sir I mean to say we have to code for node mcu on another pc and for arduino on another?? and to watch serial monitor on two different pcs??
*NO Rajiv nayan singh* it is in the same PC, we need to open Ardiuno IDE two times.
Sir I am trying it since 2 weeks the comments I send to nodemcu are recieved properly but the sensor data isn't. What should I do
i think it is because of *delay* in the code, try to set to give a valid sensor data.
bruh thanks for the amazing tutorial plzz share circuit diagram
tx arduino = 5v
rx esp8266 = 3v3
???????????????????????
Hey hope you are fine
I need your help regarding serial communication between arduino mega and node mcu i'm working on smart home where we have use sensor for operation
Thnkw
Hello sir, for me its showing this 1)Error Board nodemcu (platform esp8266, package esp8266) is unknown
2)Error compiling for board NodeMCU 0.9 (ESP-12 Module).
*Pallavi Lambe* you need to install the ESP board first then in the board manager you will find all the boards related to ESP. To install all the board search for "How to add ESP board in arduino IDE". You will get number of tutorials to do that. Then add the code and compile for node MCU.
Thanks sir
Can you please tell me how I can send this sensor data, that the nodemcu has received from the arduino (by serial communication), to Thingspeak. I was able to do the serial communication part successfully, but is unable to send this data from nodemcu to Thingspeak, I've tried several ways but failed. Any kind of suggestion or help would be greatly appreciated, thanks.
Hey friend, You need to download ThingSpeak library and code it in NodeMCU. Just google the library and search for an example. It's very easy to use. Thank you
Dear MyEngineeringStuffs, i love the tutorial you have made. But i got a problem with the sketch. Can i get the sketch like shown in the clip? Thankyou.
Please mail us at support@myengineeringstuffs.com
i've sent a mail just now
sorry, may i get the real program like show in the video? I've downloaded the program from the link on the caption but it has been modified and different with the program on the video
Hi Risana thank you. Sorry, for the inconvenience. Just now i check with the download section. I think the code you have download is for weather forecasting. Please download once again the code from the link given or mail me at support@myengineeringstuffs.com i will mail the code. Please comment the problem you are facing...
MyEngineeringStuffs okay, i have sent a mail
Hi sir! In the case of communicating with a MySQL database, how do I do it? What commands do I have to give, and on which board (Arduino or ESP)? Thank you!
Hey the process goes like this. At software end you need some web pages to handle the process. First host some web page on your local server or on web server. Then using that URL of the web pages you can insert the data to the data base like MYSQL. And at the hardware side use any module or board which is having a WIFI connectivity(like Arduino + ESP01, any module from ESP) and try to ping/call the URL you have created on your local or web server
thanx
Thank.
Great project but unfortunately the link of the code is dead! possible to put it back online? Thanks in advance
I attach my email if it was possible to send it to me?
because all the examples are always with temperature sensor
can do the same but activating mega outputs by means of esp?
Hello friend, can you please give a complete description of what I need to do. Sorry just want to be clear.
@@MyEngineeringStuffs hello, it's very easy, if you watch videos on UA-cam you always come up with examples of temperature sensors, temperature graphs, etc ... because projects like this one are not made, but activating contacts
that is, you give a signal to the esp (by voice, by web or by physical contact) and the esp activates one or more outputs of the arduino
do you have simple tutorial for sending 1 data from arduino mega to nodemcu ? i currently struggling to make my mega communicate with nodemcu
Hi, have you did it ?
how to take data from multiple sensors and send it to node mcu and then to the cloud .plz help me
Please. mail me at support@myengineeringstuffs.com to get full support. Thank You.
Hi sandeep... you can download the code from this link ( myengineeringstuffs.com/download/1216/ ) and add as much sensor data you want but follow the basic rule. Like Read the DATA in ARDUINO side convert it to STRING then transmit the DATA to NODE MCU then convert the DATA to INTEGER from STRING then publish the DATA to ADAFRUIT.IO cloud. Hope this helps you.
MyEngineeringStuffs sir isn't it possible to send data without converting it into string
Hey *vijay mourya* as of now i have tested with string only and i think its a bttr way of sending data. You can try to send data with a Character followed by the sensor data. Character will represent the type of data(Humidity, Temperature, etc...) and followed by sensor data. I hope this works for you.
I get error 404 when I try to download the code and library, is there another location to get it from?
Thanks
Hey friend sorry for the inconvenience, website is under construction.
Please mail about your requirements, I will send you ASAP.
Dear sir,
i used this code can not compiling.error showing like this
MEGA_CODE.ino:2:17: warning: extra tokens at end of #include directive
MEGA_CODE.ino:2:18: fatal error: dht.h: No such file or directory
compilation terminated.
Error compiling.
i dowanload library but same error.sir how to slove...
Hi friend looks like extra semicolon error. Can you just copy and paste the code you are using.
im using a dht22 sensor i have edited the code and i have the reading on my serial,but when i open my serial for the esp,the serial of mega closes,and on the serial for esp i've nothing on my screen.
p.s: ive connected the the transmitter of mega to a voltage divider giving an output of 3.3v then connected the receiver of esp.
help please
Hey friend you need to open Arduino IDE twice. So as to run both the code simultaneously with respective window which allows us to open two different serial terminal at the same time.
@@MyEngineeringStuffs Do you have the code for the reverse process of combining both humidity and temperature for nodemcu?
thank you
Hi.. is the connection same with arduino uno instead of arduino mega? can i get the circuit? the download link in the description only have code.
No, friend.
Sir, i am using a acs712 current sensor and node MCU
And i want to establish a serial connection between them can u explain..
Plzz help !!!
Hey *Kunal Vibhute* if you are using only one sensor Node MCU can read directly Analog data of current sensor and if you are using multiple analog sensor then you can use Arduino UNO to read all sensor data and follow this tutorial. And let me know. Hope it helps you.
@@MyEngineeringStuffs i have same issue sir.. im using two analogue sensor
do you have a tutorial for nodemcu that send sensor data from uno/mega to blynk ?
Sorry friend till now i don't have any. Extremely sorry.
@@MyEngineeringStuffs let say i do receive the data on nodemcu from mega via Serial1. now i want to make a Serial.print on my nodemcu but it keep show the value of Serial1 that mega keep sending. is there other way to do this ?
Hey friend only one serial port is available. So the pins which you are using to receive data ... you can not use to same serial pins to display data. If I am not wrong the software serial will also work fo Node MCU. Test to upload the software serial code into Node MCU and make any two pins as Tx and Rx.
Sorry friend.
how can i obtain output on my phone?????
I check circuit link but I can’t find it. The usb cable connect esp12 and mega,correct?
Yes, friend. For uploading, power and debugging. I am using the USB cable and open two different windows. One with ESP settings and one with Arduino settings.
so the communication is not through wifi, but instead go through usb-PC-usb?
Friend its a Serial communication between NodeMCU and Arduino MEGA. Both are connected using Tx and Rx pin.
can i use arduino uno and i need reply ASAP pleaseee?
yes friend
Hi Sir may i know why i get the error in the 'Serial1' was not declared in this scope, Thank you
May be you are compiling the code for any other board. Change the board from board manager to Arduino MEGA.
Thank you
@@MyEngineeringStuffs Thank you SIr, I get it already
Thanks for sharing this, btw, how can I send the other way. ie. Sending FROM NodeMCU to MEGA.
Edit: The code up there works very well :)
Thank you friend.
I found the solution. Serial.println (nodemcu) outputs directly to the Serial1 (mega).. just need to listen to it.
How can you sending from nodemcu to mega? Please help mr to share your sorcecode...
@@brunobernard86can you sending data from nodemcu to arduino mega? If you can it, please share your code.. thx
Hey friend you need to send data from Mega to Node MCU. And write a code in the Node MCU to listen the data.
hell, we havve gasted a dayou us find a solutuon, tanksti=o find this, but with y
thanks
Thank You
it is way send data from arduino mega to nodemcu ( esp8266 12e) and if i want send data from nodemcu to arduino mega, please can you help me ? i have problem it
Ya sure... But please describe your problem statement(What exactly you want to do)
i want to send data from to nodemcu to arduino and opposite
very sorry, my skill English is not good
can i get link to download the code sir ?
Sorry for the inconvenience friend. My site is under construction soon I will provide all the codes published in the YT
Music 🎶????
Apple Ad invention
Too bad the site is down :(
Sorry friend the site is under construction. Please contact me on my mail id. I will send all the details.
Download Code Link: myengineeringstuffs.com/download/1050/
it does not need to include in both mega and nodemcu code ?
HOW TO CONECT WITH BLYNK
@@haivuhaivu5676 watch
ua-cam.com/video/P00jdnomaRk/v-deo.html
@@haivuhaivu5676 watch .................ua-cam.com/video/P00jdnomaRk/v-deo.html
Error 404