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?
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! 👊👊
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.
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.
I show the port forwarding in this video th-cam.com/video/9t4LWxqnxVQ/w-d-xo.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 TH-cam. You can probably find instructions for your brand of router on the manufactures web site. let me know what ya think.
@@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.
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
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?
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?
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?
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.
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".
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.
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 👍
@@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 👍
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); }
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😊
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.
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!
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: } 👍
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.
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.
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!
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 .
Thanks! I appreciate this comment 👍
Well done, keep it up, thanks for sharing it with us :)
Thank you! I appreciate your kind comment.
Awesome best TH-cam ever
Radha, Thanks! 😁 I appreciate your time watching. Have a great day~
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?
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! 👊👊
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.
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.
I show the port forwarding in this video th-cam.com/video/9t4LWxqnxVQ/w-d-xo.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 TH-cam. You can probably find instructions for your brand of router on the manufactures web site. let me know what ya think.
@@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.
Can you please provide a link(usb link) of that micro usb cable to connect that board 2:58
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
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?
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?
From where you purchased that, pls tell me bro
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. 👍
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?
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.
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".
hi Jeffrey! try switching USB ports and hopefully the option will drop down. which library are you using?
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.
and in a drone. Is it the same way ?
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!
I run the same code but I get this error ; too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
The code is exactly what I used? Did you copy and paste or type it out? Can you copy & paste the code with error?
I its probably too long. You can email it to me as well.
“The driver is successfully pre-installed in advance”. How do I fix this?
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 👍
@@BMonsterLaboratory Thanks for the quick reply but it still didn't work :'(
same i uninstall and install again but istill
@@BMonsterLaboratoryi try to do this buy still pre installed
@@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 👍
Good Day sir. Can I Get the COde Of Wifi?
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);
}
More future videos to come with this board. This video and code is also on Facebook #setupNodeMCU. Thank you for watching.
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😊
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.
Why specifically 220 ohm resistor please?
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!
@@BMonsterLaboratory thank you! I had a 200 on hand
@@jimpugh6357 200 will work. Good luck to you 👍
@@BMonsterLaboratory most appreciated
How to find Ip address
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:
}
👍
where's the code sir? i cant see your code sir..
Hi there! I post most project code on facebook. Search #setupNodeMCU on Facebook and click on the first comment. 👍 Have a great weekend!
thanks sir! have a great day!
@@basiliodollie3833 awesome
why is it need to reset?
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.
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.
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!
@@BMonsterLaboratory thanks a lot
Too bad - linking the code to a social media site.
Hi there. Not all code fits in the comment section. Thought it would be easier to find that way.
@@BMonsterLaboratory Maybe you can link it to GitHub? also why blur a local IP?
@@heed.Security purpose silly boy
@@heed.@mainuser8429 I put it as a comment above, apparently the character limit is higher then we thought