Cov txheej txheem:

64x32 RGB LED Matrix Nrog Arduino Mega: 6 Kauj Ruam
64x32 RGB LED Matrix Nrog Arduino Mega: 6 Kauj Ruam

Video: 64x32 RGB LED Matrix Nrog Arduino Mega: 6 Kauj Ruam

Video: 64x32 RGB LED Matrix Nrog Arduino Mega: 6 Kauj Ruam
Video: ESP32 + 64x32 RGB LED Matrix 2024, Kaum ib hlis
Anonim
64x32 RGB LED Matrix Nrog Arduino Mega
64x32 RGB LED Matrix Nrog Arduino Mega
64x32 RGB LED Matrix Nrog Arduino Mega
64x32 RGB LED Matrix Nrog Arduino Mega
64x32 RGB LED Matrix Nrog Arduino Mega
64x32 RGB LED Matrix Nrog Arduino Mega

Kuv nyiam kawm paub siv LED matrix thiab LEDs nyob qhov twg. Lawv lom zem heev thaum koj txiav txim siab seb nws los ua ke li cas. Kuv tau sau ua ke cov lus qhia no piav qhia txhua kauj ruam hauv qhov yooj yim thiab sib haum xeeb rau lwm tus kom kawm. Yog li txaus siab. Qhia rau kuv paub yog tias koj muaj lus nug.

Khoom siv

RGB LED Matrix Module 64x32 pixel

Arduino Mega Cov

Jumper Cables

USB Cable

USB lub zog hloov pauv nrog 2 lub ntsaws ntsaws

Kauj Ruam 1: 64x32 RGB LED Matrix Module

Khoom Lub Npe RGB LED Matrix Module P4 SMD2121 256x128mm 64x32 pixel

SpecificationPixel suab: 4mm Tus Kheej

LED Loj: SMD2121 2.1 x 2.1 hli

Sab hauv xim tag nrho Nto Mount Device

Lub zog siv hluav taws xob ntau: 20W

Lub zog siv hluav taws xob: 6.7W

Kev tawm tswv yim voltage: DC5V

Kauj Ruam 2: Txuas 64x32 LED Matrix Vaj Huam Sib Luag nrog Arduino Mega

Txuas 64x32 LED Matrix Vaj Huam Sib Luag Nrog Arduino Mega
Txuas 64x32 LED Matrix Vaj Huam Sib Luag Nrog Arduino Mega

Ua raws daim duab txhawm rau txuas tus pin rau jumper cable txuas.

Koj yuav tsum txuas lub zog 5V rau hauv lub hwj chim nkag rau tus qauv los tso saib kom raug. Nrog lub zog tsuas yog los ntawm pawg thawj coj saib tsis txaus vim qee qhov LED thiab xim tsis tig nrog lub ci ci tag nrho.

Siv lub vev xaib:

Lwm qhov kev qhia nrog lub rooj sib tham - Ntau cov ntsiab lus.

Kauj Ruam 3: Vim Li Cas Siv Arduino Mega?

Arduino Mega muaj 256 KB ntawm lub cim xeeb flash uas yog qhov tsim nyog rau saib ntau bitmaps ntawm LED matrix. Arduino Uno tsuas muaj 32KB ntawm lub cim xeeb flash thiab txwv rau kev siv.

  • Arduino Uno - 32 KB Flash Memory
  • Arduino Mega - 256 KB nyem
  • ESP8266 D1 mini - 80 KiB
  • ESP-32S WROOM-32-4MiB Flash

Kauj Ruam 4: Kev ua haujlwm rau LED Matrix Panel

Rub tawm thiab teeb tsa software Arduino los ntawm lub vev xaib raug cai.

Txhim kho RGB Matrix Panel tsev qiv ntawv los ntawm Arduino tus thawj tswj tsev qiv ntawv lossis GitHub lub vev xaib.

Nruab Adafruit GFX Library los ntawm Arduino tus thawj tswj tsev qiv ntawv lossis GitHub lub vev xaib.

Nruab Adafruit BusIO los ntawm tus thawj tswj tsev qiv ntawv Arduino lossis GitHub lub vev xaib.

Qhib cov lej piv txwv los ntawm kev mus rau Cov Ntaub Ntawv> Piv txwv> RGB Matrix Panel> Xaiv los ntawm cov npe.

Txuas Arduino Mega rau lub khoos phis tawj. Xaiv lub cuab yeej raug thiab chaw nres nkoj. Upload thiab khiav cov cai.

Kauj Ruam 5: Teeb RGB Matrix Vaj Huam Sib Luag Piv Txwv rau 64x32 Module

Cov piv txwv hauv lub tsev qiv ntawv tau ua rau me me LED matrix modules. Txhawm rau khiav nws ntawm 64x32 tus qauv peb yuav tsum hloov kho txoj cai.

Rau txhua qhov piv txwv hauv lub tsev qiv ntawv:

  • colorwheel_32x32
  • colorwheel_progmem_32x32
  • Vaj Huam Sib LuagGFXDemo_16x32
  • ntshav_16x32
  • ntshav_32x32
  • scrolltext_16x32
  • testcolors_16x32
  • testhapes_16x32
  • testhapes_32x32
  • testhapes_32x64

Rau txhua qhov piv txwv, yuav tsum hloov pauv hauv qab no. Ntxiv kab:

#Txhais D3

Hloov kho kab:

RGBmatrixPanel *matrix = tshiab RGBmatrixPanel (A, B, C, CLK, LAT, OE, tseeb);

Ntxiv D tom qab C thiab 64 tom qab muaj tseeb. Kab yuav tsum zoo li no.

RGBmatrixPanel *matrix = tshiab RGBmatrixPanel (A, B, C, D, CLK, LAT, OE, tseeb, 64);

Kauj Ruam 6: Hloov Cov Duab Bitmap rau 64x32 LED Matrix Panel

Hloov cov duab bitmap rau c file los ntawm no:

Ntxiv cov cai bitmap rau sab saum toj.

Ntxiv cov hauv qab no rau "void loop () {}" muaj nuj nqi:

matrix-> drawRGBBitmap (0, 0, (const uint16_t *) nto, 64, 32);

matrix-> qhia ();

ncua (4000);

matrix-> meej (); // Teeb duab rau dub

Txoj haujlwm no yog siv los kos lub bitmap.matrix-> drawRGBBitmap (x, y, bitmap, w, h);

  • x thiab y yog txoj haujlwm ntawm lub rooj tsavxwm.
  • w thiab h yog qhov dav thiab qhov siab.
  • bitmap yog qhov siv rau tus lej bitmap nyob rau saum toj.

Tau txais kuv tus lej kawg Arduino ntawm no ntawm GitHub:

Arduino Code ntawm GitHub

Pom zoo: