Original JHD 16x2 LCD Display - Green
Original JHD 16x2 LCD Display - Green
The Original JHD 16x2 LCD Display - Green is a compact, high-contrast liquid crystal display (LCD) module designed for use in a wide range of applications, including robotics, automation, and Internet of Things (IoT) projects. This module features a 16x2 character display, providing a total of 32 characters that can be used to display alphanumeric data, symbols, and custom characters.
| The JHD 16x2 LCD Display - Green is designed to operate as a output device, receiving data from a microcontroller or other control unit and displaying it on its screen. The module can be used to display a variety of data, including |
Alphanumeric characters (letters and numbers)
Symbols and custom characters
Status messages and errors
Sensor readings and measurements
Menu options and selections
| The Original JHD 16x2 LCD Display - Green is suitable for use in a wide range of applications, including |
Robotics and automation projects
IoT devices and sensors
Industrial control systems
Medical devices and equipment
Security systems and alarms
Educational projects and prototypes
The module requires a 5V power supply and a compatible interface to operate.
The display is not backlit, but features a high-contrast LCD screen for clear visibility.
The module is designed for indoor use and may not be suitable for outdoor applications or extreme environmental conditions.
Original JHD 16x2 LCD Display - GreenOverviewThe Original JHD 16x2 LCD Display is a popular alphanumeric display module designed for a wide range of applications, including robotics, automation, and IoT projects. This module features a 16x2 character display, which means it can display 16 characters per line, with a total of 2 lines. The display is backlit with a green LED, making it easy to read in various lighting conditions.Technical SpecificationsDisplay Type: ST7066U
Display Size: 16x2 characters
Backlight: Green LED
Interface: HD44780U compatible
Operating Voltage: 5V
Operating Current: 1mA ( typical), 2mA (max)
Dimension: 80x36x14mmArduino ExampleThe following example demonstrates how to use the Original JHD 16x2 LCD Display with an Arduino board. This example will display a simple message on the LCD screen.Hardware RequirementsOriginal JHD 16x2 LCD Display
Arduino Board (e.g., Arduino Uno)
Breadboard
Jumper wiresSoftware RequirementsArduino IDE (version 1.8.x or higher)Code Example
```c
#include <LiquidCrystal.h>// Initialize the LCD library
LiquidCrystal_I2C lcd(0x27, 16, 2); // Set the LCD address, columns, and rowsvoid setup() {
// Initialize the LCD
lcd.init();
lcd.backlight();
// Print a message on the LCD
lcd.setCursor(0, 0);
lcd.print("Hello, World!");
lcd.setCursor(0, 1);
lcd.print("JHD 16x2 LCD");
}void loop() {
// No operation
}
```
Raspberry Pi Example (using Python)The following example demonstrates how to use the Original JHD 16x2 LCD Display with a Raspberry Pi board. This example will display a simple message on the LCD screen using Python.Hardware RequirementsOriginal JHD 16x2 LCD Display
Raspberry Pi Board (e.g., Raspberry Pi 4)
Breadboard
Jumper wiresSoftware RequirementsRaspbian OS (version 10 or higher)
Python 3.xCode Example
```python
import RPi.GPIO as GPIO
import time# Set up the GPIO library
GPIO.setmode(GPIO.BCM)# Define the LCD pins
LCD_RS = 7
LCD_EN = 8
LCD_D4 = 25
LCD_D5 = 24
LCD_D6 = 23
LCD_D7 = 18# Initialize the LCD pins
GPIO.setup(LCD_RS, GPIO.OUT)
GPIO.setup(LCD_EN, GPIO.OUT)
GPIO.setup(LCD_D4, GPIO.OUT)
GPIO.setup(LCD_D5, GPIO.OUT)
GPIO.setup(LCD_D6, GPIO.OUT)
GPIO.setup(LCD_D7, GPIO.OUT)# Define the LCD initialization function
def lcd_init():
GPIO.output(LCD_RS, GPIO.HIGH)
GPIO.output(LCD_EN, GPIO.HIGH)
time.sleep(0.05)
GPIO.output(LCD_EN, GPIO.LOW)
time.sleep(0.05)# Define the LCD print function
def lcd_print(message, line):
if line == 0:
GPIO.output(LCD_RS, GPIO.LOW)
GPIO.output(LCD_D4, GPIO.LOW)
GPIO.output(LCD_D5, GPIO.LOW)
GPIO.output(LCD_D6, GPIO.LOW)
GPIO.output(LCD_D7, GPIO.LOW)
else:
GPIO.output(LCD_RS, GPIO.HIGH)
GPIO.output(LCD_D4, GPIO.LOW)
GPIO.output(LCD_D5, GPIO.LOW)
GPIO.output(LCD_D6, GPIO.LOW)
GPIO.output(LCD_D7, GPIO.LOW)
for char in message:
GPIO.output(LCD_D4, (char >> 4) & 1)
GPIO.output(LCD_D5, (char >> 5) & 1)
GPIO.output(LCD_D6, (char >> 6) & 1)
GPIO.output(LCD_D7, (char >> 7) & 1)
GPIO.output(LCD_EN, GPIO.HIGH)
time.sleep(0.01)
GPIO.output(LCD_EN, GPIO.LOW)# Initialize the LCD
lcd_init()# Print a message on the LCD
lcd_print("Hello, World!", 0)
lcd_print("JHD 16x2 LCD", 1)# Clean up
GPIO.cleanup()
```
Note: In the Raspberry Pi example, you need to adjust the pin numbers according to your specific setup. Additionally, make sure to install the `RPi.GPIO` library if you haven't already.