Cov txheej txheem:

Tswj LED MATRIX MAX7219 NROG ARDUINO: 9 Kauj Ruam
Tswj LED MATRIX MAX7219 NROG ARDUINO: 9 Kauj Ruam

Video: Tswj LED MATRIX MAX7219 NROG ARDUINO: 9 Kauj Ruam

Video: Tswj LED MATRIX MAX7219 NROG ARDUINO: 9 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm paub tswj hwm MAX7219 Led matrix nrog Arduino los ntawm kev qhia cov ntawv yooj yim.

Saib daim vis dis aus.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  1. Arduino UNO (lossis lwm yam Arduino)
  2. LED MATRIX UA Peb tab tom yuav siv FC-16 tus qauv uas muaj plaub casacaded 8 × 8 LED Matrix Displays thiab cov teeb tsa MAX7219 LED tsav rau txhua lub teeb.
  3. Jumper xov hlau
  4. Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  1. Txuas LED Matrix tus pin [VCC] rau Arduino tus pin [5V]
  2. Txuas LED Matrix tus pin [GND] rau Arduino tus pin [GND]
  3. Txuas LED Matrix tus pin [DIN] rau Arduino tus pin [11]
  4. Txuas LED Matrix tus pin [CS] rau Arduino tus pin [10]
  5. Txuas LED Matrix tus pin [CLK] rau Arduino tus pin [13]

Nco tseg: Nyeem kuj ib feem rau kev daws teeb meem hauv qab no

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  1. Ntxiv "Clock Generator" tivthaiv
  2. Ntxiv "Text Value" tivthaiv
  3. Ntxiv "Counter" tivthaiv
  4. Ntxiv "Integer Multi Source"
  5. Ntxiv "Maxim LED Display Controller SPI MAX7219/MAX7221" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  1. Xaiv "ClockGenerator1" thiab hauv cov khoom qhov rai teeb tsa "Zaus" rau: 5
  2. Xaiv "Counter1" thiab hauv cov khoom vaj khoom tsev teeb tsa Max> Tus nqi rau 0 thiab Min> Tus nqi rau -170Note: -170 yog qhov deb ntawm X (qhov ntev ntawm cov ntawv), uas cov ntawv yuav taug kev los ntawm sab laug mus rau sab xis, koj tuaj yeem ua si nrog tus lej no kom tau qhov ntev
  3. Xaiv "IntegerMultiSource1" thiab nyob rau hauv lub qhov rai khoom teeb tsa "Cov Pins Tso Tawm" rau: 3
  4. Xaiv "TextValue1" thiab teeb tsa "Tus nqi" (Nov yog cov ntawv koj xav tso rau ntawm LED Matrix): ARDUINO LED MATRIX PROJECT

    1. Xaiv "LedController1" thiab hauv cov khoom vaj huam sib luag xaiv "Pixel Groups" thiab nyem rau ntawm 3 dots. cov khoom qhov rai teeb tsa:- "Qhov siab" txog 8- "Daim iav Kab Rov Tav" rau qhov tseeb- "Kev taw qhia" mus rau -Up- "Rov Qab Kab Rov Tav" rau Qhov Tseeb- "Rov Qab Vertical" rau Qhov Tsis Zoo- "Dav" txog 32- Xaiv "Elements" thiab nyem Nyob rau ntawm 3dotsIn "Elements" window drag "Fill Screen" mus rau sab laug, nthuav "Text" thiab luag "Text Field" mus rau sab laug. "X" thiab nyem rau ntawm "Pin" icon thiab xaiv "Integer SinkPin" << saib daim duab Kaw Txhua lub qhov rais
    2. Xaiv "LedController1" thiab hauv cov khoom qhov rai teeb tsa "Siv" mus rau 0.1 <

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  1. Txuas "ClockGenerator1" tus pin [Tawm] rau "Counter1" tus pin [Hauv]
  2. Txuas "Counter1" tus pin [Tawm] rau IntegerMultiSource1 tus pin [Hauv]
  3. Txuas "IntegerMultiSource1" tus pin [0] rau "LedController1"> Text Field1> X
  4. Txuas "IntegerMultiSource1" tus pin [1] rau "LedController1"> Sau Screen1> Moos
  5. Txuas "IntegerMultiSource1" tus pin [2] rau "TextValue1" tus pin [Clock]
  6. Txuas "TextValue1" tus pin [Tawm] rau "LedController1"> Text Field1> Hauv
  7. Txuas "LedController1" tus pin [Chip Xaiv] rau Arduino tus lej digital [10]
  8. Txuas "LedController1" tus pin [Tawm SPI] rau Arduino tus pin [SPI Hauv]

Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 8: Ua si

Yog tias koj siv zog Arduino UNO module, LED Matrix yuav pib Zaub Cov ntawv ntawm sab laug mus rau sab xis.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:

Kauj ruam 9: Teeb meem

Teeb meem
Teeb meem

Hauv kuv qhov xwm txheej Thaum ua kom lub zog Arduino LED Matrix tau ntsais thiab cov ntawv tsis tau tshwm sim. Qhov laj thawj rau qhov no vim tias MAX7219 nti tau nkag siab heev rau txhua qhov cuam tshuam hluav taws xob.

Txhawm rau daws qhov ntawd kuv ntxiv 47uf electrolytic capacitor nruab nrab ntawm LED Matrix VCC (+) thiab GND (-), xyuas kom koj txuas lub capacitor kom raug, + ntawm (VCC) thiab - ntawm (GND)

Pom zoo: