Skip to content Skip to sidebar Skip to footer

Widget HTML #1

How to Program Blink NodeMCU v3 ESP8266 Arduino Beginner

Basic Progam Blink NodeMCU v3

Basic Progam Blink NodeMCU v3 esp8266 arduino iot esp - For the days ahead, we will come in to industry 4.0 where everything is internet. It's time for us to learn IoT from right now 

Now we are going to learn IOT (Internet of thing). One of the well-known modules is the ESP-12 which uses the ESP8266EX microcontroller. 


What is NodeMCU?

NodeMCU is a microcontroller module with built-in wifi that can be programmed using the Arduino IDE. 

This NodeMCU uses the ESP-12E wifi module based on the ESP8266EX microcontroller. NodeMCU is suitable for use with IOT projects such as: Smart home (automation), Wireless Industrial Controller, IP camera, Sensor network, Wi-Fi Network Electronic Devices, etc

ESP8266EX uses a 32-bit processor with the name Tensilica L106 Diamond. For more details about the microcontroller used, please see the features below

 

NodeMCU ESP8266EX specifications

The specifications of the esp8266ex CHIP used on the NodeMCU V3 board are as follows:

Hardware

  • CPU Tensilica L106 32-bit processor
  • 160 MHz speed
  • Operating Voltage 2.5 V ~ 3.6 V (3.3V recommendation)
  • The average operating current is 80 mA
  • Operating temperature from -40 ° C- 125 ° C 

Wi-Fi

  • 802.11 b / g / n protocol (HT20)
  • Frequency 2400 MHz ~ 2483.5 MHz (2.4 GHz ~ 2.5 GHz)
  • TX 802.11 b: +20 dBm, 802.11 g: +17 dBm, 802.11 n: +14 dBm
  • Sensitivity RX 802.11 b: –91 dbm (11 Mbps), 802.11 g: –75 dbm (54 Mbps), 802.11 n: –72 dbm (MCS7)

  

PinOut NodeMCU V3

To be able to use NodeMCU V3, we should know the function of each pin on this microcontroller board.

Basic Progam Blink NodeMCU v3 esp8266 arduino iot esp

Pin Description:

  • GPIO0 to GPIO16
    GPIO (General Purpose Input Output), NodeMCU has a digital 17pin that can be used as input and output. Each pin can be set an internal resistor for the pull-up and pull-down states.
  • ADC0
    ESP8266 on NodeMCU V3 only has 1 pin for analog. The precision of this ADC is 10-bit.
  • MOSI, CS, MISO, SCLK
    This pin is used for SPI communication
  • TXD0, RXD0, TXD1 and RXD1
    This NodeMCU microcontroller module has two UART communication lines, which are named UART0 and UART1. For UART speeds, it is capable of up to 4.5Mbps (115200 x 40)
  • SCL and SDA
    The ESP8266 also supports I2C communication
  • PWM
    The ESP-12E used in the MCU V3 module has 4 PWMs, including pins D2, D5, D6 and D8.

For USB to TTL Converter communication, there are two types of IC used, the first using the CP2102 and CH340.

Programming this NodeMCU using the Arduino IDE is not as easy as programming an Arduino board in general.

On the NodeMCU board, there is a flash button, which will be used later if we want to program the microcontroller.

 

NodeMCU Library Board

Before we install the NodeMCU libraru, there are actually two ways to add the library, namely through the Library Manager and manually uploading it.

In this article, I only share how to install library boards automatically via the Boards Manager.

Please follow these steps:

  • Copy link: http://arduino.esp8266.com/stable/package_esp8266com_index.json
  • Open the Arduino IDE
  • Click the File menu> Preferences
  • Look for the Additional Boards Manager URLs form
  • Paste the copied link to the form> Ok
  • Click the Tools menu> Board> Boards Managers
  • Search with the word "ESP"> Select ESP8266 by ESP8266 Community

    Basic Progam Blink NodeMCU v3 esp8266 arduino iot esp
  • Click> Install
  • This may take a relatively longer time, please wait.
  • If the installation is successful, you will see the ESp8266 board installed as follows:

    Basic Progam Blink NodeMCU v3 esp8266 arduino iot esp


How to Program Blink NodeMCU V3

Now let's learn to program this module with the Blink program or turn on the internal led and turn it off for 1 second.

However, what should be noted is that the BUILT-IN LED on NODEMCU is ACTIVE-LOW. That is, when given LOW logic, the LED lights up. This only applies to the built in led, if you use the same I / O port as the Arduino board.

The steps we want to use are as follows:

  • Connect NodeMCU to computer
  • If the NodeMCU you are using, uses the ch340 chip as the USB to TTL Converter, please install the driver. Read here.
  • Click Tools> Boards> ESP8266 Boards> NodeMCU 1.0 (ESP-12E Module)
  • Use a basic configuration like this:

    Basic Progam Blink NodeMCU v3 esp8266 arduino iot esp
  • Select Port
  • Open Arduino IDE> Files> Examples> 01. Basics> Blink
  • Click Upload
  • If the upload is successful, then you will see the ESP8266 Built in module LED lights up as follows:

Hopefully the article "How to Program NodeMCU V3 Arduino ESP8266 Basic Blink" can add to our knowledge together.

If this article is useful, please share it using the share button below.

Thanks to Arduino32.

Post a Comment for "How to Program Blink NodeMCU v3 ESP8266 Arduino Beginner"