Codey OnlineBiblioteka komponentów Arduino i ESP32 › 1602 LCD DISPLAY
1602 LCD DISPLAY
Wyświetlacze

1602 LCD DISPLAY

Moduł LCD znakowy 1602 (16x2) zwykle używa kontrolera zgodnego z HD44780 do wyświetlania tekstu alfanumerycznego. Łączy się przez magistralę równoległą z pinami sterującymi RS, RW i E oraz liniami danych D0–D7, a VO służy do regulacji kontrastu, natomiast A/K sterują podświetleniem.

Szerokość: 72.6 mm

Pinout — 1602 LCD DISPLAY

Pin Sygnał Opis
VSS ground LCD ground reference for logic and display drive.
VDD power Positive logic supply for the LCD module, typically +5V.
VO analog LCD contrast voltage input, usually set by a potentiometer.
RS digital Register select: low for command register, high for display data.
RW digital Read/write select: low to write to LCD, high to read status/data.
E enable Enable strobe; pulse to latch commands or data on the bus.
D0 data Parallel data bus bit 0 for 8-bit LCD interface mode.
D1 data Parallel data bus bit 1 for 8-bit LCD interface mode.
D2 data Parallel data bus bit 2 for 8-bit LCD interface mode.
D3 data Parallel data bus bit 3 for 8-bit LCD interface mode.
D4 data Parallel data bus bit 4; used in both 4-bit and 8-bit LCD modes.
D5 data Parallel data bus bit 5; used in both 4-bit and 8-bit LCD modes.
D6 data Parallel data bus bit 6; used in both 4-bit and 8-bit LCD modes.
D7 data Parallel data bus bit 7; also carries busy flag when reading.
A power Backlight LED anode; connect to positive supply through proper current limiting if needed.
K ground Backlight LED cathode; connect to ground or a low-side driver.

Przykładowy schemat połączeń — 1602 LCD DISPLAY

Z Do Przewód
board:5V x1:VDD red
board:GND x1:VSS black
board:GND.1 x1:RW black
board:D12 x1:RS green
board:D11 x1:E blue
board:D5 x1:D4 yellow
board:D4 x1:D5 purple
board:D3 x1:D6 cyan
board:D2 x1:D7 magenta
board:5V x1:A red
board:GND.2 x1:K black

Przykładowy kod Arduino — 1602 LCD DISPLAY

Ten przykład został napisany i sprawdzony kompilacją dla arduino-uno. Codey Online dostosuje go do każdej innej obsługiwanej płytki.

#include <LiquidCrystal.h>

// LCD wiring: RS, E, D4, D5, D6, D7
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  lcd.begin(16, 2);
  lcd.clear();
  lcd.print("Hello, world!");
  lcd.setCursor(0, 1);
  lcd.print("1602 LCD demo");
}

void loop() {
  // Nothing to do here for the basic example.
}

Podobne komponenty

1.28" Round TFT LCD 240x240 (GC9A01, SPI)

1.28" Round TFT LCD 240x240 (GC9A01, SPI)

1602 LCD I2C DISPLAY

1602 LCD I2C DISPLAY

8x8 RGB 64 LED Matrix 5V WS2812b

8x8 RGB 64 LED Matrix 5V WS2812b

LCD Display TFT 1.3inch ST7789

LCD Display TFT 1.3inch ST7789

Zbuduj swój projekt Arduino lub ESP32 z pomocą AI

Opisz, co chcesz zbudować. Codey Online napisze kod, narysuje schemat połączeń, skompiluje projekt i wgra go na płytkę bezpośrednio z przeglądarki.

Zacznij za darmo