Cov txheej txheem:

P10 Coj (DMD) Siv Arduino Nano V.3: 4 Cov Kauj Ruam
P10 Coj (DMD) Siv Arduino Nano V.3: 4 Cov Kauj Ruam

Video: P10 Coj (DMD) Siv Arduino Nano V.3: 4 Cov Kauj Ruam

Video: P10 Coj (DMD) Siv Arduino Nano V.3: 4 Cov Kauj Ruam
Video: P10 Multi Effect DMD Display 2024, Kaum ib hlis
Anonim
P10 Coj (DMD) Siv Arduino Nano V.3
P10 Coj (DMD) Siv Arduino Nano V.3

Hauv kuv tsab xov xwm dhau los. Kuv twb tau qhia tias yuav siv lub tshuab ntaus ntawv ntawm Arduino li cas. Cov khoom siv suav nrog "7-Segment", "RGB ring", "Led Matrix" thiab "2x16 LCD".

Hauv kab lus no, kuv tseem yuav qhia koj siv lub tshuab ntaus ntawv ntawm Arduino li cas. Cov cuab yeej tso tawm uas kuv siv lub sijhawm no yog P10 Led Module.

Qhov Led no yuav luag zoo ib yam li Led matrix uas kuv tau siv ua ntej. Qhov sib txawv yog qhov loj thiab pes tsawg ntawm LEDs.

Rau qhov kev qhia no, ntawm no yog cov khoom peb xav tau:

  • P10 Led module (suav nrog lub zog thiab cov ntaub ntawv txuas)
  • Arduino Nano V.3
  • Jumper Hlau
  • USBmini

Yuav tsum muaj tsev qiv ntawv:

DMD2

Kauj Ruam 1: DMD Cov Lus Qhia Tshwj Xeeb

Specification ntawm DMD
Specification ntawm DMD

P10 Led Module Cov Lus Qhia Tshwj Xeeb:

  • Ua haujlwm voltage: 5V
  • 32 x 16 Liab Led
  • Lub cev: Yas
  • IC tswj On board

Kauj Ruam 2: Txuas lub LED mus rau Arduino

Txuas lub LED rau Arduino
Txuas lub LED rau Arduino
Txuas lub LED rau Arduino
Txuas lub LED rau Arduino
Txuas lub LED rau Arduino
Txuas lub LED rau Arduino

Nov yog P10 coj tus qauv teeb tsa teeb tsa rau Arduino:

P10 Coj mus rau Arduino

OE ==> D9

A ==> D6

GND ==> GND

CLK ==> D13

SCLK ==> D8

Cov ntaub ntawv ==> D11

Cov qauv no yuav tsum tau muab nrog lub zog 5V sab nraud. Yog li tus qauv tuaj yeem pom kev.

Yog tias tsis muab cov khoom siv sab nraud tseem tuaj yeem taws tau. tab sis cov txiaj ntsig tsis ci heev.

rau qhov sib txawv ntawm cov qauv uas siv cov khoom siv sab nraud thiab tsis yog. qhov sib txawv tuaj yeem pom hauv qib ua tiav.

Kauj ruam 3: Programming

Programming
Programming

Nco ntsoov tias "DMD2" Library tau teeb tsa hauv Arduino IDE.

Hauv qab no yog cov duab kos uas kuv tau sim sim P10 Led Module no.

#include #include #include

const int WIDTH = 1;

const uint8_t *FONT = Arial14;

SoftDMD dmd (WIDTH, 1);

DMD_TextBox lub thawv (dmd);

void teeb tsa () {

Serial.begin (9600); dmd.setBrightness (255); dmd.selectFont (FONT); dmd.begin (); }

void voj () {

dmd.drawString (0, 0, String ("Nyob Zoo"));

}

Daim duab saum toj no yog piv txwv me me ntawm kev siv no p10 Led Module. rau lwm qhov kev kos duab txog tus qauv no, saib Piv txwv muab los ntawm lub tsev qiv ntawv.

Kauj Ruam 4: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim
Qhov tshwm sim

Saib daim duab saum toj no kom pom cov txiaj ntsig.

Daim duab 1: Cov qauv uas siv cov khoom siv sab nraud Duab 2: Cov qauv uas tsis siv cov khoom siv sab nraud

Pom zoo: