Cov txheej txheem:

Khiav Cov Ntawv Nrog Arduino: 3 Kauj Ruam (nrog Duab)
Khiav Cov Ntawv Nrog Arduino: 3 Kauj Ruam (nrog Duab)

Video: Khiav Cov Ntawv Nrog Arduino: 3 Kauj Ruam (nrog Duab)

Video: Khiav Cov Ntawv Nrog Arduino: 3 Kauj Ruam (nrog Duab)
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Khiav Cov Ntawv Nrog Arduino
Khiav Cov Ntawv Nrog Arduino

Cov cuab yeej thiab khoom siv:

1 yam khoom LCD 16x2

1 yam khoom tiv thaiv 220 ohm

1 yam potensio meter 1k ohm

1 yam protoboard

1 yam khoom arduino

Qee qhov cable jumper

Kauj Ruam 1: Cov ntsiab lus rau Khiav Cov Ntawv Nrog Arduino Yog

#suav nrog

/* - lcd rs pin ke digital pin 12

- lcd pab kom tus pin ke tus pin 11

lcd d4 pin ke digital pin 5

lcd d5 pin ke digital pin 4

lcd d6 pin ke digital pin 3

lcd d7 pin ke digital pin 2

*/ LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void teeb tsa () {

lcd.begin (16, 2);

}

void voj () {

koj i;

lcd.print ("Sekolah Tinggi Teknologi Nusa Putra");

lcd.setCursor (0, 0); rau (kuv = 0; kuv <16; kuv ++) {

lcd.scrollDisplayLeft (); ncua (300); }

}

Kauj ruam 2:

Image
Image
Duab
Duab
Duab
Duab

Kauj ruam 3:

Pom zoo: