Serial communication between Nodemcu and Arduino - Learning Arduino 06

Sdílet
Vložit
  • čas přidán 21. 03. 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

Komentáře • 98

  • @user-kg9hk2wk6w
    @user-kg9hk2wk6w Před 4 lety +3

    Great video my man you deserve more views!

  • @lokeshsaravanan5274
    @lokeshsaravanan5274 Před 3 lety +3

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

  • @myronvalenzuelacastro6261

    Keep going! very good explanation!

  • @darshanacharya6081
    @darshanacharya6081 Před 2 lety

    Thank you so much bro
    Completed my project peacefully ❤️

  • @taniapm8470
    @taniapm8470 Před rokem

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

  • @TheUnofficialMaker
    @TheUnofficialMaker Před rokem

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

  • @gtechninja
    @gtechninja Před 4 lety +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.

  • @chittaranjansortey6561
    @chittaranjansortey6561 Před 4 lety +1

    Very nicely explained, thank u

  • @sambitprakashmohanty4103

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

  • @99onlyshop57
    @99onlyshop57 Před 3 lety

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

  • @ITPrincyNadar
    @ITPrincyNadar Před 4 lety +1

    thanks a lot..it really helped me

  • @jktipan87
    @jktipan87 Před 3 lety

    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 Před 3 lety +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

  • @gratefulamateur1393
    @gratefulamateur1393 Před 6 měsíci

    Very well done, thank you.

  • @ujjavalmehta5479
    @ujjavalmehta5479 Před 2 lety

    Nice Explanation

  • @adityapatil3792
    @adityapatil3792 Před 3 lety

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

  • @pk3709
    @pk3709 Před rokem

    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 Před rokem

    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?

  • @syedabubakar6858
    @syedabubakar6858 Před 4 lety +1

    thank you so much bro

  • @HiranthaMalshan
    @HiranthaMalshan Před rokem

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

  • @jktipan87
    @jktipan87 Před 3 lety

    Great video nice

  • @S.b.n.Pranav
    @S.b.n.Pranav Před 3 lety

    Thanks buddy...

  • @commonhuman5341
    @commonhuman5341 Před 3 lety

    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

  • @nilutpolkashyap
    @nilutpolkashyap Před 4 lety

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

  • @wahyupriambodo6985
    @wahyupriambodo6985 Před 9 měsíci

    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?

  • @hiteshlakum7371
    @hiteshlakum7371 Před 2 lety +1

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

  • @nandhinijagadeesan3835

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

  • @kiranghatge4301
    @kiranghatge4301 Před 3 lety

    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

  • @isaacgahou8514
    @isaacgahou8514 Před 4 lety

    Nice

  • @mmadam420
    @mmadam420 Před 2 lety

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

  • @Shabloop
    @Shabloop Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety

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

  • @nishamishra5723
    @nishamishra5723 Před 3 lety

    Thankuu so much yrrr😭😭😭😭

  • @camus5222
    @camus5222 Před 3 lety +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  Před 3 lety

      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 😊

  • @rakeshdevre3750
    @rakeshdevre3750 Před 3 lety

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

  • @shivaprakash3654
    @shivaprakash3654 Před 3 lety

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

  • @engrm.umerk7147
    @engrm.umerk7147 Před rokem

    👍👍

  • @HarishKumar-uy5ml
    @HarishKumar-uy5ml Před 2 lety

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

  • @geraldjohnbilan9064
    @geraldjohnbilan9064 Před 2 lety

    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  Před 2 lety

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

  • @all-about-automation
    @all-about-automation Před 3 lety

    good

  • @muhammadaleemkhan4235

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

  • @rachelvanderspank8766
    @rachelvanderspank8766 Před 2 měsíci

    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.

  • @islamicvideos6506
    @islamicvideos6506 Před 3 lety +1

    Can this same method be used for arduino nano?

  • @ashmitgupta8039
    @ashmitgupta8039 Před 2 lety

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

  • @ashoksri5923
    @ashoksri5923 Před 6 měsíci

    Explain spi communication between esp32 and arduino mega 2way communicate

  • @tanmayagarwal8513
    @tanmayagarwal8513 Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety

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

    • @tanmayagarwal8513
      @tanmayagarwal8513 Před 3 lety

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

  • @syedabubakar6858
    @syedabubakar6858 Před 3 lety +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  Před 3 lety

      please share your code at sharmashrey48@gmail.com

  • @nitishgowrydoss6959
    @nitishgowrydoss6959 Před 2 lety

    Can you provide a link for the codes please ?

  • @hetvikansara7240
    @hetvikansara7240 Před 3 lety

    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 Před 2 lety

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

  • @shivangnidehariya3698
    @shivangnidehariya3698 Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety

      yes it is possible. 😊

    • @shivangnidehariya3698
      @shivangnidehariya3698 Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety

      @@shivangnidehariya3698 Sure I'd love to ✨🤗

  • @anandkvinu2832
    @anandkvinu2832 Před 3 lety

    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 Před 3 lety

      What you think i should do?

    • @ShreySharma
      @ShreySharma  Před 3 lety

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

  • @vinayaka7692
    @vinayaka7692 Před 2 lety +1

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

    • @vinayaka7692
      @vinayaka7692 Před 2 lety

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

  • @sharifsagar3813
    @sharifsagar3813 Před 4 lety +1

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

  • @exeyecctvsuvelancesystems199

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

  • @nishantsrivastava9381
    @nishantsrivastava9381 Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety

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

    • @nishantsrivastava9381
      @nishantsrivastava9381 Před 3 lety

      @@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  Před 3 lety

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

    • @nishantsrivastava9381
      @nishantsrivastava9381 Před 3 lety +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  Před 3 lety +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.🤗

  • @hakanozdemir407
    @hakanozdemir407 Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety +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 Před 2 lety

      @@ShreySharma any example?

  • @abhishekupadhyay3690
    @abhishekupadhyay3690 Před 3 lety +1

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

    • @abhishekupadhyay3690
      @abhishekupadhyay3690 Před 3 lety +1

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

    • @ShreySharma
      @ShreySharma  Před 3 lety

      Wonderful.👍🤗 Keep learning

  • @TSAdventureVlog
    @TSAdventureVlog Před 3 lety

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

  • @divyamgupta7974
    @divyamgupta7974 Před 4 lety

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

    • @ShreySharma
      @ShreySharma  Před 4 lety

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

  • @mohdansari7210
    @mohdansari7210 Před 4 lety +1

    Sir i have send you a mail kindly check

  • @PJ-TechSolutions
    @PJ-TechSolutions Před 3 lety +1

    I was facing more problems

  • @PJ-TechSolutions
    @PJ-TechSolutions Před 3 lety +1

    No use