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 (...
    ***********************************************
  • НаукаНаука

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

  • @lpe6300
    @lpe6300 3 года назад +15

    if your serial keep writing ??>?

  • @dmitrygross3715
    @dmitrygross3715 4 года назад +1

    It helped me . My LOLin can "breathe" now. Thanks! You've deserved your like.

  • @Josh-oe4ex
    @Josh-oe4ex 4 года назад +1

    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

    • @utehstr
      @utehstr  4 года назад

      Do you use the same NodeMCU as the one I used ? because at NodeMCU I don't need to do that.

    • @Josh-oe4ex
      @Josh-oe4ex 4 года назад

      @@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!

    • @utehstr
      @utehstr  4 года назад

      @Josh You're welcome.
      Thank you also for the information
      Maybe this will help other people who have NodeMCU like you have :-)

  • @KrishnaBanarasi
    @KrishnaBanarasi 5 лет назад +3

    Please share link to download "U S V" tool.

  • @tadrichardson
    @tadrichardson 5 лет назад

    Nicely done. Easy to follow and does what I had hoped it would.

  • @prashantsah5853
    @prashantsah5853 3 года назад

    Please tell me which one is best mcu esp8266 V2 vs v3......?

  • @bartekll7068
    @bartekll7068 5 лет назад +1

    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?

    • @utehstr
      @utehstr  5 лет назад

      I have never used NodeMCU V2 and I have never had a problem like that. After uploading does the code not work?

    • @bartekll7068
      @bartekll7068 5 лет назад

      @@utehstr the code does work. I Just want to know why this comunicat pops up

    • @utehstr
      @utehstr  5 лет назад +1

      @@bartekll7068 I don't know about this. Sorry can't help.

    • @dovydasvilcinskas3834
      @dovydasvilcinskas3834 5 лет назад

      Some happens to me using v3, but it works, that's what matters i guess.

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

    hi, Can I connect many sensors (2, 5, 10, 24...) into only one ESP8266 board ?

  • @dovydasvilcinskas3834
    @dovydasvilcinskas3834 5 лет назад +1

    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.

    • @utehstr
      @utehstr  5 лет назад

      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.

    • @bilalguvenc4200
      @bilalguvenc4200 5 лет назад

      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.)

  • @gabedude68
    @gabedude68 2 года назад

    How come Blink needed a 262k upload to run the compiled code? And what libraries were used?

  • @مريم-مناف-عدنان
    @مريم-مناف-عدنان 4 года назад +1

    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.

    • @utehstr
      @utehstr  4 года назад

      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 /

  • @مريم-مناف-عدنان
    @مريم-مناف-عدنان 4 года назад +1

    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

    • @utehstr
      @utehstr  4 года назад

      I can't make it for now, because I don't have wemos yet.

  • @AIHands
    @AIHands 3 года назад

    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?

  • @lfgward
    @lfgward 4 года назад

    Any suggestions or examples of LoLin NodeMCU V3 ESP8266 with MQTT?

  • @hareemfatima1839
    @hareemfatima1839 4 года назад

    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

  • @syafiqahzawanahzahraabinti6957
    @syafiqahzawanahzahraabinti6957 3 года назад

    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 ?

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

      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.

  • @cordisay
    @cordisay 4 месяца назад

    esp8266 nodemcu v3 port is not visible, what should I do?

  • @chathushkaelectronics1152
    @chathushkaelectronics1152 3 года назад

    plz hlp
    cannot convert 'uint32_t*' {aka 'unsigned int*'} to 'const time_t*' {aka 'const long long int*'}

  • @hamzarauf320
    @hamzarauf320 3 года назад

    Can we use same procedure for ecp 32?

  • @ariffhelmi9219
    @ariffhelmi9219 4 года назад +1

    ssid and password is our own connected hotspot right sir? because my code doesnt seem to give the supposed result in the serial monitor

    • @utehstr
      @utehstr  4 года назад

      Yes, and make sure your computer and nodemcu are on the same network.

    • @HushNinja
      @HushNinja 4 года назад

      @@utehstr What about connecting to it through the internet? Thanks

    • @xGOKOPx
      @xGOKOPx 4 года назад +1

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

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

    Thanks you! of Buenos Aires

    • @utehstr
      @utehstr  3 года назад

      You're welcome 👍🙂

  • @nitishgowrydoss6959
    @nitishgowrydoss6959 2 года назад

    which libraries were used ?

  • @rauhahnadhirahainirusly3954
    @rauhahnadhirahainirusly3954 4 года назад

    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?

    • @utehstr
      @utehstr  4 года назад

      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.

  • @panosaustrian
    @panosaustrian 4 года назад

    i had succesfuly made this one. is there away that broadband connection can be achieved ?

    • @utehstr
      @utehstr  4 года назад

      Sorry I don't understand what you mean, can you explain in more detail.

    • @panosaustrian
      @panosaustrian 4 года назад

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

    • @utehstr
      @utehstr  4 года назад

      @@panosaustrian See some examples here :
      ruclips.net/video/O1R5GD-g5TY/видео.html
      ruclips.net/video/r9Wvw4-CGXQ/видео.html

    • @panosaustrian
      @panosaustrian 4 года назад

      @@utehstr Thank you

    • @utehstr
      @utehstr  4 года назад

      @@panosaustrian You're welcome :-)

  • @anirbandhar3424
    @anirbandhar3424 5 лет назад

    Do I need to install the driver CH340G which is written below the nodemcu??

    • @utehstr
      @utehstr  5 лет назад

      Yes, if your computer has never installed the CH340G driver.

    • @anirbandhar3424
      @anirbandhar3424 5 лет назад

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

    • @utehstr
      @utehstr  5 лет назад

      @@anirbandhar3424 I have never used Amica, does Amica also use CH340G ?

    • @anirbandhar3424
      @anirbandhar3424 5 лет назад

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

    • @utehstr
      @utehstr  5 лет назад

      @@anirbandhar3424 Do you plug in Amica and Lolin on the same usb on the computer ?

  • @MrAM4D3U5
    @MrAM4D3U5 3 года назад

    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.

  • @tangonovember4129
    @tangonovember4129 4 года назад

    I Can Only see Port USBSerial-3A20. Is this the right port to use?

    • @utehstr
      @utehstr  4 года назад

      Sorry I don't understand what you mean, can you explain in more detail.

    • @tangonovember4129
      @tangonovember4129 4 года назад

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

    • @utehstr
      @utehstr  4 года назад

      @@tangonovember4129 Sorry I have no knowledge of the NodeMCU Driver on Mac. Try asking this in the arduino forum.

    • @tangonovember4129
      @tangonovember4129 4 года назад

      @@utehstr It is Ok now. I used wrong driver. I supposed to use CH340G driver. Thank you anyway.

    • @utehstr
      @utehstr  4 года назад

      @@tangonovember4129 You're welcome :-)

  • @MrPina532
    @MrPina532 5 лет назад

    what a nice video. so useful. Thanks for sharing

    • @utehstr
      @utehstr  5 лет назад

      You are welcome :-)

  • @natasyahuzair5784
    @natasyahuzair5784 4 года назад

    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

  • @evlaikos
    @evlaikos 5 лет назад

    Hi there do i need a ttl uart to be able to upload the sketch?

    • @utehstr
      @utehstr  5 лет назад

      If you use the same board as in the video (LoLin NodeMCU V3 ESP8266) TTL uart is not needed.

  • @guilhermedelunoschendel5763
    @guilhermedelunoschendel5763 4 года назад

    If the Port ia not being recognised? What should I do?

    • @utehstr
      @utehstr  4 года назад

      Have you installed the driver for NodeMCU ?

    • @guilhermedelunoschendel5763
      @guilhermedelunoschendel5763 4 года назад

      @@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!

    • @utehstr
      @utehstr  4 года назад

      @@guilhermedelunoschendel5763 You're welcome :-)
      good luck

  • @honey7469
    @honey7469 4 года назад

    Sir can't upload
    Espcom_upload_mem failed
    This type of error has occured pls help

    • @utehstr
      @utehstr  4 года назад

      Have you installed the driver ?

    • @honey7469
      @honey7469 4 года назад

      @@utehstr ya i have intalled CH340G driver

  • @ΚωνσταντίνοςΕφρεμίδης

    Make a video how to connect arduino uno with nodemcu.

  • @jayakumarjayakumar8432
    @jayakumarjayakumar8432 2 года назад

    Bro multi server to control in the nodemuc how to control one video make

  • @vinhha8879
    @vinhha8879 4 года назад

    Do you need to hold the flash button? Why some people are telling me that I need to hold that button?

    • @utehstr
      @utehstr  4 года назад

      I don't know about that and I don't have to hold the flash button.

  • @Jeffthermite
    @Jeffthermite 3 года назад

    Thanks! That helped a lot!

    • @utehstr
      @utehstr  3 года назад

      You're welcome 🙂

  • @SAUL232
    @SAUL232 3 года назад

    Great tutorial!!

  • @josephchan198
    @josephchan198 3 года назад

    where can i download the code to test?

    • @utehstr
      @utehstr  3 года назад

      Look at the video description

  • @NERO-ez1mn
    @NERO-ez1mn 3 года назад

    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.

    • @abdullahalrazi3491
      @abdullahalrazi3491 3 года назад

      Same prob... Fatal error with vendor ch340 Nodemcu

    • @NERO-ez1mn
      @NERO-ez1mn 3 года назад +1

      @@abdullahalrazi3491 you need to flash the bootloader it is written at the back haha i fixed mine. then follow the intruction on the vid

    • @abdullahalrazi3491
      @abdullahalrazi3491 3 года назад

      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

    • @abdullahalrazi3491
      @abdullahalrazi3491 3 года назад

      @@NERO-ez1mn please brother give your email address so that I can contact you.

    • @NERO-ez1mn
      @NERO-ez1mn 3 года назад

      @@abdullahalrazi3491 ruclips.net/video/MM9Fj6bwHLk/видео.html

  • @aihkww
    @aihkww 2 года назад

    My board keeps resetting and the server won't even start ??

    • @alexiz.7569
      @alexiz.7569 Год назад

      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

  • @TungPham-ku7xf
    @TungPham-ku7xf 5 лет назад

    how to fix "error downloading downloads.arduino.cc" sir ?

    • @utehstr
      @utehstr  5 лет назад +1

      Look here : forum.arduino.cc/index.php?topic=560963.0

  • @mtalhakhalid1679
    @mtalhakhalid1679 2 года назад

    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

  • @cyriljosephsabu
    @cyriljosephsabu 4 года назад

    I cant download that .json file

    • @utehstr
      @utehstr  4 года назад +1

      Look here :
      forum.arduino.cc/index.php?topic=461880.0
      forum.arduino.cc/index.php?topic=461880.15

    • @cyriljosephsabu
      @cyriljosephsabu 4 года назад

      @@utehstr Thanks man

  • @AninuApps
    @AninuApps 5 лет назад

    Nice, Thanks

    • @utehstr
      @utehstr  5 лет назад

      You are welcome :-)

  • @gustavosolanobecerra6250
    @gustavosolanobecerra6250 4 года назад

    Great video

    • @utehstr
      @utehstr  4 года назад

      Thank you :-)

  • @davides3610
    @davides3610 10 месяцев назад

    thanks man

  • @lpe6300
    @lpe6300 3 года назад

    thank you very much

    • @utehstr
      @utehstr  3 года назад

      You're welcome :-)

  • @bisyrim1030
    @bisyrim1030 5 лет назад

    ty this work on me

    • @utehstr
      @utehstr  5 лет назад

      You are welcome :-)

  • @98renatex
    @98renatex 4 года назад

    Nice video bro!!!!!!

    • @utehstr
      @utehstr  4 года назад

      Thank you :-)

  • @abdouprojet8111
    @abdouprojet8111 3 года назад

    how about arduino yun

    • @ragnarrlobrok244
      @ragnarrlobrok244 2 года назад

      old board, now there are much better like esp-32

  • @sebasA
    @sebasA 2 года назад

    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;

  • @621josee
    @621josee 3 года назад

    link??