TUTORIAL: Quickly getting started with NodeMCU / ESP8266 12E - In 7 mins! Beginner Friendly! Arduino
Вставка
- Опубліковано 27 вер 2024
- My website link for downloads (if any are present), etc:
youtube.accbs.c...
This is a short, easy, beginner friendly tutorial on how to get setup with the NodeMCU. I tell you a little bit about the NodeMCU, then I show you how to very quickly set it up. I show you how to set up the Arduino Software and I go through how to get the blink sketch working - In 7 minutes! The NodeMCU is basically an ESP8266 mounted on a break out board.
Featuring a special guest at 2:30. :-)
GitHub:
github.com/esp...
Board Manager:
arduino.esp8266...
Baby subtitles made my day :D
Sergey Tkach Adadadada aboo boo boo!!!! :D
Sergey Tkach same😁
same...Loved that baba
I love how you put subtitles for what the baby was saying 😂 that was cute. Also thanks for the tutorial.
Thanks Mr Sizzle!
I am going to subscribe to your channel just coz u added subtitles for the baby's voice. Super cute. Great video :)
Hahaha! In that video, my 1 year old was stood next to me whilst I was recording! I thought, "Yeah, she can be in the video!". It's a bit of fun I suppose!
shrikumar kulkarni ikr
agree XD
I think the special guest was trying to warn you to use a resistor with the LED
Thanks! As a beginner with the 8266 it was very useful, and on my first try it worked like a charm! It's only 10pm but I'm feeling it will be a long night. :)
thank you. First step to learn ESP8266 - checked
so nice to hear the baby, so glad for you!
Port issues: if your ESP8266 NodeMCU doesn't appear to have a port connection, then check that the cable you are using supports data. Some USB cables only supply power for charging purposes. You can get the port number by opening up Device Manager in Windows and you'll find it under Ports (COM & LPT) -> Silicon Labs CP210x USB to UART Bridge (COMx); where x is the port number. Speaking of Silicon Labs, this is the driver and can be found at www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers. Sorry I can't offer anything for Mac/Linux users, but you may be able to fill in the gaps based on the above information. As far as using D7 goes, this isn't necessary as LED_BUILTIN will find the internal LED port (as mentioned in the code comments). This video helped me to finally get this thing working (thanks for that!) with a few tweaks just mentioned. Happy hacking :)
thanks for the video, I can now sleep peacefully since I can upload my code to the node mcu
Thanks for the very clear instructions, Antony. I've only just received a couple of these ESP8266 NodeMCU v3 boards and I now have a led blinking on D7. I have used a lot of Arduinos and so I was happy to learn that I could program the ESP8266 boards using the same method.
Yes
Bloody lifesaver! I just couldn't get my NodeMcu to do anything(afaict) and the internal led is just USELESS. I honestly thougt it was duff. Once I changed the code to D7 (and then D6 just to be sure) everything is great! Now for some serious coding. Many thanks!!!
It worked! It actually worked! Thank you so much! Mine had a built-in LED so I left it like it was, and it worked!
Dan Great news! :)
Antony Cartwright I think it's really nice that you still respond to all comments so fast, even after so many months! Not many people do that, unfortunately!
Dan Yeah! I try! :)
Baby's Voice made me smile : )
ThankYou
Lol, thanks!
Perfect ESP8266-12e starter tutorial - and upto date on the place to download the arduino code etc. Just what is needed ! - Subscribed :)
DaveWilsonDesigns Thanks for your comment! I'm just wondering, what is your project with the nodemcu? :)
Hi Anthony.. Remote central heating valve controls for zone monitoring and time controlled environments.
Hey, thanks! It's always interesting to know what projects other people are working on. :-)
Awesome video thanks a lot.
Tried for a month and today finally got what I wanted.
Thanks bro
Lovely special guest!
akif safi haha! Thanks1
Ok this was the only tutorial that worked for me, thank you
Thanks!
Thanks for this. Hopefully, I shall now be able to do my fishtank light thingy that I have been promising to do for a while for this dude.
Great video. Thanks.
If you get the following error(s):
error: espcomm_open failed
error: espcomm_upload_mem failed
May be worth mentioning (in addition to your pinned troubleshoot guide) that running the newst version of Arduino IDE (1.8.4) may cause issues. I tried common troubleshooting methods, but still did not work. So I reverted to 1.8.2, as noted in the GitHub repo, and all is well. Moving forward, I'll be sure to remember to check for the latest Arduino IDE tested/supported. Hour of my time gone - lesson learned. Now on to the fun stuff!
Jashua White Thanks! I'll add it to the list now. Antony...
If you receive:
error: espcomm_open failed
error: espcomm_upload_mem failed
Make sure that the NodeMCU is in flash mode. You can do this by holding the flash button down, then by tapping reset, then letting go of reset a second afterwards.
If this doesn't work:
Check your wiring.
Make sure you are using a data cable, not a power cable.
Make sure Windows installs the correct driver. You'll be able to see it if you press Windows+X.
Make sure you've selected the correct COM port in Arduino.
Make sure you have selected the correct board from boards manager.
Check your version of Arduino Studio. Older versions may work better!
Thanks to +Wizencrowd for his contribution to this comment.
Antony...
Yes, that data / power cable advice was spot on. Thank you so much for making the setup process this simple.
I did the whole work and it worked pretty well.
now please anyone can suggest me how can I reset this nodeMCU.please its very urgent.I want to upload another code.how can I do it?please anyone
Write your code in Arduino Studio, plug the device in, then press CTRL + U.
that means I dont need to clear,just uploading a new code will automatically over ride the previous one.
Thnx alot for fast reply!!
Correct.
I am new to all this and the video was the most helpful I have watched so far. Thank You!
Daves test channel Thanks!!! What are you working with?
lol@2:33 , so sweet! subbed for that :D
good stuff. works on my esp8266MOD
Thanks man I was really searching this kind of video
Thanks
your made a good friendly tutorial !!
I am looking forward to the next video
Excellent video! Helped me get up and running. Really appreciate it.
Do you need to program every chip?
Excellent bootstrap video, thanks!
I am getting random junk in console in the same board like reverse question-marks while communicating.Help!!!
It's 2021, i have a problem. That is "hard resetting via RTS pin..."
So help.
Clear instruction and a very good explanation..ty bro
Just start, what happen when port is not available. What you do next to have port back
i have esp32 and can't seem to flash it, I have downloaded the latest codes, no idea what i'm doing, I did follow around 5 different videos.
Thank you for sharing this cool video! 🐶🖐🏾
Thanks!
3:41 "..just RESTART ARDUINO....." HALELUJAH!! This is what no-one else mentioned and is most likely why I've had no success!! Thank you Antony, (perhaps an subtitle to stress/highlight that?).
if the LED is already blink.. is that mean the nodemcu has connected to wifi??
Hi there... I did everything as per the tutorial. It's working fine. Thanks a lot.
Now I tried to connect to Wi-Fi. Just wrote a simple code to connect to Wi-Fi. Using Wi-Fi.begin(ssid, password). But it doesn't connect. So I tried to run the Wi-Fi scan from the examples. It scans and says no network found. Can someone please advice
Be aware that most (all whom I have asked) ESP8266 sellers in Aliexpress sell 30mm wide board which doesn't fit to 400 holes/tie points Breadboard, it is too wide. In amazon the still sell 26mm model. So be aware!
that baby was the star of this video :D
im not getting a COM number in the port tool. can you help?
Thanks! great video
serial.serialutil.SerialException: could not open port 'COM6': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
PLS HELP
hey Antony, you should do a video with a rubber ducky USB or a Bad USB as i know i could do with a bit more help and im sure other people do to plus its just a cool gadget to have and its not to hard to program either nor its scrips but its still nice to have a channel that demonstrates the scrips and shows you how to set it up 😀🙂😎
Hey Harvey! To build one or to use one? I think the USB Rubber Ducky thing is basically a USB keyboard isn't it? Well, it is a keyboard without keys! Ha!
yer pritty much but i think it'll by nice if you do a video on it or just get a keyboard and do a video on that lol :)
Haha! I'll see what I can do. I've currently got a backlog of videos to edit first though. To come: My drone - Part 6, Salvaging Lithium Ion Cells (new series), Post is here and Solar Update.
cool cant wait for that :) also just got my nodemcu chip which i just tried to do by myself which was really stupid so now going to try your way lol also the boad uploaded to 2.3.0 so hopefully its still workes this way
I am getting "Failed uploading: uploading error: exit status 2"
Very Much Thank You Sir. btw Your Guest sounds cute
When I type in 8266 nothing happens, what do I do?
In my code #include was not worked..it cause no such file or directory error
Alguem me ajuda por favor!!! Nao estou conseguindo conectar o NodeMCU NO WIFI DE JEITO NENHUM!! Já tentei vários códigos, e todos ficam aparecendo "................................................" na serial e nunca conecta. A serial esta na velocidade certa, eu coloco a senha e nome correto da rede, inclui a biblioteca, esta na porta correta do computador. Não sei mais o que fazer. O teste bink funciona, mas conecta no wifi de nenhuma forma!
Worked exactly as explained
thank you for your effort but i have a problen in serial a message > [158300] Packet too big: 29216 09:50:48.902 -> [158333] Packet too big: 30053 09:50:48.937 -> [158366] Packet too big: 25455 09:50:48.973 -> [158400] Packet too big: 8302 09:50:49.005 -> [158432] Packet too big: 25189 09:50:49.038 -> [158465] Packet too big: 28515 09:50:49.071 -> [158499] Packet too big: 25956 09:50:49.104 -> [158532] Packet too big: 25969 09:50:49.139 -> [158565] Packet too big: 29728 09:50:49.173 -> [158599] Packet too big: 27748
what are the software needed and how to install them?
keep up the good work mate
Thank you. But I want to ask why did not you put a resistor? Isnt it dangerous?
If port is NOT recognized, you should download this driver: www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
When downloading and installing, make you have Node MCU connected to USB.
error: cannot access /dev/ttyUSB0
An error occurred while uploading the sketch
error: espcomm_open failed
error: espcomm_upload_mem failed
How can i solve this error.
Hi, please see latest comment. It's pinned.
Thanks for making easy video
Anjali Pareek thanks!
my esp is not showing up in my COM port. Please help
Download the correct dirvers located here cityos-air.readme.io/docs/1-usb-drivers-for-nodemcu-v10 after that check which com ports it uses in device manager :)
LED's are semiconductors not lightbulbs. It is a common electronics beginners mistake to connect LED's without serie resistors. Please do your audience a favor and teach them the correct way to connect a LED so they will not at some point damage or even distroy their components. Thanks for being so kind.
Help me please.. i am using d1 t0 d8 pins. Problem is that. When power recycle in nodemcu it not work.. code fineshed. And i have to uplaod again and again
hey bro...plz help me...when i am entering the url and then when i am going to the boards manager ..it's saying error downloading....why bro..please help ma...please.....
Can I power it with 5V batteries?
requiere mucho tiempo para calentarse?
So the arduino IDE setup is kinda like any arduino compatible board - Hoped you'd at least demonstrate some rudiments of its wifi capabilities.
i haven got the chip yet but ive got it all setup so when it gets here i can just upload it as it seems like this will definitely work :)
Good luck!
Thanks!
Hello Guys
I had some issues with getting the software on it like a lot of other people. There are a few you need to pay attention to!!!!
1. Make sure U are using a data cable and not just a powercable.
2. If your windows doesn't install the driver, just download it.
3. *Make Sure that your NodeMCU is in program mode* you can do this by holding the flash button and then tap the reset button once.
Thank you hope I this helps
Thanks for your comment! All very true! Point 3 is a tricky one though as you technically don't have to do it as the CHG chip is supposed to do it for you. Still, it's good practice I guess. Thanks for your comment, sometimes I forget things. :-)
how to set datatype for d7 pin ?
Nice video, can you help me with my project? esp8266, 4 ch relay and android app for home automation? TIA
You don't need any register?
In this tutorial you have used the board as a regular Arduino Uno without using the WIFI?
Means we could use the board as node or as uno?
ESP 8266 is showing download error.
How do I install a custom code?
I'm having issues when I plug it in. It doesn't read the com port.
Thank you for this clear and simple tutorial.
From d1 to d8 any 7 pins work well even after recycling power. But when i conect 8 at a time it not work after recycle power. I also use do d9 d10 and also look a bit on s1 s2 s3. But not solve this problem. Please help me. If u can not give me any refrence of an expert.
Hey no need to push reset button?
I get
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Did you know whats wrong?
Não consigo tirar esse erro : "Placa generic (plataforma esp8266, pacote esp8266) é desconhecida" . Pode me ajudar ?
Hi, I have a question. can i power up a 5 volt 4 channel relay module with a 5 volt 0.7-0.8 mAh wall type charger, which is basically use for charge the simple mobiles.
If yes, then how i connect, i mean what will be the circuit diagram. which wire will be connect with the vcc and which wire connect with the ground and which wire is connect with the ESP8286.
OR,
ESP8266 nodeMCU board 3.3volt is sufficient for 4 channel 5 volt relay?
i am try to built a home automation project.
Thank you very much. Please help me
I got it working using on-board LED at pin D4. Nice tutorial though.
Thanks for the info. :-)
hi , may i ask u something about nodemcu? why my nodemcu show leaving ... hard resetting rts pin when it already done upload. i cant connect my phone with nodemcu i need helppp...
after i done what you did, there's no esp8266 listed only EPROM wire, software etc
Arduino: 1.8.14 Hourly Build 2020/10/09 12:25 (Linux), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
/tmp/arduino_modified_sketch_292442/Blink.ino: In function 'void setup()':
Blink:13:11: error: 'D7' was not declared in this scope
pinMode(D7, OUTPUT); // Initialize the LED_BUILTIN pin as an output
^
/tmp/arduino_modified_sketch_292442/Blink.ino: In function 'void loop()':
Blink:18:16: error: 'D7' was not declared in this scope
digitalWrite(D7, HIGH);
^
exit status 1
'D7' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
how do you tell the difference between the 12 and 12-E?
its not getting downloaded. the board manager window says---error downloading the link.
I did this way but 1 problem is when i uploading my code the result is error complling for board node mcu please help me
Good informative video . Thanks
i can't see any resistors.....
thanks helped a lot
It's this thing here, obviously
how to make esp8266 nodemcu show up on pc
Can you upload the program to connect from wifi for Amazon alexa and ESP8266
Any android micro usb cable can be used right? Because I'm facing a problem where my arduino ide cannot detect the connection to my laptop's port
I found the solution to my problem. I have to download driver to be installes to my computer from Silabs. You made a great video! Thank you!
Thanks!
Koon Kee Ohhh.. Thnx... Was facing the same problem
Hey, when I'm up to the port part, my port is still grayed out, and doesn't let me select any. Everything else went fine before that. Also on the flasher program it's the same thing, doesn't have any port option. Can you help?
you need to install its usb driver first for it to get detected.
Download it from here depending on your os.
github.com/nodemcu/nodemcu-devkit/tree/master/Drivers
what then?
I installed them and I just get "dev/cu.bluetooth"
your usb cable is not working
Omg I was stressing so much cause it wouldn't work when I wrote pin 7 in the code instead of pin D7...
Sir ,I am getting following error during uploading, how to solve it...??
Uploading 223632 bytes from to flash at 0x00000000
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Still working !
It's a WiFi jammer right?
why doesnt it have the LED on it to blink?
is it possible to use a Arduino UNO or Nano source code for Node or ESP 8266?
My program is not uploading.
It's showing espcomm_upload_mem_failed.
Help me please...
Not sure if you entertain this type request on your channel if you prefer requests of this type are not made then please disregard this post.
In need of a detailed video walking, no crawling, through the steps for several items related to the NodeMCU ESP8266.
How to see what is loaded in the memory of the device.
How to erase the contents of the memory.
How to load different firmware, for example, MicorPython then back again to ESP8266 original firmware.
List the tools for best carry out the listed items above.
Discuss NodeMCU memory amounts used and why. Have seen discussion on 1Meg and 4Meg but not sure how they are implemented.
Lastly, if you can dumb it down I am a hobbyist and started my journey down using IOTs a few months back and need all the hand holding I can get.