Nodemcu ESP8266 wifi module two way communication with Arduino and Blynk

Поделиться
HTML-код
  • Опубликовано: 6 окт 2018
  • Download the circuit and programming:
    www.electroniclinic.com/nodem...
    Subscribe to my New RUclips Channel, if you want to watch my videos in Hindi/Urdu
    / @letsgetstartedd
    Nodemcu board and library setup:
    • Nodemcu esp8266 wifi M...
    Nodemcu power supply making:
    • Electronics Tutorial: ...
    learn how to make a schematic and PCB:
    • Nodemcu ESP8266: Nodem...
    Relay driver circuit design calculation:
    • Electronics Tutorial: ...
    Project Description:
    *****************************
    In today’s episode, you will learn how to do two-way communication between Arduino and Blynk through Nodemcu esp8266 wifi module. At the end of this tutorial, you will be able to monitor multiple analog sensors and you will also be able to control multiple loads. In this project, no multiplexers will be used. All the sensors and loads will be connected in a normal way. Let’s get started
    The components that we will need for this project are
    1. Nodemcu ESP8266 wifi module.
    2. 5x7 cm Vero board
    3. 470uf capacitors, we will need two of these.
    4. Female dc socket
    5. 7805 voltage regulator, the first leg is the input, the middle one is the ground and the third one is the output.
    6. Led, the longer leg is the anode, and the shorter one is the cathode.
    7. 330-ohm resistor
    8. Female Headers
    9. A variable resistor, I have already connected some jumper wires so that it can be easily connected with Nodemcu
    10. LDR which stands for the light dependent resistor and
    11. 220vac Indicator lamps
    These components can be purchased from Amazon, the components purchase links are given below.
    *****************************
    Purchase links for Components with best prices.
    Arduino Nano USB-C Type ( recommended):
    amzn.to/4ahGLdk
    ESP32 WiFi + Bluetooth Module for iOT Projects (recommended), more IO pins, improved speed, and supports a Lipo Battery:
    amzn.to/3v40DkE
    1n4007 diode:
    amzn.to/3sDr22w
    10k Resistor:
    amzn.to/3w8lL5a
    2n2222 NPN transistor
    amzn.to/3w0mzZL
    12V SPDT Relay:
    amzn.to/3m1ZktF
    One-Channel Relay Module:
    amzn.to/3sr2UQm
    12v SPDT type 4-channel relay Module:
    amzn.to/3rvOywI
    Nodemcu ESP8266 WiFi Module:
    amzn.to/3sx24l4
    LM7805 Voltage Regulator:
    amzn.to/3tZx0uH
    470uf capacitor:
    amzn.to/3m5Nj6r
    330-ohm resistor:
    amzn.to/3w8PA5i
    DC Female Power Jack:
    amzn.to/31qcZ4b
    Female Headers:
    amzn.to/2QFLQYN
    Male Headers:
    amzn.to/3lZvt5d
    LEDs:
    amzn.to/3dsRt4D
    Other Must-Have Tools and Components:

    Top Arduino Sensors:
    amzn.to/3vZbnfM
    Super Starter kit for Beginners
    amzn.to/3cq56C5
    Top Oscilloscopes
    amzn.to/3ctF3d8
    Variable Supply:
    amzn.to/2PEAqE7
    Digital Multimeter:
    amzn.to/2QGRPg1
    Top Soldering iron kits: "best"
    amzn.to/39nqDtb
    Top Portable drill machines:
    amzn.to/3suQMh7
    Jumper Wires:
    amzn.to/2NYPEDA
    3D printers:
    amzn.to/3ruG1dt
    CNC Machines:
    amzn.to/3cuZWVv
    Electronics Accessories:
    amzn.to/3sueV7z

    Hardware Tools:
    amzn.to/3m9UhaN
    DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
    ****************
    Follow me on Facebook:
    / 190031841821771
  • НаукаНаука

Комментарии • 72

  • @bruceedwards8003
    @bruceedwards8003 3 года назад +3

    Impressive, was not expecting such speedy replies, l am hooked for good now on your channel, love the idea of the PDF files, brilliant , kindest regards and stay safe and healthy.

  • @joelserrao1078
    @joelserrao1078 4 года назад +1

    Superb! It works i tried two gas sensors and it works like charm

  • @saadsolayman420
    @saadsolayman420 2 года назад +1

    if I want to measure voltage and current then what and where will be the change in code?

  • @npslucknow9235
    @npslucknow9235 2 года назад

    Hindi me hota to aap ke sabhi vdo proper samajh me aate

  • @anupampatil2859
    @anupampatil2859 4 года назад

    Can we connect Vin of nodmcu directly to 5V to Arduino mega 2560?
    Will it help to power up nodemcu?
    Plz help🙏

  • @safwansaad0.0
    @safwansaad0.0 5 лет назад

    hello, i want to ask why i cannot compile the program?

  • @babarmajeed8703
    @babarmajeed8703 5 лет назад +1

    your info is great i want to know that if we are away from our hardware but nodemcu connect with wifi and we are miles away from hardware could we control relays from blynk app mean via server communication is it

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      Yes you can control this from anywhere around the world.

  • @erboy5546
    @erboy5546 4 года назад

    Hi,
    Very nice project. A question. I have a quite huge sketch on arduno uno. Menu, 4 buttons, measuring several different temperatures and humidity, several different thermostats, display on lcd. No delay used. Always millis.
    Uno sends data to nodemcu via softserial. From Nodemcu, the data goes to Blynk. For the reverse, the arduino uno merely reads the status at the digital out on nodemcu as digitalRead. The reaction is fast. But if I use Your sketch, there is a slowdown on the arduino uno especially if the nodemcu is switched off. I notice on the buttons response. For buttons I use library and I put buttons out of serial loop. Do you may have a similar problem. Thank you

    • @erboy5546
      @erboy5546 4 года назад

      I solved the problem using level shifter :)

  • @user-bz4ol9vb6z
    @user-bz4ol9vb6z 7 месяцев назад

    can u help to make 2 way audio communication using node mcu to blynk iot app

  • @hairankunhaqaiq8108
    @hairankunhaqaiq8108 3 года назад +1

    i have a question that as nodemcu (esp8266) not tolerant to 5v then why did you directly connected arduino rx tx pins to nodemcu rx tx pins without any level shifting? won't it brick esp8266 mcu???

    • @ElectroniClinic
      @ElectroniClinic  3 года назад +1

      you are right, that time i had no voltage level converter. recently i got one. i will make another video.

  • @bruceedwards8003
    @bruceedwards8003 3 года назад +1

    Sorry for the question l did find it, have you thought of putting all your projects to get her in a downloadable PDF form, l believe many would be very interested in this format, keep up the excellent and generous sharing of your knowledge.👏

    • @ElectroniClinic
      @ElectroniClinic  3 года назад +1

      watch my latest videos with better recording. next time i will add the pdf files too.

    • @bruceedwards8003
      @bruceedwards8003 3 года назад

      @@ElectroniClinic 😃

  • @bocahtampan5123
    @bocahtampan5123 4 года назад

    Hi, i want to ask my problem. why relay not active?

  • @markneilnotarte3692
    @markneilnotarte3692 5 лет назад

    hi sir im your fan here, nice project really helped me in my projects especially in my school. i just want to ask if how to control servo using blynk from nodeMCU to arduinoUNO using serial Communication

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      i will make tutorial on servo motor controlling using nodemcu and blynk. may be within three or four days it will be available on my channel.

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      for now you can watch my tutorial on servo motor, in which i have explained all the basics. it will help you in my upcoming tutorial on servo motor control using blynk and nodemcu.

  • @bruceedwards8003
    @bruceedwards8003 3 года назад +1

    Can you tell me is there a web page l can go to so that l can download this code, thanks

    • @ElectroniClinic
      @ElectroniClinic  3 года назад

      the article link is available in the description

  • @babarmajeed8703
    @babarmajeed8703 5 лет назад +1

    hye sir nice info we are receive sensor data on blynk app but couldn't control relay mean our arduino mega couldn't receive data from node please help us

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      Check your wiring. make sure your nodemcu module tx pin is connected with the rx and tx is connected with the tx. and also check the virtual pins on the blynk side. Its a simple straight forward tutorial. you need to check the wiring. Try and let me know.
      subscribe for more videos on nodemcu.
      best of luck.

  • @greenspanfx
    @greenspanfx 4 года назад

    Very good explanation and excellent project, thanks for sharing!!! Only some errors... the code on the site is not the same as the one in the video, and the one in the video has mistakes, for example, myTimerEvent() is never called.

  • @benoitmbayo7308
    @benoitmbayo7308 4 года назад +2

    Tried with Arduino Mega and the two ways communication is not working, I can only ready data to ESp32 but can't send any data to Arduino Mega.

    • @ElectroniClinic
      @ElectroniClinic  4 года назад

      you must be missing something. check again.

    • @benoitmbayo7308
      @benoitmbayo7308 4 года назад +1

      @@ElectroniClinicI have solved the problem by changing the serial port communication (2,3) to (10,11) on Arduino Mega. Now it works just fine.

    • @ElectroniClinic
      @ElectroniClinic  4 года назад

      great.

  • @mohammadzeeshan6469
    @mohammadzeeshan6469 5 лет назад

    I want this code... Please give me a new link.... Older link is not working.... Please help

  • @jasongiron5314
    @jasongiron5314 4 года назад

    Can I use ESP826 12F to make this project? Please reply. Thanks a lot sir

    • @jasongiron5314
      @jasongiron5314 4 года назад

      Another thing, Blynk has a limited energy balance :( What if we want to control many lights? :(

    • @ElectroniClinic
      @ElectroniClinic  4 года назад

      you will need to purchase the energy.

  • @yogeshitaliya473
    @yogeshitaliya473 4 года назад

    It's possible others application control (without blynk app)

  • @Smartliving-udanagayan
    @Smartliving-udanagayan 5 лет назад +1

    Sir I have a Question..I done every thing as your..everything working fine and perfectly..but one problem appear for me when i just unplug both device (Nodemcu and Arduino) from the computer. when i powering up using external power supply for both device , my moisture reading not display on the blynk app other's everything working as normal,..in this case please tell me How to fix this problem ..please help me on this ..your help really appreciated ...thank you sir ..im waiting for your reply,.,.

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      Which external power supply are you using ???

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      Dont power up the nodemcu module from arduino. Use separate supply for nodemcu

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      you should watch my tutorial on how to make the power supply for NODEMCU esp8266. don't power up the nodemcu module from Arduino. make a separate supply for the nodemcu using an lm7805 voltage regulator and make sure you use the capacitors with the 7805 regulator. watch my tutorials you will understand.

    • @Smartliving-udanagayan
      @Smartliving-udanagayan 5 лет назад

      @@ElectroniClinic For Nodemcu 3.3v Power supply (5v step down into 3.3v) and arduino 5v Supply..Both Devices powered up separately..I think Some thing missing from me..How to fix that problem....thank you Sir..pls guide me to fix this..

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      don't use 3.3v. connect 5volts with nodemcu. 3.3v won't work. watch my tutorials. I have clearly mentioned 5 volts.

  • @rikydanieal6478
    @rikydanieal6478 5 лет назад +1

    I am currently making a simple traffic light using arduino uno. In addition, using nodemcu I want it to serial communicate with arduino uno and the nodemcu can control the traffic light into green only for a moment by using blynk app. Can help me, how to do it and the programming for uno and nodemcu?

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      my dear i have completely explained two way communication in this tutorial. you can control anything you want.
      you can make use of flags , if that flag is on, then you can manually control traffic lights, and when off then the traffic lights will be automatically controlled. watch my tutorial on flags.

    • @rikydanieal6478
      @rikydanieal6478 5 лет назад

      im following this video and flag video, but it not working same like you just say.... can you suggest where the part that i must to fix it?
      #include
      SoftwareSerial nodemcu(2,3);
      long int data;
      boolean flag1 = false;
      void setup() {
      Serial.begin(9600);
      nodemcu.begin(9600);
      pinMode(7,OUTPUT);//greenbulb
      pinMode(8,OUTPUT);//yellowbulb
      pinMode(9,OUTPUT);//redbulb
      }
      void loop() {
      if ( nodemcu.available() > 0 )
      {
      data = nodemcu.parseInt();
      delay(100);
      Serial.println(data);
      if (( data == 10 )&& (flag1==false))
      {
      digitalWrite(7,LOW);// greenbulb
      digitalWrite(8,LOW); // yellowbulb
      digitalWrite(9,HIGH);// redbulb
      delay(7000);
      digitalWrite(7,HIGH);// greenbulb
      digitalWrite(8,LOW);// yellowbulb
      digitalWrite(9,LOW);// redbulb
      delay(5000);
      digitalWrite(7,LOW);// greenbulb
      digitalWrite(8,LOW);// yellowbulb
      digitalWrite(9,LOW);// redbulb
      delay(1000);
      digitalWrite(7,HIGH);// greenbulb
      digitalWrite(8,LOW);// yellowbulb
      digitalWrite(9,LOW);// redbulb
      delay(1000);
      digitalWrite(7,LOW);// greenbulb
      digitalWrite(8,LOW);// yellowbulb
      digitalWrite(9,LOW);// redbulb
      delay(1000);
      digitalWrite(7,HIGH);// greenbulb
      digitalWrite(8,LOW);// yellowbulb
      digitalWrite(9,LOW);// redbulb
      delay(1000);
      digitalWrite(7,LOW);// greenbulb
      digitalWrite(8,HIGH);// yellowbulb
      digitalWrite(9,LOW);// redbulb
      delay(2000);
      flag1 = true;
      }
      if (( data == 11 )&& (flag1==true))
      {
      digitalWrite(7, HIGH);
      flag1 = false;
      }
      }
      }

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      now you can use another if condition. to control only the green light, you can turn it on and turn it off.

    • @ElectroniClinic
      @ElectroniClinic  5 лет назад

      when data is 11 then turn off all the lights,
      and use another flag to control the on/off green light.

    • @rikydanieal6478
      @rikydanieal6478 5 лет назад

      owh okey i will try it

  • @apoorvdeepak7333
    @apoorvdeepak7333 3 года назад

    Bro I want to know that how to control the speed of motor when the motor connected to ardiuno digital pins and send the command to ardiuno by using nodmcu(as a receiver) and bylnk app (as a transmitter)...Please rply me I need your help...bro

    • @ElectroniClinic
      @ElectroniClinic  3 года назад +1

      i have a video on iot robot watch that video. you will get the idea.

    • @apoorvdeepak7333
      @apoorvdeepak7333 3 года назад

      @@ElectroniClinic I saw your iot based robot video which you preferred me...can i use this method for making quadcopter where we control the quadcopter by blynk app. if it is possible then please help me..how can i do it..??

    • @apoorvdeepak7333
      @apoorvdeepak7333 3 года назад

      And if any programming for this project then you please provide me...!!

    • @apoorvdeepak7333
      @apoorvdeepak7333 3 года назад

      Please reply me bro...!!! I am waiting for your suggestion..

  • @Graphic-Tech-Art
    @Graphic-Tech-Art 2 года назад

    Bro tel me gprs

  • @apoorvdeepak7333
    @apoorvdeepak7333 3 года назад

    Please rply me..bro