TUTORIAL: Quickly getting started with NodeMCU / ESP8266 12E - In 7 mins! Beginner Friendly! Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2017
  • My website link for downloads (if any are present), etc:
    youtube.accbs.co.uk/Video.aspx...
    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/esp8266/arduino
    Board Manager:
    arduino.esp8266.com/stable/pac...
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @m0rjjj666
    @m0rjjj666 6 ปีที่แล้ว +179

    Baby subtitles made my day :D

  • @z100tgp
    @z100tgp 7 ปีที่แล้ว +9

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

  • @binarybox.binarybox
    @binarybox.binarybox 6 ปีที่แล้ว +2

    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.

  • @alterguy4327
    @alterguy4327 6 ปีที่แล้ว +42

    Baby's Voice made me smile : )
    ThankYou

  • @Charzilian
    @Charzilian 5 ปีที่แล้ว +14

    I love how you put subtitles for what the baby was saying 😂 that was cute. Also thanks for the tutorial.

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

    Awesome video thanks a lot.
    Tried for a month and today finally got what I wanted.
    Thanks bro

  • @PaulMurrayCanberra
    @PaulMurrayCanberra 6 ปีที่แล้ว +1

    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.

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

    It worked! I was able to load Blink (as a test to see if everything is working) to the board! Thank you, you wonderful human! Also, your child's babbling is absolutely adorable. :)

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

      Does this work for esp-12e

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

    so nice to hear the baby, so glad for you!

  • @it4s389
    @it4s389 6 ปีที่แล้ว +1

    your made a good friendly tutorial !!
    I am looking forward to the next video

  • @shrikumar928
    @shrikumar928 7 ปีที่แล้ว +136

    I am going to subscribe to your channel just coz u added subtitles for the baby's voice. Super cute. Great video :)

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว +17

      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!

    • @mcgil8891
      @mcgil8891 6 ปีที่แล้ว

      shrikumar kulkarni ikr

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

      agree XD

  • @DanDC1
    @DanDC1 6 ปีที่แล้ว +3

    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!

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว +1

      Dan Great news! :)

    • @DanDC1
      @DanDC1 6 ปีที่แล้ว +1

      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!

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Dan Yeah! I try! :)

  • @BOBANDERSON5150
    @BOBANDERSON5150 6 ปีที่แล้ว +3

    Thank you for your very informative tutorial on the WiFi. Very well explained. Subscribed to your channel. Cheers, Bob!

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      BOB ANDERSON Thanks Bob! There's some exciting stuff to come. Stay tuned.

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

    Thank you for this clear and simple tutorial.

  • @davestestchannel76
    @davestestchannel76 6 ปีที่แล้ว +1

    I am new to all this and the video was the most helpful I have watched so far. Thank You!

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Daves test channel Thanks!!! What are you working with?

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

    Excellent video! Helped me get up and running. Really appreciate it.

  • @DaveWilsonDesigns
    @DaveWilsonDesigns 6 ปีที่แล้ว +1

    Perfect ESP8266-12e starter tutorial - and upto date on the place to download the arduino code etc. Just what is needed ! - Subscribed :)

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      DaveWilsonDesigns Thanks for your comment! I'm just wondering, what is your project with the nodemcu? :)

    • @DaveWilsonDesigns
      @DaveWilsonDesigns 6 ปีที่แล้ว +1

      Hi Anthony.. Remote central heating valve controls for zone monitoring and time controlled environments.

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Hey, thanks! It's always interesting to know what projects other people are working on. :-)

  • @christopherjspiteri
    @christopherjspiteri 7 ปีที่แล้ว +1

    thanks for video. i watched and completed task using captions as was able to succeed.

  • @akifsafi
    @akifsafi 6 ปีที่แล้ว

    Lovely special guest!

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

    thank you. First step to learn ESP8266 - checked

  • @tropicaljantie
    @tropicaljantie 7 ปีที่แล้ว +5

    good stuff. works on my esp8266MOD

  • @dhidhi1000
    @dhidhi1000 5 ปีที่แล้ว +1

    Ok this was the only tutorial that worked for me, thank you

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

    Thanks man I was really searching this kind of video

  • @holdendp
    @holdendp 5 ปีที่แล้ว +1

    Excellent bootstrap video, thanks!

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

    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?

  • @sagarmukherjee6297
    @sagarmukherjee6297 6 ปีที่แล้ว +1

    what are the software needed and how to install them?
    keep up the good work mate

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

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

  • @princessdiannem.medalla3165
    @princessdiannem.medalla3165 ปีที่แล้ว

    thanks for the video, I can now sleep peacefully since I can upload my code to the node mcu

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

    Clear instruction and a very good explanation..ty bro

  • @vijayalakshmim5302
    @vijayalakshmim5302 6 ปีที่แล้ว +1

    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

  • @kris.andrews
    @kris.andrews 5 ปีที่แล้ว

    Thanks Antony for sharing this. You got me up and running with the NodeMCU really quickly, seems much easier than trying to get it going in Lua. Do you know if there are any benefits/restrictions in terms of functionality to using with the Arduino IDE vs using the ESP toolkit? Not having to learn Lua seems like a big benefit to me :-)

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

      Hi, thanks, I'm not aware of any downsides to using Arduino... There is probably some small overhead, but I'm not sure. Antony...

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

    I think the special guest was trying to warn you to use a resistor with the LED

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

    lol@2:33 , so sweet! subbed for that :D

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

    can we add timer to spesific device? for example if i connect to wifi, 15 minutes later ill be disconnected automatically

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

    So when I upload it, it eventually ask me to give a different or a com port. I had com port 3. I’m a complete newbie to all this. But any advise would help

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

    Can you upload the program to connect from wifi for Amazon alexa and ESP8266

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

    Bro i want to connect a hard drive with this esp8266 or esp32 and use them as a server through which i can access my hard drive data wirelessly is that possible in any way??

  • @asimonp79
    @asimonp79 6 ปีที่แล้ว +1

    Worked exactly as explained

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

    I found this device and instantly wanted it! I bought it and got it, I get com ports... Only 1 (com port 3), all the videos I have watched they use com port 9. If I go on my phone and try to connect to it on my wifi, it shows a open unlocked networked called ESP. I downloaded the flasher and Arduino and it seemed like everything went well until it showed com port 3 instead of 9, and I still can't get it too work. Any suggestions?

  • @pandarzzz
    @pandarzzz 6 ปีที่แล้ว +1

    Thank you for sharing this cool video! 🐶🖐🏾

  • @korayk.454
    @korayk.454 3 ปีที่แล้ว

    Thank you. But I want to ask why did not you put a resistor? Isnt it dangerous?

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

    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

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

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

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

    is it possible to use a Arduino UNO or Nano source code for Node or ESP 8266?

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

    How do i even open a sketch on arduino, i went to the github and downloaded the latest release now hwo do i open it xD

  • @CarlosPerez-ff3bj
    @CarlosPerez-ff3bj 4 ปีที่แล้ว +1

    Do you need to program every chip?

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

    It's 2021, i have a problem. That is "hard resetting via RTS pin..."
    So help.

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

    Hi, I have a problem with my NodeMcu. I have a sketch , It is good but I don't read any GPIO. When I program and I write analogread() or digitalwrite() , The connection to Wifi down up. Thanks from Venezuela😀

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

    Nice video, can you help me with my project? esp8266, 4 ch relay and android app for home automation? TIA

  • @516oG
    @516oG 7 ปีที่แล้ว +2

    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?

    • @MrBittu92
      @MrBittu92 7 ปีที่แล้ว +1

      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

    • @lvl5swindler349
      @lvl5swindler349 7 ปีที่แล้ว

      what then?

    • @supitsriley
      @supitsriley 6 ปีที่แล้ว +3

      I installed them and I just get "dev/cu.bluetooth"

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

      your usb cable is not working

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

    can you help me?? to interfacing node mcu (Lolin) with stm32f4 discovery

  • @aakka-p
    @aakka-p 7 ปีที่แล้ว

    am i able to apply bin files to the esp8266 via arduino thing you opened in the video? like most of us, i'm also trying to make a wifi deauther but i have the code in a .bin file.

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว

      Hi, I'm not sure. I've never applied .bin files to an ESP8266. I use .ino files but I don't flash them, the Arduino software compiles them and flashes them.

  • @narut99
    @narut99 6 ปีที่แล้ว

    Hi
    Does the board can execute the sketch if its unplugged form the pc an plugged with a dc adapter ?

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Hi, if you unplug the board from the computer, you cannot flash it..

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

    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

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

    some one can help me for my case?many time I try to upload example of blink but not uploading in my device nodemcu.......something like this respond.Board nodemcuv2 (platform esp8266, package esp8266) is unknown

  • @JashuaWhite
    @JashuaWhite 6 ปีที่แล้ว +3

    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!

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว +1

      Jashua White Thanks! I'll add it to the list now. Antony...

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

    Hey I know this is a little late, but you didn't use a resistor on the led in the video. Do the ESP8266 boards not need one, or were you just living on the edge?

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

      I should have used an LED but for the purposes of simplicity, it's ok.

  • @techafolic6975
    @techafolic6975 6 ปีที่แล้ว

    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

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

    after i done what you did, there's no esp8266 listed only EPROM wire, software etc

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

    Thank You Sir Great work !!!!!!!!

  • @ZeBrain1
    @ZeBrain1 7 ปีที่แล้ว

    did you have to plug the esp into breadboard to upload something to it? because My computer won't recognize the esp when it's plugged in

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว

      Curtiss Peabody ESP? or NodeMcu? you can just plug the NodeMcu in via USB. Your computer may install the drivers automatically.

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว

      b? :-D

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

    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

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

    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.

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

    How can i upload again ? Can i format this blink programma. Plz guide me

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

    serial.serialutil.SerialException: could not open port 'COM6': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
    PLS HELP

  • @aswani3711
    @aswani3711 6 ปีที่แล้ว

    Hey, i keep getting error compiling for board NodeMCU 1.0 . What do i do to fix this ?

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

      click the flash button n ground

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

    My program is not uploading.
    It's showing espcomm_upload_mem_failed.
    Help me please...

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

    Thanks! great video

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

    I bought a MakerFocus ESP8266 on Amazon. Do you think its a NodeMCU also?

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

    if the LED is already blink.. is that mean the nodemcu has connected to wifi??

  • @user-om9qb2sd6d
    @user-om9qb2sd6d 6 ปีที่แล้ว +1

    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

    • @user-om9qb2sd6d
      @user-om9qb2sd6d 6 ปีที่แล้ว +1

      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!

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Thanks!

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

      Koon Kee Ohhh.. Thnx... Was facing the same problem

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

    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.

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว

      Hi, please see latest comment. It's pinned.

  • @spartangaming8639
    @spartangaming8639 7 ปีที่แล้ว

    how long does it take to fully upload i did everything he did in the video right im just wondering

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

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

  • @gilsongoes6116
    @gilsongoes6116 7 ปีที่แล้ว

    Não consigo tirar esse erro : "Placa generic (plataforma esp8266, pacote esp8266) é desconhecida" . Pode me ajudar ?

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

    I am getting random junk in console in the same board like reverse question-marks while communicating.Help!!!

  • @chellaidhevaraj4917
    @chellaidhevaraj4917 6 ปีที่แล้ว

    following errors are presented when i upload the program
    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

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

    Just start, what happen when port is not available. What you do next to have port back

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

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

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

    So the arduino IDE setup is kinda like any arduino compatible board - Hoped you'd at least demonstrate some rudiments of its wifi capabilities.

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

    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.

  • @ampdeck
    @ampdeck 6 ปีที่แล้ว

    how do you replace existing script on your nodemcu? do we format it again using ESPlorer?

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      ampdeck No, simply get your new sketch, then press ctrl+u.

  • @williamgagne2098
    @williamgagne2098 7 ปีที่แล้ว

    Do I do the same thing you are showing in this video if I ahve a NodeMCU?

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว

      Yes, The NodeMCU is basically an ESP8266 with some supporting components.

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

    how do you tell the difference between the 12 and 12-E?

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

    Hi
    Can you help with the esp8266 in home automation?
    I'm using it for home automation and the problem is when it reboots as the power gone, it automatically turns everything on .
    I don't need anything to be on state.
    Please help with it ?

    • @AntonyCartwright
      @AntonyCartwright  5 ปีที่แล้ว +1

      See if the esp8266 has an eeprom. If it has one, save states to it every 60 seconds. If not, add and eeprom and do the same. On restart, read from the eeprom and voila!

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

      @@AntonyCartwright I have Checked with it. But though it is turning on when it reboots. Now I ll check with eeprom. Thank you sir

  • @IvanHerdianSaputra
    @IvanHerdianSaputra 7 ปีที่แล้ว

    Hi.. I have a slight problem with ESP8266, the ESP's LED (blue LED) showed momentary flash after it connected to the USB port and also Port on Arduino IDE didn't detected the ESP's port. What should I do?

    • @AntonyCartwright
      @AntonyCartwright  7 ปีที่แล้ว

      HI, the NodeMCU uses a UART to communicate with the PC. If the Arduino software doesn't recognise this, it is most likely to do with drivers.

    • @IvanHerdianSaputra
      @IvanHerdianSaputra 7 ปีที่แล้ว

      I just tried CP210x, is it the right driver I have to install?

  • @WayneRiesterer
    @WayneRiesterer 5 ปีที่แล้ว +1

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

  • @susanthaperera4288
    @susanthaperera4288 6 ปีที่แล้ว

    Please tell me how to recognize a original NodeMCU?

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

    Can I power it with 5V batteries?

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

    Good informative video . Thanks

  • @davidcarvalho7102
    @davidcarvalho7102 5 ปีที่แล้ว +1

    Thank you so much man! :)

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

    for anyone having trouble uploading the script onto your board , install cp210 drivers then the com port should show up and itll work out

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

    Fantastic, thank you!

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

    im not getting a COM number in the port tool. can you help?

  • @anjalipareek2335
    @anjalipareek2335 6 ปีที่แล้ว +1

    Thanks for making easy video

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

    IT WORKS THSNKS

  • @xxM5xx
    @xxM5xx 6 ปีที่แล้ว

    I like your video. It is short and sweet. Thanks for making it. Please note, that in your video, what you are calling a UART is not a UART. The UART is actually internal to the ESP8266 SoC. What you pointed to was a USB to 3.3 volt serial converter (USB interface). In the old days(semi old days) we would call that chip (circuit) a USB to TTL serial interface. The reason we do not call it that anymore is because TTL is 5V logic, this ESP8266 uses 3.3V logic. That USB to serial data chip you pointed to was probably a CH340. To see why the CH340 is not a UART Google the CH340 data sheet, then Google what a UART is.
    *When you said people could use their own UART and connect to the board's Rx / Tx pins, the key here is to understand that this connection is a direct 3.3V serial connection to the ESP8266 SoC rather than a USB serial connection to the ModeMCU board.
    **The Rx / Tx pins (between pins D8 and G) connect more directly to the UART within the ESP8266 SoC. DON'T use 5V data swings on those pins. Those pins are 3.3 volt ONLY. There are other requirements to flash code directly via the Rx / Tx interface (like manually twiddling the bootloader invoke pin) but I only wanted to correct for your viewers the important distinction between a UART and a USB to serial interface. They are two different things. When teaching people things that are new to them, accuracy is best. Have a great day.

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Hey, thanks for your comment. You learn something new every day. For some reason, I still call that chip a UART even now, (one year after making this video). It's fairly obvious that the chip isn't a UART though as like you said, the UART is in the Module's chip! Yes, about RX/TX pins, ofcourse, you can't use USB as the control logic and voltage is different. The way I used to do it, was to use a standalone 'UART' (Which I will now call a 'UART Serial Converter'). :-)

    • @xxM5xx
      @xxM5xx 6 ปีที่แล้ว

      Thanks for your response. I'm not sure what what you are calling a chip and what you are calling a module. There are multiple components interconnected to create the NodeMCU "module". The NodeMCU is a module with another module attached to it. Basically the NodeMCU is a module built around another module. That smaller module is not actually an ESP8266 chip. That smaller module, when I look at your video is called an ESP12E. AI-THINKER made the ESP12E "module" in your video. Espressif Systems (China) provided the SoC to AI-THINKER who then made the smaller module on your larger NodeMCU module. The ESP8266 is a"chip" UNDER the metal can on the AI-THINKER module where you cannot see it. The ESP8266 chip is hidden. The AI-THINKER module assembly is soldered to the NodeMCU module (PCB).
      What you are calling a UART in your response to me above could be a FTDI USB to Serial interface (module). You are connecting the FTDI module between your computer and the Rx /Tx pins on the NodeMCU module, correct?
      Sorry if you or others reading this think I'm being pedantic. I don't want to be a prick. A few weeks ago I started watching dozens of TH-cam videos so I could learn about Lua, microPython, MQTT, SonOffs devices (which use ESP8266 chips) and other IoT things. I became very confused by what was an ESP8266, what was an ESP12E, what was a NodeMCU and why this has anything to do with Arduino. I'm getting it all figured out now. Frustratingly I ran into so many people inventing their own terms for things which already had industry standard terms assigned. Folks using the wrong terms for components made for an unnecessary heck of a time understanding it all. It is crazy confusing for us "students" to sort it all out when the wrong words are used by the "teacher". The industry terms are what should be used to keep confusion to a minimum IMHO. Then again, maybe I'm just old. I am 60.
      Please be aware that an FTDI chip on a PC board or module is unlikely to be a UART chip. I'm un-sure if the FTDI company from Glasgow, Scottland even makes a UART chip. Their claim to fame is their line of USB bridges. I don't know why but the many FTDI bridges I've seen are on red PCBs. I have a couple of these red FTDI bridges. They are genuine, not the counterfeits (Hi Fred Dart :-)). There are stand alone CH340 USB bridge modules from China ( I have a few) which are often on small blue PCBs. It doesn't matter if the USB bridge module you use is red or blue (FTDI or CH340), these are not UARTs.
      I'm not trying to be a jerk. I think it helps everyone, including me, if content creators use the proper terminology during their tutorials. As good as your tutorials are, you will be doing yourself a favor in the long run if, in your head, you use appropriate terms. You do your viewers a favor too because many of them are already confused by this technical stuff. I'm not that smart therefore I'm easily confused. Tutorials using incorrect terms isn't helping. I'm not singling you out. This applies to all the IoT tutorials on the web. Thanks.

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Hi,
      I call the NodeMCU the "module" and the inner module a "chip" (even though it is also a module).
      Correct too, the standalone serial converter which I'd have used would have been either FTDI, CH340, PL2xxx, etc. FTDI was by far the best though and the one I used to use more. Ofcourse, to connect Microcontroller to PC.
      I'm not worried about you being or not being pedantic, feel free to say whatever you want. :-)
      I'm a learner also, everyone on TH-cam is or has been a 'learner' at some point. I've also been though the inconsistencies, and spending hours learning, seeing/hearing wrong terms, etc. Ideally, if one knows the industry terms, it is good to use them, I agree with that! Also, when discussing complex things such as these, it is great to keep things as simple as reasonably possible, as you said. I don't think your age comes into that, I'm 31 and I feel the same way.
      FTDI do make very good UART interface chips, I have a few of them myself (My FTDI modules are also red). Mine are most likely counterfeits though since they were super cheap. They are what you call (quite correctly) 'Serial Converters'. Although they may not have a UART inside of them, they are still called UART modules from time to time too, presumably because they connect to a UART. You can see them here if you wish: www.ftdichip.com/Products/ICs/FT232R.htm
      If you type in 'UART' into ebay for example, you'll see a whole host of USB - UART, UART Serial Converters, TTL UART, UART adapter, UART Interface Chips, etc... Although the correct name is 'UART Serial Converter', you can't help what people call them! Pretty much everyone I know calls these things 'UART' even though they are not! It's just presumably short for 'UART Serial Converter'! People call me 'Tony' quite often, my name isn't 'Tony', it's 'Antony', but things are the way they are I guess.
      But now, getting to the point, please bear these points in mind; TH-cam content creators often create voluntarily and freely. We are often not qualified teachers - we are just enthusiasts! We often cover that many topics that we do not have time or the desire to learn every single detail/term. We often have no formal training from electronics companies. We are also under absolutely no obligation what-so-ever to assure that our content is fault-free - that's not how TH-cam works!
      You seem to have us confused with some sort of professional training company which is given lots of time to research very technical subjects in extreme detail, and is then paid significant amounts of money in order to deliver it with a great degree of professionalism! Many of us on here are lacking in two of those areas: we do not have enough time to learn all the details, and we do not get paid anywhere near enough in order to do so!
      I hope this clears things up for you! :-)
      Thanks for your comments.

    • @xxM5xx
      @xxM5xx 6 ปีที่แล้ว

      Its all good. Thanks again.
      I appreciate you not getting cross with me trying to help your viewers/readers from getting confused. You are 100% correct TH-camrs are not obligated to provide accurate information. Nice when they do though.
      Like I wrote earlier I'm old. "Back in the day"... (isn't that what old people are supposed to say?)... UARTs were their own component (chip/integrated circuit) which would connect to other chips. The UARTs job was (is) to take non-serial data, and serialize it. A.K.A take parallel data (often 8 bits wide) and convert that into one bit width (serially). At the end of a line, another UART would reverse the process restoring the serial back to parallel. UART is an acronym which stands for Universal Asynchronous Receiver Transmitter. The FT232R "connect" to a UART but the FT232R is not a UART. Like I said, back in the day UARTs were a component (chip). Today however the UART is integrated into a chip which has other functionality, on the same die. There is a UART "inside" the ESP8266. There is a UART inside an ATMEL Atmega328 microcontroller chip (the heart of the Arduino Uno). An external "thing" has to "bridge" that UART to a PC's (Windows, Linux, Apple) USB port because PCs stop offering native RS232 serial ports. There is no UART inside the FT232R. In the ESP8266, which is on-board the ESP12E, which is soldered to the ModeMCU, there is a UART. That UART's Rx and Tx pins are what the NodeMCU brings to the board edge.
      Deviating subjects slightly, I never understood why those folks at Arduino (smart people for sure) wanted to create their own terminology for stuff that already had terms technical people understood. I hated that a program was a "Sketch". ugh. I hated that a daughter board or expansion was a "Shield". To me and people where I come from (my background) it was nonsense talk. For people who knew nothing about electronics or embedded control, they knew no different. Why does this matter? Same reason you and your friends calling a USB Bridge a UART breaks the lines of conversation when seeking help from an expert. When Arduinos became "a thing" and friends who knew I was knowledgable in microelectronics and writing embedded code would call me and say they have a question about "the Shield" they bought from Italy. I'd say "what the Hell are you taking about, Shield?" Argh. It is a daughter board which plug ontop of the main Arduino Board. Sketch? Don't use a pen, use a pencil. Sketch? WTF. It is program code (probably written in some flavor of C or BASIC). No one in the World called a program a Sketch until those Italians started spreading it around. Grrrrr. Us old-timers aren't going to change how we talk about embedded controls, just because some Arduino dudes want to take over with new (unnecessary) lingo. A sketch is something Bob Ross did, or a comedy piece on Saturday Night Live, not a C program coded on an ASCII keyboard and injected into flash memory.
      Thanks for listening. Thanks for taking this as helpful not critical.

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว +1

      xxM5xx well, there's no point in me being cross... You're bringing up perfectly valid points. It would be very foolish of me to discourage anyone from pointing out any problems, especially since I'm an amateur. I've been learning electronics for around 18 months now. (Although I've been a programmer for many years) I also hate the words sketch and shield. You may have heard me moan about the word 'sketch' in my videos. About the UART word, I don't know why we call it that, my guess is that we got lazy and shortened UART to USB Serial Converter to UART. I have no idea! We make other mistakes too... For example, I call Arduino functions 'methods'. But in C++ (Arduino), they are actually called functions. Why not keep the names the same?!?! I don't know. There's one thing I know though; things are getting further advanced, faster, more complex and more difficult to learn by the minute! I'm not even sure if frameworks and APIs existed in the 80s!

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

    If running Linux and you're not able to connect to the port it might be that you cannot write to it. You'll need to open Terminal and type:
    sudo chmod a+rw dev/ttyUSB0
    Or whatever the port is to allow writing.

  • @tarrylarry1681
    @tarrylarry1681 6 ปีที่แล้ว

    Hi Antony, thanks. I bought Lolin NodeMCU V3.0 and uploaded some sketches via arduino IDE by following your tutorials and led and few others worked fine until I started to look into connecting to wifi. Wifi.begin or scan wifi sketches do not work at all. I have tried everything but somehow my nodemcu does not pick up the wifi access points. when i tried lua (flashed first using node mcu flasher) I could connect to wifi but not via arduino IDE. I am really confused and not sure why wifi would work on lua but not arduino. Below is my ardino sketch.
    #include "ESP8266WiFi.h"
    void setup() {
    Serial.begin(115200);
    // Set WiFi to station mode and disconnect from an AP if it was previously connected
    WiFi.mode(WIFI_STA);
    WiFi.disconnect();
    delay(2000);
    Serial.println("Setup done");
    }
    void loop() {
    Serial.println("scan start");
    int n = WiFi.scanNetworks();// WiFi.scanNetworks will return the number of networks found
    Serial.println("scan done");
    if (n == 0)
    Serial.println("no networks found");
    else
    {
    Serial.print(n);
    Serial.println(" networks found");
    for (int i = 0; i < n; ++i)
    {
    // Print SSID and RSSI for each network found
    Serial.print(i + 1);
    Serial.print(": ");
    Serial.print(WiFi.SSID(i));
    Serial.print(" (");
    Serial.print(WiFi.RSSI(i));
    Serial.print(")");
    Serial.println((WiFi.encryptionType(i) == ENC_TYPE_NONE)?" ":"*");
    delay(10);
    }
    }
    Serial.println("");
    // Wait a bit before scanning again
    delay(5000);
    }

    • @AntonyCartwright
      @AntonyCartwright  6 ปีที่แล้ว

      Hi, I believe that your code is a lot more complex than is necessary! The code in order to do what you're trying to do should be around 10 lines. Maybe check some other examples as that looks far too complicated!!!

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

    IT WORKED!! wooo