How to Setup and Program NodeMCU ESP8266-Complete Guide
HTML-код
- Опубликовано: 17 фев 2022
- Let’s learn how to setup and program NodeMCU ESP8266 using Arduino IDE. We’ll connect NodeMCU ESP8266 with laptop using MicroUSB cable. And then install ESP8266 specific software packages using board manager in arduino software. This will let us select NodeMCU1.0 ESP-12E module while programming NodeMCU in tools section. And finally, we’ll write arduino program to blink on board led on NodeMCU ESP8266 which is D4 Pin.
[SUPPORT]
►► Get FREE TRIAL of Altium Designer: www.altium.com/yt/binaryupdates
►► Need Help? To Learn Embedded Systems: courses.binaryupdates.com
[TIMESTAMPS]
00.00 Introduction
01.02 Make sure device detected
02.36 Add board manager URL
03:14 Install ESP8266 boards
05:50 Select ESP-12E Module
07.12 Done uploading and blink LED
[LINKS]
►► Installation: github.com/esp8266/Arduino
I was worried about how to use it and was searching over and over again, then i found you, thank you
Same here
Awesome video brother. It was really amazing, actually it was so nice, that I completed the task while watching the video, even my LED started blinking with yours (shown in the video) 😁😁😁😁 more power to you.
Hi Humayun, thanks for your wonderful words. I'm happy you got NodeMCU ESP8266 running. Best wishes Brother!
Everyone can learn easily the way you explained, thanks you billion times,you are the kindest of all. Now I will give it a try.
Thanks Orens, wish you every success in learning programming NodeMCU ESP8266. Good day!
@@BINARYUPDATES Hi bro do you have the esp8266 product links
Found this page very useful I have learnt about this and succesfully installed my first nodeMCU espn8266. Now it is time to play with it. Thanks Bro.
Hey Manjum, I'm happy to know now you can program NodeMCU ESP8266. I've many video on ESP8266 here on my channel. Happy learning. Good luck and best wishes!
Amazing tutorial brother. Really appreciate how simple you made this!
Glad you like it!
Thank you so much, The video assisted me to locate NodeMCU8266
Big shoutout, this is by far the clearest video on this topic.
Muchísimas gracias mi querido amigo por su aportación a la comunidad.....Me ha funcionado perfectamente mi copia china......Gracias de corazón....Un gran abrazo fraternal desde Las Islas Canarias (España)..................
Awesome and perfect video brotha!!!
Hi Orlando, Glad you liked it
I am using ESP WROOM-02 is there no need to flash it using toolkit firmware? Can I directly code it using arduino IDE?
Very Cleary Explained ... Perfect !!
Nice demo. I will try this out
Sure and I'm sure you'll enjoy programming and working with NodeMCU ESP8266
Best wishes and good luck!
BinaryUpdates Team
thanks for the vid great job i just got the board & search for this
Glad I could help, Have a fun with NodeMCU ESP8266
Best wishes
BinaryUpdates
The only video that worked for me so far thanks maan
Hi Demba, i'm glad this lesson worked for you to get your NodeMCU ESP8266 running. Good luck and best wishes! Keep learning and keep growing....
Great way to start Esp8266 design, God bless you more
Thank you so much brother, it's very helpful. i did the installation and initial checks as per your guidance.
Hi Girish, I'm glad it worked and now you can program NodeMCU ESP8266. Good luck and best wishes. Happy learning!
you came as maqsood bhai in our life for our project so i want to give you jadoo ki jhapii (hug)
thank you for helping us 😊
Thanks Aditya. I'm happy to know this NodeMCU ESP8266 tutorial was helpful for your project. Good luck and best wishes!
Thanks for strait to the point tutorial.
Hi, Glad it was helpful!
Thank you sir. I could not get my board to work until I cam across this video.
how do I stop it from blinking, I cannot stop the program even if I unplug it
Glad to know finally you succeeded to program your ESp8266 NodeMCU.
Best wishes!
Since ESP8266 is a microcontroller as long as it gets power program will keep running on to it
Thank you so much, sir! It help me much 😇
Most welcome! I hope you learned NodeMCU ESp8266 from this lesson
Wish you good luck and best wishes!
thanks mate really clean tutorial
Hi Udaykumar , Glad it helped!
Excellent explanation and video, many THANKS. Hope you make video about STM32 projects with Arduino IDE.
Very well done. Thank you.
Puedo trabajar con el 8266 si tener que usar el wifi,pues yo quiero usarlo para llevar animaciones a una matrix y ese funcionalidad de el no me hace falta
Thank u very much broo
Made my day!!
Hi GanisChannel, Welcome Bro!
Insightful ❤
Your explanation cant be more simple...
You have said it all
Hi Stephen, thank you so much. I'm glad to know you enjoyed explanation of programming NodeMCU ESP8266 MCU. Best wishes!
I have never had success with the ESP and Arduino IDE in 5 years. Concentrating mostly on RaspberryPi Pico, Waveshare RP2040-One,Zero,Plus w/ LCD, Microchip PICs, Nucleo-STM32 boards with Armmite, a tube of NXP LPC800 an 8 pin DIP Arm Cortex-M0+, STM8 chips running 8 bit eForth. Your instructions made it so easy for such a normally frustrating installation. Now lets see if the Arduino GIGA R1 arriving tomorrow is this simple.
Hi Roy, Good luck and best wishes for your future projects around NodeMCU ESP8266. Let me know if I can help you. Good day
Thank you for your help.
You're welcome!
Thanks Brother, Very useful video.
Hi Muthukumaran, you are most welcome!
Great info Thanks a lot
nice bro your way of explain is sooooo good
Thanks and welcome Niaz!
very nice job
A very good and useful video
Hi Nathan
Glad you liked it
Great tutorial 👍
Hi Malik
Thank you! Cheers!
very good explanation .
keep it up
good for beginners.
Hi Rudram, thank you so much for your kind words!
thank you , good explanation !!
Glad it was helpful!
very good and Informative
Thanks for liking Thyagaraja!
Absolute perfect!
it helped me, thanks
Hi Shanilka
You're welcome!
Good luck and best wishes!
Thanks!
Thanks sir it was helped to my project
Thanks Keerthana!
great, i like your video
Thank you
really helped me
Glad to hear that! Have a fun with NodeMCU ESP8266
Good luck and best wishes!
Thanks brother ❤️
nice work!
Hi Remus, Thank you! Cheers!
Nice 👍 very helpful
Glad to hear that
Helpful content
Hi Ashutosh, thank you and I'm glad you find it useful.
Good luck and best wishes!
Thank you, really helped. Please make a video on how to install ESP8266WiFi.h and ESP8266WebServer.h libraries
Sure, I'll soon make video around WiFi libraries of ESP8266 NodeMCU in Arduino IDE.
Many thanks - got me off the ground with my project.
My ports written different from yours. it is written "USB-SERIAL CH340 (COM4)". Is my nodeMCU is fake or something? because I cannot upload any code in it
helo i need help i want to copy installed program from nodmcu esp8266
thank you. very nice bro
Welcome Edmund!
recently i purchased NodeMCU but it's not detecting any 2.4GHz wifi networks , why is that ?
Thanks a lot 😍 Can u pls. help me, I am trying to connect zigbee to nodemcu but zigbee is not discoverable in xctu app?
Hi Surbhika, I wish to have a time. But in future I'll consider making video to interface zigbee Xbee S2C with NodeMCU ESP8266. Thanks for you patience.
Best wishes!
BinaryUpdates Team
Hi sir is this board active low? Because the led and internal led not on at the same time
Yes Rahmat, you're right
Using a resistor with the LED is imperative to prevent any accidental damage to your ESP8266 module due to a short circuit.
Yes, I agree with you. To keep lesson short, simple to the point. I follow this quick way to connect LED to NodeMCU ESP8266. I hope you understand. Thanks!
I have connected the node MCU with my computer but my computer isn't detecting the node MCU ,the blue light is on in node mcu . What should i do?
Hi Siddhaarth, it may possible your NodeMCU ESP8266 is getting powered. But to work it properly you need to change good quality of MicroUSB Cable. I have seen very often cables create issue while detecting COM Port to computer.
I'm sure changing cable will resolve your issue. Good luck!
And Best wishes!
Team BinaryUpdates
I'm not able to connect my MCU to my computer it shows the communication port with an error symbol on it.
Should I need to add hardware from the action bar?
In this case, you may need to install the drivers on computer. If it still doesn't work then try with other good quality micro USB cable it will work. I have already posted video how to install drivers for NodeMCU ESP8266. Good luck and best wishes!
it says that out of 80,192 bytes of RAM available, 28,104 bytes are being used, which is 35% of the total RAM. how to rid of this error
Nice Thank you
Hi Imran, Welcome!
Thank you for creating this tutorial video for us, it helps us a lot..!! Can you also show us how we can control this functioning using Blynk App? Since it has Wifi module onboard, it will be convinient to control the actions via app. Also get the status of the device (led in this case) on the app.
Hi Avinash, please check NodeMCU ESP8266 playlist on our channel. I've already covered everything from controlling device like a light bulb to monitoring sensor data using Blynk IoT Platform with ESP8266. I hope you'll enjoy! Happy learning.
Best wishes!
I'm Getting error that is saying " exit status 0xc0000135
Compilation error: exit status 0xc0000135 ", Please help me what can i do?
I need Ur help for something in thé card esp8266
What cable we have to use any specificcations im using usb3.0but nok working showing permissions not given as error
Hi Srivanth, I used normal Micro USB cable with NodeMCU ESP8266. Good luck and best wishes!
if after this we plug out from laptop it works or not ???
means node mcu work without laptop if we upload code succesfully !!!
Without power kyu chalega Bhai power supply doge to jalega 1000 ms delay😊
Hi bro do you have the product link
thanks !!!
You're welcome!
I can work with the 8266 if I have to use the wifi, because I want to use it to bring animations to a matrix and that functionality of the I do not need
Yes, you can use ESP8266 for Wifi. NodeMCU ESP8266 has built-in Wifi along with Microcontroller
@@BINARYUPDATES disculpe no me entendió.Yo le prgunto que si puede usar el esp 8266 sin tener que usar el wifi,porque yo no tengo wifi en mi hogar,me refiero al esp8266 nodemcu
@@ernestorivero688 you can use the board without connecting to wifi. It just also has that functionality if you need it.
I need help to make a dongle with esp8266, if you know a suitable site or can guide me, I need help!
hello i cant seem to find my esp device on the ports what can i do to solve this issue?
Hi Syeda, Please try with other MicroUSB and also make sure if drivers detected if not please install relevant drivers. I have made dedicated video on this on my channel. I hope you'll find the video named "Solved USB not Detected-NodeMCU Driver issue". Best wishes!
cheers mate!
Thank you so much mate!
Hello I'm from Indonesia, I want to ask if nodemcu can run 2 or more programs simultaneously and how to install these programs.
Since NodeMCU is a microcontroller based device you can only run one program at a a time. You can use RTOS real time OS so that you can use multiple task. I hope this may help you. Best wishes!
@@BINARYUPDATES so can nodemcu run 2 programs alternately for example, the first program relays 1 channel to turn on/off the blinking led and the second program for the blinking led mode.
Sir can you please Helping me for making Temperature controlled water heater using ESP8266
Hi Vishal, I may not have a time to write a code for you but you can try searching sensors and start writing code for NodeMCU ESP8266 to make your temperature controller water heater. Good luck and best wishes!
Thanks
Hi Kenny, thanks I hope you enjoyed this NodeMCU ESP8266 video.
Good luck and best wishes!
Thanks Bro
Sir I got an error as "A esptool.py error occurred: write timeout" while uploading the program in esp8266. The program is related to soil moisture sensor and blynk app How I solve it? And also if that nodemcu already program set in it then these error occurred or not?
same error you are solving
On searching esp8266 in board manager it is not showing the library files. I already pasted the link
Hi Ayushman, I hope you're not searching ESP8266 into the library manager. Because I've seen many people search ESP8266 NodeMCU Board packages in Arduino Library Manager. You must search in "Board Manager". If in case it still not showing then close and open Arduino IDE several times. It happens then IDE doesn't locate link paster in "Preferences" section of Arduino IDE. I hope this may help you. Good luck!
Thank you
You're welcome Gyan De Silva!
I have an issue as my nodemcu led is working but the d4 pin external led not working
Hi, please check connections because those pins are very close to one another. Otherwise also check LED with other microcontroller board. Finally, check Arduino code uploaded on NodeMCU ESP8266. Good luck and best wishes!
does arduino ide version matters while flashing the code?
Its doesn't matter which Arduino IDE you use while programming NodeMCU ESP8266.
Super bro 💕💕
Thanks Kishore🤗
my laptop is not showing the option of ports(com and lpt)
Hi Aditya, try other USB Cable with NodeMCU or check if you've installed drivers properly. I've made dedicated video on how to fic drivers issue of NodeMCU ESP8266 on my channel. Good luck and best wishes!
Sir, In my laptop even after connected the NODE mcu the device manger not showing the option of port network.....please help me to set this
Please check other video on my channel for NodeMCU ESP8266 about drivers installation. There will be drivers for CP210x or CH340 needs to be installed in your laptop to detect NodeMCU. Also try other good quality USB cable. I hope this may help. Good luck!
@@BINARYUPDATES thank you....
Bro which cable used for programming
Normal phone charger cable or special cable
Hi Akashdeep, use Micro USB cable which will support DATA transfer, as well as power. And mobile charger cable will also work to program NodeMCU ESP8266. Good luck and best wishes!
@@BINARYUPDATESOMGG THANKS CAN I USE WIFI JAMMER FOR IT?? ❤❤
esp 8266
can use 5v usb to. Connect computer?
Yes you can use 5V DC tolerant USB Cable coming out of Computer to connect NodeMCU ESP8266
Sir I'm getting error like : could not open port com4 ,the semaphore timeout period has expired
Hi Arvind, please make sure COM Port is selected properly in Arduino IDE while uploading code. And also try connect to other USB port of laptop. If still doesn't help then close and reopen IDE and try to upload code. It happens sometimes as USB COM Port freezes. Hope this may help you. Good luck!
IF it is not ditected what should i do? please help me, ive tryed alot of cables no one is responsing
same problem. did yours work?
Please consider installing drivers for CH340 or CP2102 there are different version of NodeMCU ESP8266. I have dedicated video on my channel to show how to fix this issue. I hope you'll find in ESP8266 NodeMCU playlist. Good luck and Best wishes!
Thanks sir
Welcome
Tq bro ets wark🥰
Welcome 👍
no library of esp8266 by esp8266 community
how to find it?
Hi Adrian, please make sure to add proper additional board URL into the "Preferences" section of Arduino IDE. If URL could not found then the board can't be seen in "Board Manager" for installation. I hope this may help you. Good luck and best wishes!
The best
Please make a wifi led scrolling display with esp8266 & max7219.
Hi Bappaditya, I'll surely consider making video on Dot Matrix Display MAX7219 with NodeMCU ESP8266. Thanks for your suggestions!
If it denotes port is not detected.. Then what should we do?
Hi Geetha, in this case you need to install drivers or try other micro USB cable. And then try again and see if your ESP8266 detects the port in device manager of computer. I have made dedicated video to solve this issue on my ESP8266 NodeMCU playlist. I hope you'll find it. Good luck and best wishes!
Happy new year. I do not get the same arduino preference page. There is no place to paste the link? Do I have to donate money? Frustrated!!!
Hi Phillips, on top menu bar on Arduino IDE click on File. Then in the list select Preferences... and then a dialog box pops-up on screen there you've Additional boards manager URLs section where you can paste the link. no need to pay or donate , its available for all versions of Arduino IDE's. I hope this may help. Good luck and best wishes!
nodemcu v2 is working without downloading driver?
Thanks for an update. Usually, if you've genuine NodeMCU ESP8266 in that case drivers get installed and device detectes automatically. Cheers!
nice
In code after uploading it is showing 'D4' was not declared in this scope
Please make sure in board selection menu in Arduino IDE. You must select board NodeMCU ESP-12E this will link all libraries properly while compiling code. Good luck!
Pls anyone help me
I am getting an error
An error occurred while uploading the sketch
Esptool.py v3.0
Serial port com3
An error occurred while uploading the sketch
Hi Mohammed, try following things:
1-> Try with other USB cable,
2-> Close and reopen Arduino IDE and
3-> Make sure PORT is selected properly
These days these errors are common because of bad quality of NodeMCU board in market. I hope this may help.
Good luck and best wishes!
Can you teach me i can't see port in my device manager
Install driver
how can I jam any internet connection
Hi, you can check our videos on webserver and MQTT with ESP8266 NodeMCU. There I've covered internet connectivity of NodeMCU with IoT Server. I hope it will be useful. Good luck and best wishes!
Thanks for the tutorial. Shouldn't a resistor be needed for the LED ?
Hi Wagnard, you're right for external LED with NodeMCU ESP8266 its always recommended to use current limiting resistor. In this video to make quick and to keep simple, I avoided using. But still it works. Thanks and have a good day