Cov txheej txheem:

JumpMan Game Arduino HD44780 I2c: 4 Kauj Ruam
JumpMan Game Arduino HD44780 I2c: 4 Kauj Ruam

Video: JumpMan Game Arduino HD44780 I2c: 4 Kauj Ruam

Video: JumpMan Game Arduino HD44780 I2c: 4 Kauj Ruam
Video: Video game , how to make a game with Arduino , create a running game without any app #RC Invention 2024, Kaum ib hlis
Anonim
JumpMan Game Arduino HD44780 I2c
JumpMan Game Arduino HD44780 I2c

JumpMan yog qhov yooj yim heev ntawm Arduino. Qhov kev ua si tsuas yog siv ob lub pob "dhia" thiab "rov pib dua". Qhov kev ua si siv cov zaub HD44780 2x16 txuas nrog ntawm i2c. Hauv qhov kev ua si, peb hla tus txiv neej hla tsob ntoo. Qhov nrawm ntawm qhov kev ua si tau loj hlob txhua lub sijhawm. Yog tias koj tsis paub siv HD44780 zaub nrog i2c module, saib cov lus qhia: YUAV UA LI CAS YUAV TSHUAB DISPLAY HD44780 i2c.

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

Sau cov ntsiab lus:

  • Arduino Ib
  • Zaub hd44780 thiab i2c module
  • 2 suv
  • 7 cev
  • pawg thawj coj saib universal

Kauj Ruam 3: Kev Sib Txuas:

Kev Sib Txuas
Kev Sib Txuas

Kev Sib Txuas:

HD44780 i2c: SDA rau SDA lossis A4, SCL rau SCL lossis A5, Vcc rau 5V, GND rau GND

Khawm 1 txhawm rau pin RESET thiab GND

Khawm 2 txhawm rau pin 2 digital thiab GND

Kauj ruam 4: Sketch:

Kos duab
Kos duab
Kos duab
Kos duab
Kos duab
Kos duab
Kos duab
Kos duab

Kos duab:

Tam sim no peb tuaj yeem mus rau txoj haujlwm tsim nyog. Nruab lub tsev qiv ntawv LiquidCrystal_i2cby 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 tus nqi nyob hauv "int life = 5;".

Tswj: khawm 1 -> Dhia

khawm 2 -> Pib dua

Txaus siab rau qhov kev ua si:).

Pom zoo: