Cov txheej txheem:

LED Xa Nrog Arduino: 10 Kauj Ruam
LED Xa Nrog Arduino: 10 Kauj Ruam

Video: LED Xa Nrog Arduino: 10 Kauj Ruam

Video: LED Xa Nrog Arduino: 10 Kauj Ruam
Video: Cheem niam lub hnub nyoog Kawm Muas 2024, Kaum ib hlis
Anonim
LED Xa Nrog Arduino
LED Xa Nrog Arduino

Hauv txoj haujlwm no, koj yuav siv 8x8 LED matrix los sau cov lus sib dhos.

Txoj haujlwm no yog ib qho yooj yim ntawm lwm qhov qhia los ntawm CarterW16 siv tsuas yog ib qho LED matrix. Txheeb xyuas qhov haujlwm ntawd kom pom yuav ua li cas txuas ntxiv ua ke.

Txhawm rau pib koj yuav xav tau:

Ib qho Uno microcontroller

Ib daim ntawv qhia zaub mov

Jumper xov hlau

Ib qho LED matrix (8x8)

Kauj ruam 1: Txuas rau Lub Hwj Chim

Txuas rau Fais Fab
Txuas rau Fais Fab

Siv lub jumper xaim los txuas "5v" lub zog tso tawm ntawm lub microcontroller mus rau thawj lub qhov ntawm txoj kab zoo ntawm ntug ntev ntawm koj daim ntawv tais.

Kauj ruam 2: Txuas mus rau hauv av

Txuas mus rau Av
Txuas mus rau Av

Siv lub jumper hlau los txuas GND lub zog tso tawm ntawm lub microcontroller mus rau kab tsis zoo ntawm qhov ntev ntawm koj lub rooj noj mov.

Kauj Ruam 3: Npaj LED Matrix

Npaj LED Matrix
Npaj LED Matrix

Muab cov LED matrix nyob ze ntawm koj Arduino txhawm rau npaj nws kom nqes nws.

Kauj Ruam 4: Txuas VCC

Txuas VCC
Txuas VCC

Txuas tus VCC tus pin ntawm LED matrix mus rau qhov ntev zoo kab ntawm koj lub khob cij siv tus txiv neej-poj niam jumper xaim.

Kauj ruam 5: Txuas GND

Txuas GND
Txuas GND

Siv tus txiv neej-poj niam jumper xaim txuas GND tus pin ntawm LED matrix mus rau kab tsis zoo ntev ntawm koj lub khob cij.

Kauj Ruam 6: Txuas DIN

Txuas DIN
Txuas DIN

Txuas tus pin cim "DIN" ntawm LED matrix rau tus pin 12 ntawm koj Arduino siv tus txiv neej-poj niam jumper hlau.

Kauj Ruam 7: Txuas CS

Txuas CS
Txuas CS

Txuas tus "CS" tus pin ntawm LED matrix rau tus pin 11 ntawm Arduino.

Qee qhov ntawm LED cov laug cam muaj CLK tus pin nyob rau lwm qhov chaw, yog li nco ntsoov nyeem cov ntawv me ntawm koj tus lej kom paub tseeb tias koj tab tom ua qhov yog.

Kauj Ruam 8: Txuas CLK

Txuas CLK
Txuas CLK

Txuas tus "CLK" tus pin ntawm LED matrix rau tus pin 10 ntawm Arduino.

Qee qhov ntawm LED cov laug cam muaj CLK tus pin nyob rau lwm qhov chaw, yog li nco ntsoov nyeem cov tsiaj ntawv me ntawm koj tus lej kom paub tseeb tias koj tab tom ua qhov yog.

Kauj Ruam 9: Tau Koj Li Code

Tau Koj Cov Cai
Tau Koj Cov Cai

Siv Arduino web editor kom tau txais txoj cai.

Koj kuj tseem yuav tsum rub tawm thiab teeb tsa lub tsev qiv ntawv MaxMatrix.

Pom zoo: