Cov txheej txheem:

Dot Matrix; 8x8 Nrog Lus lossis Duab: 4 Kauj Ruam
Dot Matrix; 8x8 Nrog Lus lossis Duab: 4 Kauj Ruam

Video: Dot Matrix; 8x8 Nrog Lus lossis Duab: 4 Kauj Ruam

Video: Dot Matrix; 8x8 Nrog Lus lossis Duab: 4 Kauj Ruam
Video: Tutorial 06 Building an Arduino-based 8x8 LED Matrix part 07 Buffer Design 2024, Hlis ntuj nqeg
Anonim
Dot Matrix; 8x8 Nrog Lus lossis Duab
Dot Matrix; 8x8 Nrog Lus lossis Duab

Cov Lus Qhia no yuav qhia koj Dot matrix cov duab kuv tau ua nrog Dot Matrix 8x8.. Thov saib cov vis dis aus thiab cov haujlwm suav nrog.

Dot matrix yog 2 Dimensional display. Nws muaj 8 kab thiab 8 kab. Yog koj saib ze ntawm qhov matrix muaj cov dots me me.. Qhov Dot matrix kuj muaj IC loj (sib dhos ua ke) uas tsav cov LEDs. The Arduino thiab Txoj Cai (program) tsim cov duab lossis cov lus ntawm Dot matrix.

Yog tias koj saib ntawm Code koj yuav pom cov lej binary qhov no yuav zoo li B00010100..this txhais tau tias hauv kab, ib (1) yuav teeb lub teev thiab xoom yuav ua kom lub teev tawm.. Qhov Dot matrix muaj 8 kab ntawv koj yuav pom 8 tus lej binary zoo li qhov no qhia rau microcontroller (Arduino) yuav ua li cas thiaj pom kev hauv Dot matrix.

Kauj Ruam 1: Dot Matrix8x8

Dot Matrix 8 x 8
Dot Matrix 8 x 8

Cov Lus Qhia no yuav qhia txog kev siv Dot matrix 8x8. Kuv yees duab cov duab thiab lus (saib video)

Cov khoos phis tawj tau hloov kho los ntawm Arduino thiab Ua, (Rui Santos). Kuv ua tsaug rau ob leeg ntawm lawv rau lawv cov kev qhia.

Kuv hloov kho Cov Cai los tso rau hauv kuv tus kheej cov duab. (Tso rau hauv tus lej binary tau siv sijhawm, tab sis nqi zog)

Kauj Ruam 2: Cov Khoom Siv Hluav Taws Xob

Dot matrix 8x8

Elegoo (kuv li) lossis Arduino

jumpers lossis xov hlau

Kauj Ruam 3: Cov khoos kas

Cov no yog cov haujlwm rau Dot matrix.

Kev teeb tsa hauv Circuit sib txawv rau Codes

Muaj los yog;

DIN txuas rau tus pin 12

CLK txuas rau tus pin 11; Rau 3 daim duab; snowflake, thawv thiab luag nyav

CS txuas rau tus pin 10

txuas 5 volts thiab hauv av ntawm Matrix rau Arduino

los yog

int DIN_PIN = 2; // cov ntaub ntawv hauv tus pin

int CS_PIN = 3; // ntsaws (CS) tus pin; Rau lwm cov duab

int CLK_PIN = 4; // moos pin

txuas 5 volts thiab hauv av ntawm Matrix rau Arduino

Kauj Ruam 4: Xaus

Xaus
Xaus

Kuv vam tias koj nrog saib cov vis dis aus kom pom cov duab thiab lus (Nyob zoo)

Cov kev zov me nyuam raug kaw.

Kuv vam tias koj txaus siab rau Cov Lus Qhia. Koj tuaj yeem ua koj tus kheej cov duab thiab cov lus ntawm

Koj tuaj yeem hloov kho Txoj Cai thiab muab tso rau hauv koj tus kheej chav binary rau 8x8 matrix (txhawm rau ua qhov no koj muab tso rau hauv 1 rau tus lej koj xav tau lub teeb thiab 0 rau cov teev tsis pom kev. Mus rau tus lej rau txhua tus lej rau txhua kab thiab tom qab ntawd muab tso rau hauv txhua kab.) Yog tias koj saib Txoj Cai koj yuav pom piv txwv B00010100 (uas yog ib kab; qhov no txhais tau tias teev 4 thiab 6 yuav pom kev). Koj yuav tsum ua qhov no rau txhua kab lossis kab. Muaj 8 kab hauv Dot matrix 8x8.

Txaus siab rau cov vis dis aus thiab Codes.

Ua tsaug

Pom zoo: