ESP8266 NodeMCU 16×2 LCD Interface

In this tutorial we interface 16×2 LCD display with ESP8266 NodeMCU without using I2C and with minimum pins i.e. using only 3 pins. To interface LCD with ESP8266 we need at least 6 IO lines but ESP already have very few IO lines, to expand IO lines we use serial to parallel shift register IC 74HC595.

A 16×2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5×7 pixel matrix. This LCD has two registers, namely, Command and Data.

The command register stores the command instructions given to the LCD. A command is an instruction given to LCD to do a predefined task like initializing it, clearing its screen, setting the cursor position, controlling display etc. The data register stores the data to be displayed on the LCD. The data is the ASCII value of the character to be displayed on the LCD.

Step 1: Circuit Diagram of ESP8266 LCD Interface

How to connect LCD with Node MCU?

Node MCU ESP8266 16x2 LCD Display

Step 2: ESP8266 NodeMCU Program for LCD Interface

How to program ESP8266 NodeMCU for LCD DIsplay?

We are not using any library for interfacing.

Step 3: Testing

Upload Program and see display will show Circuits4you.com. Give +5V to 74HC595 and Operate NodeMCU at 3.3V levels.

 

Leave a Reply