Cov txheej txheem:

LED Box rau Tsev Kawm Ntawv Delta Lub Rooj Sib Tham: 7 Kauj Ruam
LED Box rau Tsev Kawm Ntawv Delta Lub Rooj Sib Tham: 7 Kauj Ruam

Video: LED Box rau Tsev Kawm Ntawv Delta Lub Rooj Sib Tham: 7 Kauj Ruam

Video: LED Box rau Tsev Kawm Ntawv Delta Lub Rooj Sib Tham: 7 Kauj Ruam
Video: Dab neeg Niam tais vam ntau 26/5/2017 2024, Kaum ib hlis
Anonim
LED Box rau Tsev Kawm Ntawv Delta Lub Rooj Sib Tham
LED Box rau Tsev Kawm Ntawv Delta Lub Rooj Sib Tham

Kauj Ruam 1: Ntxig LEDs

Ntxig LEDs
Ntxig LEDs

Cov theem hauv qab no yog qhov xav tau rau kev tsim nyog tsim nyog ntawm lub thawv LED. Ua ntej tshaj, koj yuav tsum muab cov hlua LED txuas rau sab hauv lub thawv nrog ob peb dabs ntawm cov kua nplaum kub.

Kauj Ruam 2: Txuas lub LEDs mus rau Arduino

Txuas lub LEDs rau Arduino
Txuas lub LEDs rau Arduino

Koj yuav tsum tau ntsaws cov hlua ntawm LEDs mus rau Arduino los ntawm kev ua cov hauv qab no.

Qhov tsis zoo los ntawm LED mus rau hauv av ntawm Arduino

Qhov zoo mus rau 5v

Vin yuav mus rau 4 tus pin

Kauj Ruam 3: Sijhawm rau Txoj Cai

Thawj qhov chaws peb yuav siv yog tus lej yooj yim heev tab sis ib qho muaj txiaj ntsig zoo.

Koj yuav tsum tau theej thiab tom qab ntawv muab lo lus tsim los ntawm Michalis Vasilakis rau hauv Arduino web editor.

codebender.cc/sketch:322155#%5Barduino-tutorial%5D%20RGB%20LED%20Strip%20(type%202812).ino

Txoj cai no muaj plaub yam uas koj tuaj yeem hloov pauv: ci ntsa iab, xim, tus lej ntawm LEDs thiab nrawm LEDs teeb.

Kauj ruam 4: Brightness

Qhov ci ci yog qhov ci ntsa iab LEDs yuav ci li cas thaum siv. Cov xim Dawb siv lub zog tshaj plaws.

Tus lej nrog qhov ci ntawm kab 23 twb tau teeb tsa ntawm 80 tab sis koj tuaj yeem hloov tus lej ntawd los ntawm 0-100 los ntawm kev hloov tus lej xwb.

Kauj Ruam 5: Xim

Koj tuaj yeem hloov xim ntawm LED kab ntawm kab 16-18 thiab koj tuaj yeem hloov pauv hauv RGB tsim lub ntsiab lus koj tuaj yeem ntxiv 3 tus lej sib txawv Ex: (100, 200, 300) Thawj tus lej sawv cev liab ces tus lej thib ob sawv cev rau xiav tus nqi thiab tom qab ntawd tus lej thib peb sawv cev rau ntsuab. koj tuaj yeem hloov cov lej no txhua txoj kev los ntawm 0 txog 255.

Kauj Ruam 6: Ceev thiab Ncua Sijhawm

Hauv txoj cai no, tseem muaj ib yam ntxiv uas koj tuaj yeem hloov pauv nrog tus lej no. Qhov sib txawv uas koj tuaj yeem hloov pauv yog qhov nrawm thiab qhov chaws nyob ntawm kab 31 thiab nws tau hu ua qeeb thiab nws twb tau teeb tsa ntawm 1000. Tus lej no tuaj yeem mus los ntawm 0 txhua txoj hauv kev rau txhua tus lej uas koj tuaj yeem ntaus (tias LEDs tuaj yeem tuav).

Kauj ruam 7: Troubleshooting

Nov yog txoj cai nyuaj dua uas tuaj yeem ua ntau yam qauv thiab yuav hla dhau lawv.

Tab sis ua ntej koj mus ntaus tam sim koj yuav tsum rub lub tsev qiv ntawv hauv koj Arduino web editor npe "FastLED" thiab tom qab ntawd koj tuaj yeem pib daws teeb meem. Muaj qee qhov teeb meem uas koj yuav tsum tau kho nrog cov cai kom nws ua haujlwm nrog koj Arduino thiab koj li LEDs.

Pom zoo: