Це відео не доступне.
Перепрошуємо.

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

КОМЕНТАРІ • 165

  • @bonnome2
    @bonnome2 5 років тому +3

    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

  • @walterp7125
    @walterp7125 5 років тому +2

    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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому +1

      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.

    • @walterp7125
      @walterp7125 5 років тому +2

      @@MyEngineeringStuffs you're welcome ;)

  • @luisangelbejargil7222
    @luisangelbejargil7222 3 роки тому +1

    Nice video partner, easy to understand you are a machine.

  • @ergicgaming1618
    @ergicgaming1618 4 роки тому +3

    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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  4 роки тому +1

      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.

  • @EmmaMaryTaylor
    @EmmaMaryTaylor 4 роки тому +2

    Thank you so much - this has helped me so much!

  • @afifzuhair6190
    @afifzuhair6190 4 роки тому +1

    sir, can you send me the link to download the circuit diagram? the above link only has code. thanks.

  • @alannomas2348
    @alannomas2348 4 роки тому +2

    i want to send a number (for example: 120) from nodemcu to the arduino mega, you know how to do it?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  4 роки тому

      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.

  • @dhruminpatel6996
    @dhruminpatel6996 5 років тому

    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

  • @3washoka
    @3washoka 5 років тому +1

    thank you my friend you are the best!!

  • @kolpikCZ
    @kolpikCZ 3 роки тому

    WOW so much thanks, you are my live saver, really big thanks

  • @mozz6052
    @mozz6052 Рік тому

    hi. how can i send let''s say data like temp value FROM my eps32 TO my arduino uno?

  • @juv4116
    @juv4116 5 років тому +1

    May i know what is the use of char(176) just after displaying temperature in the mega code?
    thank you sir

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      Hey friend if your search ASCII decimal value of degree centigrade symbol you will find 176.

    • @juv4116
      @juv4116 5 років тому +1

      @@MyEngineeringStuffs Thanks a lot

  • @arakrachael5909
    @arakrachael5909 5 років тому +1

    Thank you very much, it is useful!

  • @fikrisalahudin3387
    @fikrisalahudin3387 6 років тому +1

    thank you sir

  • @rasmusengellhansen4118
    @rasmusengellhansen4118 4 роки тому

    Hi thansk for this video.
    but how can i upload to arduino NANO ? works with mega but not NANO

  • @electronician8074
    @electronician8074 5 років тому

    how i can send the sensor data in arduino mega to thingspeak with node mcu

  • @rajivnayansingh7469
    @rajivnayansingh7469 6 років тому +1

    Sir we have to insert both node mcu and arduino uno simultaneously and then run the code seperately using different ports.

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому

      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.

    • @rajivnayansingh7469
      @rajivnayansingh7469 6 років тому

      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??

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому

      *NO Rajiv nayan singh* it is in the same PC, we need to open Ardiuno IDE two times.

  • @m.k.8440
    @m.k.8440 6 років тому +1

    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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому +1

      i think it is because of *delay* in the code, try to set to give a valid sensor data.

  • @chethan351
    @chethan351 4 роки тому +1

    bruh thanks for the amazing tutorial plzz share circuit diagram

  • @TheMathues123
    @TheMathues123 5 років тому +2

    tx arduino = 5v
    rx esp8266 = 3v3
    ???????????????????????

  • @aqeelahmad8183
    @aqeelahmad8183 5 років тому

    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

  • @pallavilambe1870
    @pallavilambe1870 5 років тому +1

    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).

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      *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.

    • @pallavilambe1870
      @pallavilambe1870 5 років тому +1

      Thanks sir

  • @farihaislam5008
    @farihaislam5008 3 роки тому

    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.

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  3 роки тому

      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

  • @firdadwisundari6104
    @firdadwisundari6104 6 років тому +1

    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.

  • @risanads
    @risanads 6 років тому +1

    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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому

      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...

    • @risanads
      @risanads 6 років тому +1

      MyEngineeringStuffs okay, i have sent a mail

  • @kennedydsa
    @kennedydsa 3 роки тому

    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!

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  3 роки тому

      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

  • @achrefhammami4871
    @achrefhammami4871 5 років тому +1

    thanx

  • @pierricdoublet6248
    @pierricdoublet6248 4 роки тому

    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?

  • @MrREIVAX2
    @MrREIVAX2 5 років тому

    because all the examples are always with temperature sensor
    can do the same but activating mega outputs by means of esp?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      Hello friend, can you please give a complete description of what I need to do. Sorry just want to be clear.

    • @MrREIVAX2
      @MrREIVAX2 5 років тому

      @@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

  • @TheDarkforce95
    @TheDarkforce95 5 років тому

    do you have simple tutorial for sending 1 data from arduino mega to nodemcu ? i currently struggling to make my mega communicate with nodemcu

  • @Rapto9936
    @Rapto9936 6 років тому +3

    how to take data from multiple sensors and send it to node mcu and then to the cloud .plz help me

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому +1

      Please. mail me at support@myengineeringstuffs.com to get full support. Thank You.

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому

      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.

    • @m.k.8440
      @m.k.8440 6 років тому +1

      MyEngineeringStuffs sir isn't it possible to send data without converting it into string

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому +2

      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.

  • @genghiskhano
    @genghiskhano 3 роки тому

    I get error 404 when I try to download the code and library, is there another location to get it from?
    Thanks

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  3 роки тому

      Hey friend sorry for the inconvenience, website is under construction.
      Please mail about your requirements, I will send you ASAP.

  • @SonuKumar-vp8xt
    @SonuKumar-vp8xt 5 років тому

  • @mayurtandel6038
    @mayurtandel6038 5 років тому

    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...

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      Hi friend looks like extra semicolon error. Can you just copy and paste the code you are using.

  • @juv4116
    @juv4116 5 років тому

    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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      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.

    • @juv4116
      @juv4116 5 років тому

      @@MyEngineeringStuffs Do you have the code for the reverse process of combining both humidity and temperature for nodemcu?
      thank you

  • @amirulhazeiq8997
    @amirulhazeiq8997 5 років тому

    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.

  • @Kunal98v
    @Kunal98v 6 років тому

    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 !!!

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому

      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.

    • @m.abdullah8038
      @m.abdullah8038 5 років тому

      @@MyEngineeringStuffs i have same issue sir.. im using two analogue sensor

  • @TheDarkforce95
    @TheDarkforce95 5 років тому

    do you have a tutorial for nodemcu that send sensor data from uno/mega to blynk ?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому +1

      Sorry friend till now i don't have any. Extremely sorry.

    • @TheDarkforce95
      @TheDarkforce95 5 років тому

      @@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 ?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      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.

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      Sorry friend.

  • @atharvarya6243
    @atharvarya6243 5 років тому

    how can i obtain output on my phone?????

  • @wonderwang1585
    @wonderwang1585 5 років тому

    I check circuit link but I can’t find it. The usb cable connect esp12 and mega,correct?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      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.

    • @wonderwang1585
      @wonderwang1585 5 років тому

      so the communication is not through wifi, but instead go through usb-PC-usb?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому +1

      Friend its a Serial communication between NodeMCU and Arduino MEGA. Both are connected using Tx and Rx pin.

  • @kamalafiq6731
    @kamalafiq6731 3 роки тому

    can i use arduino uno and i need reply ASAP pleaseee?

  • @roylim4738
    @roylim4738 5 років тому

    Hi Sir may i know why i get the error in the 'Serial1' was not declared in this scope, Thank you

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      May be you are compiling the code for any other board. Change the board from board manager to Arduino MEGA.
      Thank you

    • @roylim4738
      @roylim4738 5 років тому +1

      @@MyEngineeringStuffs Thank you SIr, I get it already

  • @brunobernard86
    @brunobernard86 5 років тому +1

    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 :)

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      Thank you friend.

    • @brunobernard86
      @brunobernard86 5 років тому

      I found the solution. Serial.println (nodemcu) outputs directly to the Serial1 (mega).. just need to listen to it.

    • @aziznurhidayat6824
      @aziznurhidayat6824 5 років тому

      How can you sending from nodemcu to mega? Please help mr to share your sorcecode...

    • @aziznurhidayat6824
      @aziznurhidayat6824 5 років тому

      @@brunobernard86can you sending data from nodemcu to arduino mega? If you can it, please share your code.. thx

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  5 років тому

      Hey friend you need to send data from Mega to Node MCU. And write a code in the Node MCU to listen the data.

  • @automacaopormade
    @automacaopormade 6 місяців тому

    hell, we havve gasted a dayou us find a solutuon, tanksti=o find this, but with y

  • @haibui7548
    @haibui7548 6 років тому +1

    thanks

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому +1

      Thank You

    • @haibui7548
      @haibui7548 6 років тому +1

      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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  6 років тому +1

      Ya sure... But please describe your problem statement(What exactly you want to do)

    • @haibui7548
      @haibui7548 6 років тому

      i want to send data from to nodemcu to arduino and opposite

    • @haibui7548
      @haibui7548 6 років тому

      very sorry, my skill English is not good

  • @danangadidarma8700
    @danangadidarma8700 4 роки тому +1

    can i get link to download the code sir ?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  4 роки тому

      Sorry for the inconvenience friend. My site is under construction soon I will provide all the codes published in the YT

  • @dahlendo7513
    @dahlendo7513 6 років тому +1

    Music 🎶????

  • @KD-vc5mf
    @KD-vc5mf 4 роки тому

    Too bad the site is down :(

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  4 роки тому

      Sorry friend the site is under construction. Please contact me on my mail id. I will send all the details.

  • @MyEngineeringStuffs
    @MyEngineeringStuffs  6 років тому +2

    Download Code Link: myengineeringstuffs.com/download/1050/