Cov txheej txheem:

Yuav Siv LCD HD44780 I2c: 5 Kauj Ruam
Yuav Siv LCD HD44780 I2c: 5 Kauj Ruam

Video: Yuav Siv LCD HD44780 I2c: 5 Kauj Ruam

Video: Yuav Siv LCD HD44780 I2c: 5 Kauj Ruam
Video: Qhia Hle & Hloov Màn Hình LCD Laptop | Siv Laptop Tsis Yuav LCD 2024, Kaum ib hlis
Anonim
Yuav Siv LCD HD44780 I2c
Yuav Siv LCD HD44780 I2c

Hauv qhov kev qhia no, Kuv yuav qhia koj yuav ua li cas txuas lub LCD rau I2C, uas yuav tsuas muaj 4 tus pin los tswj thiab siv LCD. Yog li cia peb pib.

Kauj ruam 1: Tutorial Video

Image
Image

Kauj Ruam 2: Sau Cov Ntsiab Lus

Cov Ntsiab Lus
Cov Ntsiab Lus
Cov Ntsiab Lus
Cov Ntsiab Lus

Rau qhov haujlwm no koj yuav xav tau:

  • LCD 2 × 16 lossis 4 × 20
  • i2c rau LCD
  • Arduino
  • 4 cev

Kauj Ruam 3: Kev Sib Txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Kev sib txuas:

  • GND to CSY
  • VCC to 5V
  • SDA rau SDA lossis A4
  • SCL rau SCL lossis A5

Kauj Ruam 4: Chaw Nyob I2c Module

Chaw Nyob I2c Module
Chaw Nyob I2c Module

Ua ntej siv peb cov zaub, peb yuav tsum paub nws qhov chaw nyob. Peb tuaj yeem ua qhov no los ntawm kev siv I2C scanner code. Thaum peb muaj I2C chaw nyob peb tuaj yeem hloov tus nqi no hauv tus piv txwv code thiab pib siv nws. Rub tawm daim duab thiab xa mus rau koj Arduino. Tom ntej qhib Serial Monitor thiab luam qhov chaw nyob.

Kauj Ruam 5: Kho Arduino IDE thiab Xeem

Configure Arduino IDE thiab Xeem
Configure Arduino IDE thiab Xeem
Configure Arduino IDE thiab Xeem
Configure Arduino IDE thiab Xeem

Tam sim no peb tuaj yeem mus rau txoj haujlwm tsim nyog. Nruab lub tsev qiv ntawv LiquidCrystal_i2c los ntawm Frank de Brabander. Teem qhov chaw nyob thiab qhov loj ntawm koj i2c HD44780 kuv yog 0x3F. Teem qhov sib piv nrog potentiometer. Koj tuaj yeem hloov qhov chaw nyob ntawm i2c module los ntawm luv tom qab A0, A1 thiab/lossis A2.

Pom zoo: