Arduino | LoLin NodeMCU V3 ESP8266 with Arduino | Getting Started | Control the LED
HTML-код
- Опубликовано: 14 окт 2024
- Arduino | LoLin NodeMCU V3 ESP8266 with Arduino | Getting Started | Connect to WiFi and Control the LED. In this project video i use LoLin NodeMCU V3 ESP8266 and Arduino IDE 1.8.9.
Download LoLin NodeMCU V3 ESP8266 Board for Arduino IDE (json arduino preferences) : arduino.esp8266... , or look at the Arduino code below, I added it there too.
Download Arduino Code here : drive.google.c...
If the code above doesn't work, try using the code on this web: enrique.latorre..., I copy it from there and do a little change.
***********************************************
Thanks for watching & don't forget to like, comment and Subscribe...
***********************************************
For other video tutorials on this channel, please see this playlist:
Basic4Android (B4A) Tutorials : • Basic4Android (B4A) | ...
Electronics Tutorials : • 3 LED Flip Flop
Arduino Tutorials : • Arduino | Scrolling Te...
Great Cow Basic Tutorials : • Great Cow BASIC with A...
Bascom Avr Tutorials : • Bascom Avr | How to Se...
VB .NET Tutorials : • Visual Basic .NET | ...
***********************************************
Download Arduino IDE : www.arduino.cc...
***********************************************
Source of network topology images:
www.iconfinder...
www.iconfinder...
***********************************************
Reference : enrique.latorre...
***********************************************
Music Background :
Song: Ikson - Do It (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link: • Video
Far Away by Declan DP / declandp
Licensing Agreement: www.declandp.in...
Free Download / Stream: bit.ly/2NhWC1F
Music promoted by Audio Library • Far Away - Declan DP (...
*********************************************** - Наука
if your serial keep writing ??>?
thank you
you saved my ass
@@blackpro5763 you welcome my friend
@@luisandresrodriguezgomez3343 you are welcome my friend
saved my life
It helped me . My LOLin can "breathe" now. Thanks! You've deserved your like.
Make sure to hold down the "flash" button when plugging the usb into your pc/mac. This will set it into "program mode". Maybe some are different.
Also, you have to unplug it again*Hold "reset" and plug it back in to actually run the code
Do you use the same NodeMCU as the one I used ? because at NodeMCU I don't need to do that.
@@utehstr Mine is identical but it may be a knock off. I got it on Ali and it does NOT say "Lolin" anywhere on it. However all other pins and printings are the same on the board. I know very litttle about the esp8266/Wemos/Nodemcu boards but i'm learning more each day. It is hard! hahaha. I found that, much like an esp-01, i had to hold the reset when plugging it in to make it run, as well as hold the flash when plugging in to program it. Thank you for the tutorial though!
@Josh You're welcome.
Thank you also for the information
Maybe this will help other people who have NodeMCU like you have :-)
Please share link to download "U S V" tool.
Nicely done. Easy to follow and does what I had hoped it would.
Thank you :-)
Please tell me which one is best mcu esp8266 V2 vs v3......?
i have NodeMCU V2, it's work for me on GPIO16 (D0), but when i uploaded sketch to my ESP i have this comunicat: Done uploading
Leaving...
Hard resseting via RTS pin...
it's normal comunicat or something is wrong?
I have never used NodeMCU V2 and I have never had a problem like that. After uploading does the code not work?
@@utehstr the code does work. I Just want to know why this comunicat pops up
@@bartekll7068 I don't know about this. Sorry can't help.
Some happens to me using v3, but it works, that's what matters i guess.
hi, Can I connect many sensors (2, 5, 10, 24...) into only one ESP8266 board ?
It worked really well, however when i use same wifi in my phone it's fine, but when i connect using mobile data it doesn't open url. How could i fix this. Let's say I want to have access while not being at home.
I have never tried that. Maybe you need a Public IP or online server. This will be my next project and if it's finished and successful I'll make the video. Sorry I can't help you for now.
If your devices are going to be on other networks you can access with ip address. (When your modem restarts you get new ip address. So you should get static ip address or you should get your new ip address to your phone. There are more than one solution.)
How come Blink needed a 262k upload to run the compiled code? And what libraries were used?
Thank you nice work
I have a question please
Can nodemcu work by using battery as power source instead of power from computer.
If that possible can you please tell my how to do it.
please
I am a subscriber for your channel from iraq.
Thank you for subscribing :-)
Of course NodeMCU can use batteries as a power source. I found a website that is good enough to explain it, see here : henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/powering-the-esp-12e-nodemcu-development -board /
Can you please make a video about using wemos ch340G connect with arduino and RFID and real time clock
sending the data to Google sheet .
Please
I can't make it for now, because I don't have wemos yet.
but, how do i add more commands to the page i get from the web browser. where, in the code does is this menu even derived from?
Any suggestions or examples of LoLin NodeMCU V3 ESP8266 with MQTT?
sir solve my problem this error messages display
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Hi . i tried to upload the 2nd coding to my board . However it seems that my ESP8266 are not able to connect with my mobile hotspot . Do u know how can i fix it ?
Hi. Make sure that the ssid and password you wrote in the Arduino code are correct. Also make sure that no other device is connected to your mobile hotspot if the mobile hotspot uses the setting to limit the number of connected devices.
esp8266 nodemcu v3 port is not visible, what should I do?
plz hlp
cannot convert 'uint32_t*' {aka 'unsigned int*'} to 'const time_t*' {aka 'const long long int*'}
Can we use same procedure for ecp 32?
ssid and password is our own connected hotspot right sir? because my code doesnt seem to give the supposed result in the serial monitor
Yes, and make sure your computer and nodemcu are on the same network.
@@utehstr What about connecting to it through the internet? Thanks
@@HushNinja You need to have a wifi network that you can connect your ESP to. If what you mean is that your computer is in a different one then you need to make your computer reachable from the internet. So you're gonna need a public IP adress (you most likely already have one but if you don't then maybe reach out to your ISP) and you're gonna need to configure your router to route incoming traffic on a given port to your computer. Also your ISP may have given you an IP address that changes, which you again would have to discuss with them, or use some DDNS service
Thanks you! of Buenos Aires
You're welcome 👍🙂
which libraries were used ?
Hello sir. Apabila saya upload command, akan keluar “the selected serial port serial.serialutil. SerialTimeOutException: Write timeout does not exist or your board is not connected” apa yang perlu saya lakukan?
Saya belum pernah mengalami itu, jadi maaf saya tidak bisa menjawab. Tapi mungkin link ini bisa membantu kamu github.com/esp8266/Arduino/issues/6110 , silahkan dilihat.
i had succesfuly made this one. is there away that broadband connection can be achieved ?
Sorry I don't understand what you mean, can you explain in more detail.
@@utehstr i want to control arduino via internet but i couldn't made it. I had already succesfuly control it via lan . May you share some info ?
@@panosaustrian See some examples here :
ruclips.net/video/O1R5GD-g5TY/видео.html
ruclips.net/video/r9Wvw4-CGXQ/видео.html
@@utehstr Thank you
@@panosaustrian You're welcome :-)
Do I need to install the driver CH340G which is written below the nodemcu??
Yes, if your computer has never installed the CH340G driver.
@@utehstr actually I have 2 node mcus.........One of LoLin and other one is Amica.......While connecting them the computer is able to read the Amica one but for the Lolin it says failed to install the driver........How should I proceed?
@@anirbandhar3424 I have never used Amica, does Amica also use CH340G ?
@@utehstr Amica uses a different driver but my PC is easily recognising that while only once it recognised Lolin after which the PC failed to do so
@@anirbandhar3424 Do you plug in Amica and Lolin on the same usb on the computer ?
I don't know, I usually don't go to RUclips to read long written explanations for things nor to listen to generic bop music.
I Can Only see Port USBSerial-3A20. Is this the right port to use?
Sorry I don't understand what you mean, can you explain in more detail.
@@utehstr After I installed Silicon Lab driver for Mac, I checked on Arduino software with my NodeMcu Lua ESP8266 CH340G ESP-12E board plugged in, I can only see 2 ports. One is /dev/cu.bluetooth-incoming-port. the second port that I can see is /dev/cu.usbserial-3A20. my question is was my driver installation done right? is that /dev/cu.usbserial-3A20 the right port to use with this board? thank you sir.
@@tangonovember4129 Sorry I have no knowledge of the NodeMCU Driver on Mac. Try asking this in the arduino forum.
@@utehstr It is Ok now. I used wrong driver. I supposed to use CH340G driver. Thank you anyway.
@@tangonovember4129 You're welcome :-)
what a nice video. so useful. Thanks for sharing
You are welcome :-)
hi sir. sorry but where can i download the U S V ?? i don't know how . please :( I'm stuck at the U S V to get the wifi and password
can you explain a bit more about your issue
Hi there do i need a ttl uart to be able to upload the sketch?
If you use the same board as in the video (LoLin NodeMCU V3 ESP8266) TTL uart is not needed.
If the Port ia not being recognised? What should I do?
Have you installed the driver for NodeMCU ?
@@utehstr I installed the driver, but not sure if the correct one. I have to try a different cable, maybe that's the problem. Thanks for the reply!
@@guilhermedelunoschendel5763 You're welcome :-)
good luck
Sir can't upload
Espcom_upload_mem failed
This type of error has occured pls help
Have you installed the driver ?
@@utehstr ya i have intalled CH340G driver
Make a video how to connect arduino uno with nodemcu.
Bro multi server to control in the nodemuc how to control one video make
Do you need to hold the flash button? Why some people are telling me that I need to hold that button?
I don't know about that and I don't have to hold the flash button.
Thanks! That helped a lot!
You're welcome 🙂
Great tutorial!!
where can i download the code to test?
Look at the video description
im getting this err msg please help - Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Executable segment sizes:
IROM : 228624 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26756 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
DATA : 1248 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 688 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24880 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 257316 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 26816 bytes (32%) of dynamic memory, leaving 55104 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM1
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "C:\Users\Regime\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py", line 65, in
esptool.main(cmdline)
File "C:/Users/Regime/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main
esp.connect(args.before)
File "C:/Users/Regime/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 483, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Same prob... Fatal error with vendor ch340 Nodemcu
@@abdullahalrazi3491 you need to flash the bootloader it is written at the back haha i fixed mine. then follow the intruction on the vid
Brother please help me how you flash yours. I tried flashing but not working. Connecting ..... And not go forward..
Please give your email so that I can contact you. Please
@@NERO-ez1mn please brother give your email address so that I can contact you.
@@abdullahalrazi3491 ruclips.net/video/MM9Fj6bwHLk/видео.html
My board keeps resetting and the server won't even start ??
if the board keeps on resetting you have 3.3v problem. You are not supplying enough mA to the board, these boards run 3.3v 300ma max. Also read something about the tx pin that is 5v on the arduino needs to be adjusted with a resistor to 3.3v
how to fix "error downloading downloads.arduino.cc" sir ?
Look here : forum.arduino.cc/index.php?topic=560963.0
that board suck you have to define pin Pinmode(D0,OUTPUT); didn't work other way like in Arduino Uno and its a low power board relay didn't work well with it
I cant download that .json file
Look here :
forum.arduino.cc/index.php?topic=461880.0
forum.arduino.cc/index.php?topic=461880.15
@@utehstr Thanks man
Nice, Thanks
You are welcome :-)
Great video
Thank you :-)
thanks man
thank you very much
You're welcome :-)
ty this work on me
You are welcome :-)
Nice video bro!!!!!!
Thank you :-)
how about arduino yun
old board, now there are much better like esp-32
Be careful with the pinout.
static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
static const uint8_t D10 = 1;
link??