Cov txheej txheem:

16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm: 5 Kauj Ruam (nrog Duab)
16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm: 5 Kauj Ruam (nrog Duab)

Video: 16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm: 5 Kauj Ruam (nrog Duab)

Video: 16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm: 5 Kauj Ruam (nrog Duab)
Video: RGB Matrix with Arduino 2024, Hlis ntuj nqeg
Anonim
16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm
16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm
16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm
16x16 RGB LED Vaj Huam Sib Luag Arduino Cov Haujlwm

Nyob Zoo Sawv Daws, Kuv tshaj tawm txoj haujlwm no vim tias kuv xav kom txhua tus muaj qhov chaw yooj yim los ua si nrog ib qho ntawm qhov zoo heev 16x16 RGB LED panels. Kuv tau txais cov tswv yim los ntawm lwm cov phiaj xwm thiab hloov kho lawv rau txoj haujlwm no.

Nws muab qhov chaw zoo rau koj pib nrog qee qhov kev lom zem ua haujlwm uas koj tuaj yeem coj thiab hloov kho koj tus kheej. Kuv tsis yog C ++ programmer tab sis feem ntau ntawm cov cai no yooj yim heev rau kev nkag siab thiab hloov kho.

Kuv pib ua txoj haujlwm no vim kuv tus poj niam xav ua lub kaus mom Topper rau peb tus tub kawm tiav.

Kuv vam tias koj muaj kev lom zem ua haujlwm ntawm cov haujlwm no.

Kuv yuav khaws qhov hloov kho tshiab nrog txoj cai tshiab raws li kuv pom lwm lub tswv yim.

CODE NTAWV:

16counter - Palette of Colors tom qab txoj kev ntawm lub vaj huam sib luag

16random - Xim Random ntawm Vaj Huam Sib Luag

16pacman - Pacman daj

16red - Red Pacman Ghost

16colormatrix - Swirling Colors (Credit rau lwm qhov haujlwm los ntawm Youtube)

Khoom siv

Kuv yuav LED Vaj Huam Sib Luag los ntawm Amazon tab sis koj tuaj yeem tau txais lawv los ntawm Ebay kuj:

www.amazon.com/gp/product/B01DC0IOCK/ref=p…

Kuv nyiam siv Arduino Nano rau lawv qhov me me, Kuv tsis tshua xav tau txhua tus pin ntawm cov laug cam loj:

Cov Cables rau txuas koj li Arduino board yog USB Mini thiab xav tau cov ntaub ntawv hloov pauv:

Kauj Ruam 1: Teeb tsa Pawg Thawj Coj thiab LED Vaj Huam Sib Luag

Teeb lub Rooj Tswjhwm Saib thiab LED Vaj Huam Sib Luag
Teeb lub Rooj Tswjhwm Saib thiab LED Vaj Huam Sib Luag
Teeb lub Rooj Tswjhwm Saib thiab LED Vaj Huam Sib Luag
Teeb lub Rooj Tswjhwm Saib thiab LED Vaj Huam Sib Luag
Teeb lub Rooj Tswjhwm Saib thiab LED Vaj Huam Sib Luag
Teeb lub Rooj Tswjhwm Saib thiab LED Vaj Huam Sib Luag

HLOOV

Lub Vaj Huam Sib Luag muaj 3 xov hlau, Liab, Ntsuab, Dawb.

Liab (Zoo) los ntawm Vaj Huam Sib Luag mus rau 5v ntawm Arduino Board

Ntsuab (Hauv av) los ntawm Vaj Huam Sib Luag mus rau GND ntawm Ardunino Board

Dawb (Cov Ntaub Ntawv) los ntawm Vaj Huam Sib Luag rau Pin 3 ntawm Arduino Nano

Tsis txhob poob siab los ntawm cov xim ntawm kuv cov xov hlau hauv cov duab, Kuv tsuas yog siv cov xim sib txawv sib txuas los txuas Nano mus rau Vaj Huam Sib Luag.

Thaum kawg txuas Nano nrog USB Mini cable rau koj lub PC.

Kauj ruam 2: Teeb tsa Programming

Teeb Programming
Teeb Programming
Teeb Programming
Teeb Programming

ARDUINO SOFTWARE

Rub tawm thiab teeb tsa Arduino Software ntawm koj lub PC.

www.arduino.cc/en/Main/Software

FastLED LIBRARY

Koj kuj tseem yuav tsum rub lub FastLED lub tsev qiv ntawv los ntawm Github. Feem ntau ntawm cov cai rau txoj haujlwm no xav tau lub tsev qiv ntawv ntawd. Nyem rau Sketch, suav nrog Lub Tsev Qiv Ntawv, Ntxiv Tsev Qiv Ntawv, Xaiv cov ntawv FastLED-master.zip.

github.com/FastLED/FastLED

QHOV TSEEB TSHIAB

Tsim daim nplaub tshev rau koj tus lej Arduino thiab muab txhua qhov Project txoj cai tso rau hauv cov ntawv cais cais qhov twg lub npe nplaub tshev zoo ib yam li cov cai.

Kauj ruam 3: Programming

Programming
Programming

Nco ntsoov tias koj lub Arduino Nano board tau txuas rau hauv koj lub computer.

Nyem rau ntawm ib qho piv txwv.ino cov ntaub ntawv hauv cov qauv tsim nyog thiab nws yuav tsum qhib hauv Arduino program.

Ib zaug hauv qhov program Arduino, nyem rau ntawm Cov Cuab Yeej, Pawg Thawj Coj thiab xaiv Arduino Nano board.

Tom ntej no nyem rau ntawm Cov Cuab Yeej, Chaw Nres Nkoj, yuav tsum muaj tsawg kawg ib Qhov Chaw Nres Nkoj, xaiv chaw nres nkoj.

Nyem rau ntawm Upload khawm (Txoj cai xub xub) txhawm rau sau thiab xa koj daim duab kos mus rau lub rooj tsavxwm. Cov qauv xim yuav tsum tso tawm ntawm koj li 16x16 Vaj Huam Sib Luag

Yog tias koj tau txais qhov teeb meem Chaw nres nkoj, sim lwm qhov chaw nres nkoj yog tias koj muaj ntau dua ib qho teev tseg.

Yog tias koj muaj qhov ua yuam kev, mus rau Cov Ntaub Ntawv, Nyiam thiab nyem rau ntawm "Qhia Cov Lus Qhia Tawm Sijhawm".

Pom zoo: