Cov txheej txheem:

LED qhov muag ntsais rau neeg hlau: 6 Kauj Ruam
LED qhov muag ntsais rau neeg hlau: 6 Kauj Ruam

Video: LED qhov muag ntsais rau neeg hlau: 6 Kauj Ruam

Video: LED qhov muag ntsais rau neeg hlau: 6 Kauj Ruam
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim
LED qhov muag ntsais rau neeg hlau
LED qhov muag ntsais rau neeg hlau

Cov ntawv qhia no yog hais txog kev ntsais muag ntawm Neeg Hlau siv LED dot matrix.

Kauj ruam 1: Txoj kev xav

Txoj kev xav
Txoj kev xav

Hauv dot matrix zaub, ntau LEDs tau txuas ua ke hauv kab thiab kab. Qhov no yog ua kom txo tus naj npawb ntawm tus pin xav tau los tsav lawv. Piv txwv li, 8 × 8 matrix ntawm LEDs (qhia saum toj no) yuav xav tau 64 I/O pins, ib qho rau txhua tus LED pixel. Los ntawm xaim tag nrho cov anodes ua ke hauv kab (R1 txog R8), thiab cathodes hauv kab (C1 txog C8), qhov xav tau tus lej ntawm I/O pins raug txo mus rau 16. Txhua LED tau hais los ntawm nws kab thiab kab lej. Hauv daim duab hauv qab no, yog tias R4 rub siab thiab C3 raug rub qis, LED hauv kab plaub thiab kab thib peb yuav raug qhib. Cov cim tuaj yeem pom los ntawm kev tshuaj xyuas nrawm ntawm kab lossis kab.

Kauj ruam 2: HARDWARE YUAV TSUM

  1. Arduino UNO nrog Cable
  2. LED teev matrix7219 zaub module (2)
  3. M-F Jumper xov hlau

Kauj Ruam 3: Qhov Muag Qhov Muag

Qhov muag Animation
Qhov muag Animation

Qhov kev tsim vaj tsev no tso cai rau software txhawm rau txheeb xyuas cov kab ntawv ua ntu zus raws li cov lus ntawm ob peb ntawm bitmaps thiab tso tawm sijhawm.

Kauj Ruam 4: KAUJ RUAM

QAUV
QAUV
  • tus pin 2 txuas nrog rau DataIn
  • tus pin 4 txuas nrog CLK
  • tus pin 3 txuas nrog CS
  • VCC to 5V
  • Gnd rau Gnd

Kauj Ruam 5: LIBRARY THIAB CODE

Pom zoo: