Serial communication between Nodemcu and Arduino - Learning Arduino 06

Поділитися
Вставка
  • Опубліковано 21 бер 2020
  • In this video we will learn about the serial communication and how to transfer the data between nodemcu and arduino using Serial communication and using software serial library.
    If you are facing any issues in your IoT project, please feel free to contact me here
    mail- sharmashrey48@gmail.com

КОМЕНТАРІ • 98

  • @lokeshsaravanan5274
    @lokeshsaravanan5274 3 роки тому +3

    Thanks bro now I learned how to use serial communication for microcontrollers.

  • @TheUnofficialMaker
    @TheUnofficialMaker 11 місяців тому

    thanks, the first line after loop() was just what I needed. very good!

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

    Thank you so much for this tutorial. You explained it beautifully! I've been sweating tons to try and make this work! 👍

  • @darshanacharya6081
    @darshanacharya6081 2 роки тому

    Thank you so much bro
    Completed my project peacefully ❤️

  • @user-kg9hk2wk6w
    @user-kg9hk2wk6w 4 роки тому +3

    Great video my man you deserve more views!

  • @99onlyshop57
    @99onlyshop57 3 роки тому

    谢谢师父,非常好的讲解!!!

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

    Keep going! very good explanation!

  • @sambitprakashmohanty4103
    @sambitprakashmohanty4103 2 роки тому

    Thank you so much sir. I hope next intresting video coming as soon as possible.

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

    Very nicely explained, thank u

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

    I don't know what can I say!!! you made my day. nodemcu has a lot of problems especially voltage level (3.3v) ohhh. I fixed the ma problem using Arduino and nodemcu, Arduino collects data, and if the temperature level above the threshold value then nodemuc will send the data. I really appreciate it.

  • @gratefulamateur1393
    @gratefulamateur1393 5 місяців тому

    Very well done, thank you.

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

    thanks a lot..it really helped me

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

    Well, I used more code to transfer data from arduino at nodemcu and then display into webserver and finally thingspeak but your video make so simple the things I will try it

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

    i was not able to send the data to nodemcu but after watching this video i am getting the data on nodemcu
    Thank You

  • @ujjavalmehta5479
    @ujjavalmehta5479 2 роки тому

    Nice Explanation

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

    thank you so much bro

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

    Great video nice

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

    Thanks buddy...

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

    Nice

  • @engrm.umerk7147
    @engrm.umerk7147 Рік тому

    👍👍

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

    Thankuu so much yrrr😭😭😭😭

  • @all-about-automation
    @all-about-automation 3 роки тому

    good

  • @ashoksri5923
    @ashoksri5923 5 місяців тому

    Explain spi communication between esp32 and arduino mega 2way communicate

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

    Hi, I'm from Sri Lanka. Can you explain how to assign two or more sensor values to the variables on the NodeMCU side?

  • @hiteshlakum7371
    @hiteshlakum7371 2 роки тому +2

    sir, how can we transfer 3 or more sensors data from arduno to node mcu

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

    Hi, can i use also the MOSI/MISO pins on arduino. RX/TX is already connected to other stuff. What do i need to change in the code?

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

    Brother if we look to connect the hardware serial of arduino board to hardware serial of node mcu (gpio 1 and gpio 3) then what would be the baud rate (in node mcu) ... i mean like in this video u've assigned 9600 to software serial pins and separately for node mcu to pc at 115200. But in my case will there be only one and that to be at 9600?

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

    Is it possible to send a series of string data from 1 nodemcu to a second nodemcu????

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

    Is Voltage difference going to make any issues for long term usage

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

    Hey
    Thanks for the video
    But I want a notification to be sent through blynk app after this serial communication.
    I want to use both arduino and nodemcu

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

    Can i connect Arduino mega with NodeMCU esp8266 and then connect to thingspeak to visualize sensor data?

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

    Great video man. what i want to know if this is possible with esp32 camera

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

      I haven't worked with it yet but I'm sure it is possible with that too. 😊👍

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

    I need your help to do the "HTTP server which is waiting for HTTP Post request. These requests have then proceeded with string masks and parameters for LED and Display control are flirting. Then ESP turns on / off the certain LED and shows a number or string on Display.
    please help...... how to start with

  • @wahyupriambodo6985
    @wahyupriambodo6985 8 місяців тому

    Hey brother, it's possible if i change the Rx and Tx pin on Arduino to another pin?
    Lets say pin 2 as Rx and pin 3 as Tx. If it can it means that we have to instance the SoftwareSerial object ya?

  • @rachelvanderspank8766
    @rachelvanderspank8766 Місяць тому

    Am I the only one that doesn't get it..? You say "the serial monitor of the arduino uno is blank. How can this be as you have uploaded "println" to it? If I attach the uno, it starts the hardware serial of the uno.

  • @mmadam420
    @mmadam420 2 роки тому

    sir,
    how to send multiple data sir ( i mean if we use more numbers of sensors)

  • @camus5222
    @camus5222 2 роки тому +2

    Sir, as the Nodemcu board takes upto 3.3V and we are connecting it to arduino which outputs 5V, won't it damage the NodeMcu ? Or is it safe to directly connect them with Rx & Tx pins without any resistance?
    And, if I use resistance to get 3.3V on NodeMcu side, will the serial communication work properly??

    • @ShreySharma
      @ShreySharma  2 роки тому

      Yes, Nodemcu works on 3.3v but you can also provide 5v to the VIN pin of nodemcu, it has an in built voltage regulator which converts 5v to 3.3v if the VIN pin is used.
      I've tried with direct connections and it works absolutely fine for me 😊

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

    How can send the dht11 data to firebase after receiving from arduino

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

    Can you also do esp send data to arduino???

  • @HarishKumar-uy5ml
    @HarishKumar-uy5ml 2 роки тому

    The video explanation is simple but when i have done it didnt show the msg on the node mcu serial monitor.Kindly help

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

    How can we calculate data in nodemcu coming from arduino via serial communication

  • @geraldjohnbilan9064
    @geraldjohnbilan9064 2 роки тому

    how about the communication between Arduino Mega 2560 and NodeMCU sir? is it the same or is there something that i need to change here? thanks!

    • @ShreySharma
      @ShreySharma  2 роки тому

      It will be the same, you can try the same method :)

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

    Can this same method be used for arduino nano?

  • @ashmitgupta8039
    @ashmitgupta8039 2 роки тому

    Sir I'm using nodemcu esp32 will it work in this manner only?

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

    I am receiving the sensor data(1/0) correctly on NodeMCU, but the "if statement" is not working on that data,, plz help Sir

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

      please share your code at sharmashrey48@gmail.com

  • @exeyecctvsuvelancesystems199
    @exeyecctvsuvelancesystems199 2 роки тому

    Brother... Tft display par reading nahi horaha he serial monitor per full work kar raha he... Pls. Help

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

    If we wanna send data from nodeMCU to Arduino ... will this work or I have to make few changes??

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

      You just need to check the pin numbers and it's done.

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

      @@ShreySharma Ok thnx man! I'll give it a try.

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

    Hello sir. This worked for me, but now i want to send my data further to thingspeak. I have received 2 sensors data from arduino to nodemcu. What should i do?

    • @luism.g.7172
      @luism.g.7172 2 роки тому

      hi, I have the same problem, but I'm using Ubidots

  • @vinayaka7692
    @vinayaka7692 2 роки тому +1

    rx and tx of nodemcu are gpio3 and gpio1 why u havent used these two pins

    • @vinayaka7692
      @vinayaka7692 2 роки тому

      conections:
      it should be tx of nodemcu to uno board rx
      and rx of nodemcu to uno board tx

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

    If we do not define rx and tx pin in arduino code then default serial communication pin of arduino is selected??

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

      Yes in that case you can use default serail.println command and use Rx and Tx pins of Arduino 😊👍

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

      @@ShreySharma hello sir. Sir, i am doing a project in which I need to send date from nodemcu to arduino uno. Please make a video on this.

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

      @@nishantsrivastava9381 The process is simple, you can use the serial communication as shown here.

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

      @@ShreySharma sir in my case, serial communication between nodemcu and Arduino UNO establish and data transfer occurs but some dummy data also received to Arduino. I have sent you my code to your Gmail account. Please check it. Please help.

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

      @@nishantsrivastava9381 that is because you might be using the Rx and Tx pins if you'll use software serial then this will not happen.
      Anyways I'll look into your sketch and will help you out.🤗

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

    Sir, is it possible to interface aurdino uno with ESP32 dev. Board..?

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

      yes it is possible. 😊

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

      @@ShreySharma
      Bhaiya plzz mere project me help kar dijiye
      Mujhe esp32 ko as a wifi module use krna he

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

      @@shivangnidehariya3698 Sure I'd love to ✨🤗

  • @nitishgowrydoss6959
    @nitishgowrydoss6959 2 роки тому

    Can you provide a link for the codes please ?

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

    If i publish this data from node mcu to adafruit io.. it keeps laging for example. If the Arduino gives a data like 9000.. at the mcu its, getting -- 9 "lags for five sec" then 0 "then lags" 0 ,0 its prints each digit witha delay its not printint the whole like 9000

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

      What you think i should do?

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

      Hey, Anand I need to see your sketches for this issue, Please mail your sketches on sharmashrey48@gmail.com

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

    we don't need a common ground for serial communication?

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

    hello how can i send 2 data from arduino to nodemcu? i can send 1 data but not 2, pls help

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

      yes you can send whatever you want.
      from sender - you need both type of data and use string concatenation.
      at receiver end- use string splitter to split both the values.

    • @user-ud1rl8ln1k
      @user-ud1rl8ln1k 2 роки тому

      @@ShreySharma any example?

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

    I am facing error like " D1 was not declared" anyone pls give some info. to solve this

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

      solved.. The solution is change the board from esp 8266 generic module to NODE MCU 1.0

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

      Wonderful.👍🤗 Keep learning

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

    It's damage my Node mcu board. Because GPIO pin work on 3.3v. 😭😭

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

    Getting this Error: 'class SoftwareSerial' has no member named 'Serial'

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

      please email me your code here- sharmashrey48@gmail.com

  • @PJ-TechSolutions
    @PJ-TechSolutions 3 роки тому +1

    I was facing more problems

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

      Please let me know about it.

    • @PJ-TechSolutions
      @PJ-TechSolutions 2 роки тому

      I was used same code and same steps
      No data on serial monitor

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

    Sir i have send you a mail kindly check

  • @PJ-TechSolutions
    @PJ-TechSolutions 3 роки тому +1

    No use