Arduino | LoLin NodeMCU V3 ESP8266 with Arduino | Getting Started | Control the LED

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 มี.ค. 2019
  • 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.com/stable/pac... , or look at the Arduino code below, I added it there too.
    Download Arduino Code here : drive.google.com/open?id=18Sw...
    If the code above doesn't work, try using the code on this web: enrique.latorres.org/2017/10/1..., 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/en/Main/Software
    ***********************************************
    Source of network topology images:
    www.iconfinder.com/icons/4736...
    www.iconfinder.com/icons/6211...
    ***********************************************
    Reference : enrique.latorres.org/2017/10/1...
    ***********************************************
    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.info/music-licensing
    Free Download / Stream: bit.ly/2NhWC1F
    Music promoted by Audio Library • Far Away - Declan DP (...
    ***********************************************
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 134

  • @lpe6300
    @lpe6300 2 ปีที่แล้ว +15

    if your serial keep writing ??>?

    • @luisandresrodriguezgomez3343
      @luisandresrodriguezgomez3343 2 ปีที่แล้ว +2

      thank you

    • @blackpro5763
      @blackpro5763 2 ปีที่แล้ว +2

      you saved my ass

    • @lpe6300
      @lpe6300 2 ปีที่แล้ว +1

      @@blackpro5763 you welcome my friend

    • @lpe6300
      @lpe6300 2 ปีที่แล้ว

      @@luisandresrodriguezgomez3343 you are welcome my friend

    • @underlecht
      @underlecht 2 ปีที่แล้ว +1

      saved my life

  • @dmitrygross3715
    @dmitrygross3715 4 ปีที่แล้ว +1

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

  • @huutiepdo5166
    @huutiepdo5166 7 หลายเดือนก่อน

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

  • @tadrichardson
    @tadrichardson 4 ปีที่แล้ว

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

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      Thank you :-)

  • @nelsonlupolibutavand6056
    @nelsonlupolibutavand6056 3 ปีที่แล้ว +1

    Thanks you! of Buenos Aires

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      You're welcome 👍🙂

  • @gabedude68
    @gabedude68 ปีที่แล้ว

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

  • @prashantsah5853
    @prashantsah5853 2 ปีที่แล้ว

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

  • @MrPina532
    @MrPina532 4 ปีที่แล้ว

    what a nice video. so useful. Thanks for sharing

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      You are welcome :-)

  • @SAUL232
    @SAUL232 2 ปีที่แล้ว

    Great tutorial!!

  • @AIHands
    @AIHands 2 ปีที่แล้ว

    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?

  • @Jeffthermite
    @Jeffthermite 3 ปีที่แล้ว

    Thanks! That helped a lot!

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      You're welcome 🙂

  • @KrishnaBanarasi
    @KrishnaBanarasi 4 ปีที่แล้ว +3

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

  • @lfgward
    @lfgward 4 ปีที่แล้ว

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

  • @hamzarauf320
    @hamzarauf320 3 ปีที่แล้ว

    Can we use same procedure for ecp 32?

  • @davides3610
    @davides3610 4 หลายเดือนก่อน

    thanks man

  • @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 :-)

  • @nitishgowrydoss6959
    @nitishgowrydoss6959 2 ปีที่แล้ว

    which libraries were used ?

  • @chathushkaelectronics1152
    @chathushkaelectronics1152 2 ปีที่แล้ว

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

  • @lpe6300
    @lpe6300 2 ปีที่แล้ว

    thank you very much

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      You're welcome :-)

  • @bisyrim1030
    @bisyrim1030 5 ปีที่แล้ว

    ty this work on me

    • @utehstr
      @utehstr  5 ปีที่แล้ว

      You are welcome :-)

  • @AninuApps
    @AninuApps 4 ปีที่แล้ว

    Nice, Thanks

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      You are welcome :-)

  • @gustavosolanobecerra6250
    @gustavosolanobecerra6250 3 ปีที่แล้ว

    Great video

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      Thank you :-)

  • @hareemfatima1839
    @hareemfatima1839 3 ปีที่แล้ว

    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

  • @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 4 ปีที่แล้ว

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

  • @user-cc3eu4ng7f
    @user-cc3eu4ng7f 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.

  • @dovydasvilcinskas3834
    @dovydasvilcinskas3834 4 ปีที่แล้ว +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  4 ปีที่แล้ว

      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 4 ปีที่แล้ว

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

  • @syafiqahzawanahzahraabinti6957
    @syafiqahzawanahzahraabinti6957 2 ปีที่แล้ว

    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  2 ปีที่แล้ว +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.

  • @user-ud1rl8ln1k
    @user-ud1rl8ln1k 3 ปีที่แล้ว

    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

  • @98renatex
    @98renatex 3 ปีที่แล้ว

    Nice video bro!!!!!!

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      Thank you :-)

  • @user-cc3eu4ng7f
    @user-cc3eu4ng7f 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 /

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

  • @evlaikos
    @evlaikos 4 ปีที่แล้ว

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

    • @utehstr
      @utehstr  4 ปีที่แล้ว

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

  • @MrAM4D3U5
    @MrAM4D3U5 3 ปีที่แล้ว

    I don't know, I usually don't go to TH-cam to read long written explanations for things nor to listen to generic bop music.

  • @anirbandhar3424
    @anirbandhar3424 4 ปีที่แล้ว

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

    • @utehstr
      @utehstr  4 ปีที่แล้ว

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

    • @anirbandhar3424
      @anirbandhar3424 4 ปีที่แล้ว

      @@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  4 ปีที่แล้ว

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

    • @anirbandhar3424
      @anirbandhar3424 4 ปีที่แล้ว

      @@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  4 ปีที่แล้ว

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

  • @ariffhelmi9219
    @ariffhelmi9219 3 ปีที่แล้ว +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  3 ปีที่แล้ว

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

    • @HushNinja
      @HushNinja 3 ปีที่แล้ว

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

    • @xGOKOPx
      @xGOKOPx 3 ปีที่แล้ว +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

  • @natasyahuzair5784
    @natasyahuzair5784 3 ปีที่แล้ว

    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

    • @RiteshYadav-rc1np
      @RiteshYadav-rc1np 3 ปีที่แล้ว

      can you explain a bit more about your issue

  • @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 :
      th-cam.com/video/O1R5GD-g5TY/w-d-xo.html
      th-cam.com/video/r9Wvw4-CGXQ/w-d-xo.html

    • @panosaustrian
      @panosaustrian 4 ปีที่แล้ว

      @@utehstr Thank you

    • @utehstr
      @utehstr  4 ปีที่แล้ว

      @@panosaustrian You're welcome :-)

  • @honey7469
    @honey7469 3 ปีที่แล้ว

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

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      Have you installed the driver ?

    • @honey7469
      @honey7469 3 ปีที่แล้ว

      @@utehstr ya i have intalled CH340G driver

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

  • @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 :-)

  • @josephchan198
    @josephchan198 3 ปีที่แล้ว

    where can i download the code to test?

    • @utehstr
      @utehstr  3 ปีที่แล้ว

      Look at the video description

  • @aihkww
    @aihkww ปีที่แล้ว

    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

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

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

  • @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 th-cam.com/video/MM9Fj6bwHLk/w-d-xo.html

  • @mtalhakhalid1679
    @mtalhakhalid1679 ปีที่แล้ว

    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

  • @abdouprojet8111
    @abdouprojet8111 3 ปีที่แล้ว

    how about arduino yun

    • @ragnarrlobrok244
      @ragnarrlobrok244 2 ปีที่แล้ว

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

  • @621josee
    @621josee 3 ปีที่แล้ว

    link??

  • @sebasA
    @sebasA ปีที่แล้ว

    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;

  • @TungPham-ku7xf
    @TungPham-ku7xf 4 ปีที่แล้ว

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

    • @utehstr
      @utehstr  4 ปีที่แล้ว +1

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