Cov txheej txheem:

Zaub Ntawv ntawm P10 LED Zaub Siv Arduino: 5 Cov Kauj Ruam (nrog Duab)
Zaub Ntawv ntawm P10 LED Zaub Siv Arduino: 5 Cov Kauj Ruam (nrog Duab)

Video: Zaub Ntawv ntawm P10 LED Zaub Siv Arduino: 5 Cov Kauj Ruam (nrog Duab)

Video: Zaub Ntawv ntawm P10 LED Zaub Siv Arduino: 5 Cov Kauj Ruam (nrog Duab)
Video: Ultra thin, ultra light and ultra transparent film LED display screen without structural self-adhesi 2024, Lub Xya hli ntuj
Anonim
Zaub Ntawv ntawm P10 LED Zaub Siv Arduino
Zaub Ntawv ntawm P10 LED Zaub Siv Arduino

Dotmatrix Display lossis ntau zaus hu ua Running Text feem ntau pom hauv khw yog txhais tau tias tshaj tawm lawv cov khoom lag luam, nws muaj txiaj ntsig thiab yoog raws hauv nws qhov kev siv uas txhawb cov neeg ua lag luam siv nws raws li kev tshaj tawm. Tam sim no kev siv Dotmatric Display tau nthuav tawm, tsis yog raws li kev tshaj tawm xov xwm nkaus xwb, nrog rau kev teem sijhawm thov Vajtswv, ceeb toom cov laug cam, ua cov tshuab ua ke, thiab lwm yam.

Ntawm no, peb yuav muab tshaj tawm txog Dotmatix Display programming qhia siv Arduino.

Kauj Ruam 1: Cov Khoom Uas Koj Xav Tau

Cov Khoom Koj Xav Tau
Cov Khoom Koj Xav Tau
Cov Khoom Koj Xav Tau
Cov Khoom Koj Xav Tau
Cov Khoom Koj Xav Tau
Cov Khoom Koj Xav Tau

Koj yuav xav tau:

  • Arduino
  • P10 LED Zaub Module
  • DMD Txuas

Kauj Ruam 2: Kev Txuas Hluav Taws Xob

Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob

Txuas P10 LED Zaub nrog arduino raws li tus pin teeb tsa saum toj no. Ntawm no peb siv DMD Txuas.

Kauj ruam 3: Kev sib txuas

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

Kev teeb tsa ntawm cov qauv zoo li daim duab saum toj no.

Kauj ruam 4: Code

Tom qab kev teeb tsa raug, tom ntej yog txheej txheem txheej txheem. Ua ntej ntawd koj xav tau lub tsev qiv ntawv txhawb nqa uas yuav tsum tau teeb tsa ntawm Arduino IDE. Txhawm rau rub lub tsev qiv ntawv DMD nyem qhov no. Tom ntej upload qhov program hauv qab no los tso saib cov ntawv.

// Insert file Library #suav nrog #include #include SoftDMD dmd (1, 1); // Tus naj npawb ntawm P10 vaj huam sib luag siv X, Y DMD_TextBox lub thawv (dmd, 2, 1, 32, 16); // Teeb Box (dmd, x, y, Qhov siab, Dav)

void teeb tsa () {

dmd.setBrightness (10); // Teeb ci 0 - 255 dmd.selectFont (Arial_Black_16); // Font siv dmd.begin (); // Pib DMD box.print ("SFE"); // Qhia TEXT SFE}

void voj () {

}

Kauj Ruam 5: Txheeb Xyuas Yog Nws Ua Haujlwm

Kos Yog Nws Ua Haujlwm
Kos Yog Nws Ua Haujlwm

Tom qab cov txheej txheem upload tiav, yuav tshwm sim raws li qhia saum toj no.

Yog tias lub teeb pom los ntawm lub teeb pom kev tsawg dua, koj yuav tsum ntxiv sab nraud 5V lub hwj chim txuas ncaj qha mus rau LED teeb tus pin.

Pom zoo: