How To Setup And Connect The NodeMCU ESP8266 12-E Development Board To Your Computer and Wifi

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 67

  • @avanthikakatari960
    @avanthikakatari960 Рік тому +1

    thanks a lot , I have been searching for a step by step video that showed me how to connect NodeMCU to Wifi , I finally found yours . thank again .

  • @radharavichandran3759
    @radharavichandran3759 3 роки тому +2

    Awesome best UA-cam ever

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

      Radha, Thanks! 😁 I appreciate your time watching. Have a great day~

  • @MuddadaBhavani-lf2tt
    @MuddadaBhavani-lf2tt 2 місяці тому +1

    Can you please provide a link(usb link) of that micro usb cable to connect that board 2:58

    • @BMonsterLaboratory
      @BMonsterLaboratory  2 місяці тому

      That is a micro-usb connection www.amazon.com/AINOPE-Android-Charging-Compatible-Material/dp/B0829RYKJ6/ref=sr_1_3?dib=eyJ2IjoiMSJ9.FgxTcB2S6QmrFdi3g7c7reb1VGfd1BSD1GuqqiQdj6B9uslWxVgN_9TY16QEKa_YxpwVeN9-4EbWbkxZo5qLQ-GSrUqaDPxYtIpqC-YyCoKblRcio-sE6b7ytihoqBucqOKzOl_Rq_e4lMpKb3BVkKSggWVhhh1kCjpIIg5KVeWVN1NyjaFnPfx13zl7TSTX5OSM75Auw-moi51M1C1Tf9y0Hsz0QvXiaoRNpQj2xETgLvnupN-x9fhRijhvMoitmPHInx-Z56vAi9IbPkdzKlDZOo0wC2BZtLML_xXBa4I.hFhfk5Tm48Apsn3uY24p74JhCJsq7OzV-xSHO0ylt7Y&dib_tag=se&hvadid=694353893979&hvdev=c&hvexpln=67&hvlocphy=9015754&hvnetw=g&hvocijid=1362188262122011323--&hvqmt=e&hvrand=1362188262122011323&hvtargid=kwd-299835047014&hydadcr=25251_13615217&keywords=micro%2Busb%2Bamazon&qid=1728833366&s=electronics&sr=1-3&th=1

  • @RixtronixLAB
    @RixtronixLAB Рік тому +2

    Well done, keep it up, thanks for sharing it with us :)

  • @matthosini9656
    @matthosini9656 3 роки тому +6

    Good stuff, I enjoyed watching this. Not sure whereabouts I made mistake in my code. After I compile the code and open up the serial monitor, all I see is dot, which means it is not connected to WiFi. Could you please let me know your thoughts on this?

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 роки тому +2

      Hi Matt. Sorry it took so long to respond. Did you try the code that I posted on the Facebook page? Do a Facebook search for #setupNodeMCU - If that doesn't work, let me know. I post most of the code for videos there because there's a larger character limit on comments. I'm sure it's probably just a simple adjustment. Merry Christmas! 👊👊

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 роки тому +2

      Now that I Think about it...you may have to log into your router and open ports. I think I did this in the video. If you still need help, let me know. It is frustrating to get it up and running first time.

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

      Hello ​@@BMonsterLaboratory
      Merry Christmas!
      Thank you for your response.
      Yes, I've used your code on FB, and all I see are dots.
      No, I haven't logged into my router to open ports, and I'm not sure how I can do that. Could you please elaborate on this.
      I purchased the same ESP8266 that you are using in the video and it is brand new.

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

      I show the port forwarding in this video ua-cam.com/video/9t4LWxqnxVQ/v-deo.html just skip to 5:35 and watch from there. This video is connecting a coffee pot to my wifi. I blot out my person ID numbers along the way but I think you can still follow it. My router is a TP-Link and there's a tutorial video on UA-cam. You can probably find instructions for your brand of router on the manufactures web site. let me know what ya think.

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

      @@matthosini9656 So I finally got a chance to watch that video and go through all the steps and here is what I would check.
      1. download the driver - you can see this at 2:25
      2. in the video I have a pin at D4 even though this is GPIO2. this one is easy to miss. You can see the pinout at 4:53
      3. make sure to include the ESP8266WiFi library in the code.
      4. make sure your SSID is correcct. This is the name of your wifi.
      5. make sure the password for your wifi matches the password in your code.
      You have probably done all or most of these. Hopefully you catch a small error in one of these points. I believe the dots keep appearing in the serial monitor because you are not connecting to your wifi. I would probably start with making sure the SSID and Password match. I certainly hope this helps because this stuff really is a lot of fun once you get it working.

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

    I am having problems making the connection from the Arduino IDE to the nodemcu 8266 12-E. In the dropdown, there is no com port choice to select from. I downloaded the ch340G driver twice, rebooted my pc, still no choice in the dropdown to select com port. I get message after compiling "Upload error: Failed Uploading: no upload port provided".

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

      hi Jeffrey! try switching USB ports and hopefully the option will drop down. which library are you using?

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

      I just plugged mine in and got the same thing. I'm using Arduino IDE 2.0 now so I have to download NTPClient from the library manager. I now get an option to select port. It works now. Make sure you select NodeMCU 1.0(EsP-12E) board as well. I hope that helps. Sorry for the long delay in replying.

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

    I'm new to this kind of stuff. I'm curious if this wifi thing has any practical purpose, other than as a fun thing to tinker with. If I hooked this wifi thing up to my Surface Pro 2 would it give me more powerful internet?

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

      Hi Dirk Tyler! Great to hear from you. There are many practical users for this board. The board itself has remained very cheap on ebay. I have only used it for automation when using home appliances or lights. It can also be used for robotics, wifi monitoring, control i/o pins, remote cameras...etc. it would not provide a stronger internet connection when communicating with a surface pro. It allows you to easily build iot controls that can serve a purpose. I fully intend on making many more iot videos in the future since it's a hot topic. Electronics is a hobby for me and I have found that wifi boards are a different animal.

  • @abubakarnurudeen6247
    @abubakarnurudeen6247 29 днів тому +1

    Please, I wrote the same code and uploaded it it says pin mode is not declared what will be the problem

    • @BMonsterLaboratory
      @BMonsterLaboratory  29 днів тому

      hey there!
      Try going to Tools > Board > NodeMCU 1.0 (ESP-12E Module) or whatever board you're using.
      Try goin to preferences in IDE and adding "arduino.esp8266.com/stable/package_esp8266com_index.json" to board URLs.
      in Arduino IDE go to preferences>Additional boards manager URLs: arduino.esp8266.com/stable/package_esp8266com_index.json
      make sure you have the CH340 driver installed. There are good instructions on how to do this at Sparkfun website - here-->learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all
      I just got 2 of my esp8266 boards out and they work fine with the code that was posted on Facebook. Of course, don't forget to add your network credentials in the code. 👍

  • @lenp00
    @lenp00 Рік тому +1

    Excellent video, very helpful. Now that my ESP8266 has a valid IP on my WiFi network, when I try to connect to that IP address I get a "The Site Can't Be Reached" message... (IP Address) refused to connect. Any idea what the issue could be?

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

      Thanks! I assume you have the right SSID and password in the code. Did you press the reset button once you uploaded the program? Are there are any firewalls or port-blocking configurations on the network that might be preventing connections to the ESP8266?

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

    I run the same code but I get this error ; too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'

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

      The code is exactly what I used? Did you copy and paste or type it out? Can you copy & paste the code with error?

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

      I its probably too long. You can email it to me as well.

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

    More future videos to come with this board. This video and code is also on Facebook #setupNodeMCU. Thank you for watching.

  • @ghitaghouli9975
    @ghitaghouli9975 Рік тому +1

    and in a drone. Is it the same way ?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Рік тому +1

      Hey there! I wouldn't use this board for a drone. Go with esp32 or teensy 4.1. Better processor speeds. I haven't built a drone yet... maybe one day!

  • @ishan7b628
    @ishan7b628 2 місяці тому +1

    From where you purchased that, pls tell me bro

    • @BMonsterLaboratory
      @BMonsterLaboratory  2 місяці тому

      I got it from amazon. search NodeMCU ESP8266 12-E
      you can do a Google search and buy it form many other places as well. 👍

  • @سامرشنوان
    @سامرشنوان Рік тому +1

    Hi . I have a prblem to connect this nodemcu esp8266 to arduino IED .. I paste the URL you told us . And when i opend the board manager and find the eso8266 community but it refused to download and gave me a message :
    Faild to install platform: esp8266.
    Error: 2 unknown: )
    I will be thankful if you help me😊

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

      Hey there! Are you stuck in the preferences section of Arduino IDE? Do other boards connect to Arduino IDE? Do you have a firewall or anything else preventing connection? Do you have all the same checked boxes in the preferences page as I do in the video? Your message just means there's an issue during installation of esp8266 platform. Is there any other error code? It's been a while since I had to do this, so I'll check it out on my own board.

  • @lereko9125
    @lereko9125 7 місяців тому +1

    “The driver is successfully pre-installed in advance”. How do I fix this?

    • @BMonsterLaboratory
      @BMonsterLaboratory  7 місяців тому

      hello! I would uninstall and reinstall. Shouldn't have an issue after that. www.wch-ic.com/downloads/CH341SER_ZIP.html you can get it here or on github 👍

    • @lereko9125
      @lereko9125 7 місяців тому

      @@BMonsterLaboratory Thanks for the quick reply but it still didn't work :'(

    • @marilouaguilar3287
      @marilouaguilar3287 2 місяці тому

      same i uninstall and install again but istill

    • @marilouaguilar3287
      @marilouaguilar3287 2 місяці тому +1

      @@BMonsterLaboratoryi try to do this buy still pre installed

    • @BMonsterLaboratory
      @BMonsterLaboratory  2 місяці тому

      @@marilouaguilar3287 are you using NodeMCU ESP8266 12-E ? where are you trying to install from? what is the exact error you're getting? Maybe I can help 👍

  • @alvintechtv387
    @alvintechtv387 Рік тому +1

    Good Day sir. Can I Get the COde Of Wifi?

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

      hey there! If you ever want code for these videos, I have posted them all to the Facebook page for posterity. Sometimes they don't fit in the description so I just started posting them there. anyway, this one is short. here ya go and good luck!! If I can be of any help in the future, just ask ~👍💪
      #include
      const char* ssid="xxxxxx"; // Your WiFi ssid
      const char* password="xxxxx"; // Your Wifi password;
      int LedPin = 2;
      void setup()
      {
      pinMode(LedPin, OUTPUT);
      digitalWrite(LedPin, LOW);
      Serial.begin(115200);
      Serial.println();
      Serial.print("conntecting to WiFi");
      Serial.print(ssid);
      WiFi.begin(ssid, password);
      Serial.println();
      Serial.print("Connecting");
      while(WiFi.status() != WL_CONNECTED ){
      delay(500);
      Serial.println(".");
      }
      Serial.print("NodeMCU IP Address:");
      Serial.print(WiFi.localIP());
      }
      void loop()
      {
      digitalWrite(LedPin, HIGH);
      delay(500);
      digitalWrite(LedPin, LOW);
      delay(500);
      }

  • @jimpugh6357
    @jimpugh6357 Рік тому +1

    Why specifically 220 ohm resistor please?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Рік тому +1

      The ESP8266 operates at 3.3v which is too high for most leds. The led has a forward voltage of approximately 2v and operates at a current of 10-20ma. To calculate resistance to limit the current through the led, you can use ohms law, R=vsource-vLED/ILED or plainly, (R=V/I). You can use 130 or higher. I happen to have a ton of 220ohm resistor so, that's why I use that specific one... not sure if I have a 130 though. Anyway, great question. Thanks!

    • @jimpugh6357
      @jimpugh6357 Рік тому +1

      @@BMonsterLaboratory thank you! I had a 200 on hand

    • @BMonsterLaboratory
      @BMonsterLaboratory  Рік тому +1

      @@jimpugh6357 200 will work. Good luck to you 👍

    • @jimpugh6357
      @jimpugh6357 Рік тому +1

      @@BMonsterLaboratory most appreciated

  • @muhammadtahirsiddiqui3824
    @muhammadtahirsiddiqui3824 6 місяців тому +1

    How to find Ip address

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

      If you just want to find the IP address for your ESP8266, try this:
      #include
      const char* ssid = "YOUR_SSID";
      const char* password = "YOUR_PASSWORD";
      void setup() {
      Serial.begin(115200);
      delay(10);
      // Connecting to Wi-Fi network
      Serial.println();
      Serial.print("Connecting to ");
      Serial.println(ssid);
      WiFi.begin(ssid, password);
      while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(".");
      }
      Serial.println("");
      Serial.println("WiFi connected.");
      Serial.println("IP address: ");
      Serial.println(WiFi.localIP());
      }
      void loop() {
      // Put your main code here, to run repeatedly:
      }
      👍

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

    why is it need to reset?

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

      Hi Robert. The ESP8266 is pulled high by default. When you pull it low by pressing the button it will reset the board and allow you to see data on you serial monitor and connect to wifi. I've always had to reset after IDE upload with the 12E module to get the program started.

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

    where's the code sir? i cant see your code sir..

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

      Hi there! I post most project code on facebook. Search #setupNodeMCU on Facebook and click on the first comment. 👍 Have a great weekend!

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

      thanks sir! have a great day!

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

      @@basiliodollie3833 awesome

  • @prajitanand4362
    @prajitanand4362 3 роки тому +2

    Hi This comment is not for this vedio I just wanted to know the problem in my Arudino.
    It is showing that:
    Arduino: 1.8.12 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
    In file included from sketch\Ping.ino.cpp:1:0:
    C:\Users\Prajit
    \AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino/Arduino.h:258:10: fatal error: pins_arduino.h: No such file or directory
    #include "pins_arduino.h"
    ^~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    Error compiling for board Arduino Mega or Mega 2560.
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Could you please help me with this
    Hope this comment reaches you.

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

      Hi Prajit! Where is your code? Feel free to email me at bmonsterlab@yahoo.com. Tell me what board you're using, copy/paste the code in the email, and tell me what you're trying to do (ex. LED blink, move a servo arm..etc.). I can see from what you've posted that you're trying to use a library that you don't have installed (#include "pins_arduino.h"). If you need to install a library called pins_arduino on you're IDE, that's an easy fix. Anyway, send me that email and will try to help as much as possible so you can be up and running. Thanks!

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

      @@BMonsterLaboratory thanks a lot

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

    Too bad - linking the code to a social media site.

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

      Hi there. Not all code fits in the comment section. Thought it would be easier to find that way.

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

      @@BMonsterLaboratory Maybe you can link it to GitHub? also why blur a local IP?

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

      ​@@heed.Security purpose silly boy

    • @6k911Channel
      @6k911Channel Рік тому

      @@heed.@mainuser8429 I put it as a comment above, apparently the character limit is higher then we thought