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

Поделиться
HTML-код
  • Опубликовано: 29 авг 2024

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

  • @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 RUclips ever

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

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

  • @RixtronixLAB
    @RixtronixLAB Год назад +2

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

  • @lereko9125
    @lereko9125 3 месяца назад +1

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

    • @BMonsterLaboratory
      @BMonsterLaboratory  3 месяца назад

      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 3 месяца назад

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

  • @matthosini9656
    @matthosini9656 2 года назад +5

    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  2 года назад +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  2 года назад +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 2 года назад

      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  2 года назад +1

      I show the port forwarding in this video ruclips.net/video/9t4LWxqnxVQ/видео.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 RUclips. You can probably find instructions for your brand of router on the manufactures web site. let me know what ya think.

    • @BMonsterLaboratory
      @BMonsterLaboratory  2 года назад +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.

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

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

  • @jeffreykatz5994
    @jeffreykatz5994 Год назад +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  Год назад

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

    • @BMonsterLaboratory
      @BMonsterLaboratory  Год назад

      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.

  • @ghitaghouli9975
    @ghitaghouli9975 9 месяцев назад +1

    and in a drone. Is it the same way ?

    • @BMonsterLaboratory
      @BMonsterLaboratory  9 месяцев назад +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!

  • @naimaware
    @naimaware 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.

  • @muhammadtahirsiddiqui3824
    @muhammadtahirsiddiqui3824 Месяц назад +1

    How to find Ip address

    • @BMonsterLaboratory
      @BMonsterLaboratory  Месяц назад

      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:
      }
      👍

  • @alvintechtv387
    @alvintechtv387 8 месяцев назад +1

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

    • @BMonsterLaboratory
      @BMonsterLaboratory  8 месяцев назад

      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);
      }

  • @user-dn2pp7rz3r
    @user-dn2pp7rz3r Год назад +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.

  • @robertjohnatilano5603
    @robertjohnatilano5603 Год назад +1

    why is it need to reset?

    • @BMonsterLaboratory
      @BMonsterLaboratory  Год назад

      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

  • @jimpugh6357
    @jimpugh6357 10 месяцев назад +1

    Why specifically 220 ohm resistor please?

    • @BMonsterLaboratory
      @BMonsterLaboratory  10 месяцев назад +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 10 месяцев назад +1

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

    • @BMonsterLaboratory
      @BMonsterLaboratory  10 месяцев назад +1

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

    • @jimpugh6357
      @jimpugh6357 10 месяцев назад +1

      @@BMonsterLaboratory most appreciated

  • @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 2 года назад

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

    • @BMonsterLaboratory
      @BMonsterLaboratory  2 года назад +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 11 месяцев назад

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