Page Loading ...

How to setup Arduino and ESP8266?

How to setup Arduino and ESP8266?
    Watch the video

    click to begin


    Hi! In this tutorial I will show you how to easily set up and program esp8266
    modules in Arduino environment. In this tutorial I will use NodeMCU V2
    or V3 model. I designed this tutorial in 3 parts. First we will
    install Arduino environment and the latest ESP core. In the second part we
    will compile and program. And in the third part we will see how to install a
    new library and see its examples.
    Welcome to my youtube channel GreenEyedExplorer
    where I explore further and beyond about tweaks, hacks, electronics and house repairs.
    SETUP. Well let's start! First we download
    arduino software from "". Find the program under the software section.
    Then you install it. When it is installed, let's find the latest core for
    our esp8266 modules. In browser enter "".
    Find the latest version at the top and copy link of asset ending with ".json".
    This is pre-release version. Instead you can get a latest stable release at the
    same link address, but just cut the "releases" text and scroll down and search
    for the ".json" link to copy. I always use pre-releases and check for new ones
    every so often. Now we open arduino. Go to file - preferences. In the "additional
    boards manager URL" paste the link we have just copied. Click OK.
    Go to tools - board - boards manager.
    Select updatable, select ESP, click update.
    Wait a few moments and click close. That's it!
    When you have the program on your hard drive just find it!
    ".INO" files will have a little arduino icon in front. Double click it. It will run
    arduino environment. If you have previously used other type of arduino
    board, you will have to change the board. Go to tools again, then select your board.
    In my case "NodeMCU 1.0". When you plug your board into USB port, it will appear
    under tools - port. Select it. When closing the Arduino program, it will remember
    your last setting. There is a nice option to verify, if your code compiles. Press
    ctrl+r key or click tick icon. To program press ctrl+u key or right
    arrow icon. You can see shortcuts under sketch menu.
    If you want to install a new library, you just have to go into sketch
    menu, then include library. Here we see two options. One is "Add ZIP library", where
    you can import your zip library packages you have downloaded from internet.
    The other option is "manage libraries". Let's click it! Here are listed all your
    libraries. You do not have to check this manager from time to time, as Arduino
    checks for new versions by itself and asks you if you want an update. In our
    case we use esp8266 core. This core uses arduino json and some other libraries.
    If you update them, then you will maybe not be able to compile your ESP programs
    anymore. These libraries change structure and calls, so the core cannot use them
    anymore. Solution is to check the current version before the update. If new
    library does not work, just downgrade it back. In the manager you can also search
    for new libraries to install. Let's say we want to install a relay library.
    Under "all" just type "relay". It will list all available libraries. Let's select
    "firstbuilt - relay". Click install, click close. Under the menu file - examples we
    can search and open enclosed examples and compile them.
    That's it! Simple as that! I have to inform you, when programming the NodeMCU,
    you just press "upload", as the USB connection can pull GPIO0 low by
    asserting DTR and reset your board by asserting RTS. But if you use ESP-01,
    you will need to enable flashing yourself by putting GPIO0 low or
    pressing the flash key, if you have one, while powering up or resetting the module.
    Happy programming! Don't forget to hit LIKE for this video, if you find it
    educational. COMMENT below, if you have any questions
    or thoughts. SHARE video with your friends and consider SUBSCRIBING to my
    channel! More coming up!
    🔴 DIY UROFLOWMETRY MACHINE for 10€ (Free plans & Arduino firmware ESP8266 or ESP32) 👨‍⚕️💊 PART 1 🔴 Washing Machine Repair HEATED BED UPGRADE - DIY power supply / relay 🔴 Fast, cheap, simple: DIY USB foot pedal (keyboard) for teleprompter, programming, gaming 🔴 DIY UROFLOWMETRY MACHINE for 10€ (Arduino firmware ESP32 & ESP8266) 👨‍⚕️💊 PART 2 SETUP Your Adafruit Feather HUZZAH ESP8266 on Windows for Arduino IDE How to DIY simple KEYCHAIN easy in 3 minutes and 3D print it. How I2C Communication Works and How To Use It with Arduino #43 ESP8266 Range Test with and without External Antenna 🔴 DIY MONEY PRINTING MACHINE 🤑 (magic trick)