ESP8266 Arduino Tutorial 2 – Create the First Program

Driver Installation

In the previous tutorial, the Arduino IDE has been installed. In this tutorial, we will create the first program. This program uses the on-board LED on ESP-12E module. The LED will blink every 1 s. Before we go to the programming, we must install the NodeMCU USB driver. The step-by-step how to install the NodeMCU driver is described as the following:

  • Download NodeMCU driver from this link.
  • Connect NodeMCU board to the USB port.
  • Run the driver installer file: CH341SER.EXE, and install the driver.

NodeMCU Driver

Continue reading “ESP8266 Arduino Tutorial 2 – Create the First Program”

ESP8266 Arduino Tutorial 1 – IDE Installation

ESP8266

ESP8266 is a low-cost Wi-Fi System-on-Chip (SoC) produced by Espressif Systems, a Shanghai-based Chinese fabless semiconductor company. The ESP8266 chip is shown in the following figure. It consists of a Wi-Fi transceiver with full TCP/IP stack and a microcontroller. It uses IEEE 802.11 b/g/n Wi-Fi standard, which is generally used in our daily life. It has 32-bit Tensilica RISC processor that runs at 80 MHz. It has several peripherals such as GPIO, I2C, SPI, UART, ADC, etc.

ESP8266 chip

Continue reading “ESP8266 Arduino Tutorial 1 – IDE Installation”

Arduino Ethernet Shield – Control an LED from PC

Ethernet Shield

Ethernet Shield allows an Arduino to to connect to the internet and to read and write a microSD card. This shield use Wiznet W5100 ethernet chip. Inside this chip, there are PHY, MAC, IP, and TCP layer. The advantage of using this shield over the ENC28J60 is the TCP/IP stack is already implemented by hardware on this chip. With the ENC28J60 chip the TCP/IP must implemented on the microcontroller that is interfaced to it. In this tutorial, I will explain how to control an LED from PC using this shield.

Ethernet shield

Continue reading “Arduino Ethernet Shield – Control an LED from PC”

Arduino ENC28J60 Ethernet Module – Ping Test from PC to Arduino

ENC28J60 Ethernet Module

ENC28j60 is a low cost Ethernet chip. It contains Ethernet PHY layer and MAC layer. The IP layer and TCP layer (TCP/IP stack) are implemented in software. The data-rate of ENC28j60 is limited to 10 Mbps. In this tutorial, I will explain how to use the ENC28J60 module with Arduino.

ENC28J60 module

Continue reading “Arduino ENC28J60 Ethernet Module – Ping Test from PC to Arduino”

Arduino LCD16x2 Shield – Read Buttons and Write Message to LCD

LCD16x2 Shield

LCD16x2 shield is an Arduino shield that also comes with 6 buttons. All of the buttons on this shield are connected to the Arduino by using just one GPIO pin. In this tutorial, I will explain how to use LCD16x2 shield with Arduino Uno. This product is compatible with Arduino LCD library (LiquidCrystal.h). There are 5 buttons in this product (up, down, left, right, and select) that can be used for make a project such as display menu items and select them with the buttons.

LCD16x2 shield

Continue reading “Arduino LCD16x2 Shield – Read Buttons and Write Message to LCD”