Cov txheej txheem:

Kov Board thiab LEDs: 6 Kauj Ruam
Kov Board thiab LEDs: 6 Kauj Ruam

Video: Kov Board thiab LEDs: 6 Kauj Ruam

Video: Kov Board thiab LEDs: 6 Kauj Ruam
Video: Sydney, Australia Walking Tour - 4K60fps with Captions - Prowalk Tours 2024, Kaum ib hlis
Anonim
Kov Board thiab LEDs
Kov Board thiab LEDs

LEDs yog qhov muaj txiaj ntsig zoo rau txhua qhov haujlwm txheej txheem, yog li peb tau tsim qhov kev qhia no los piav qhia yuav ua li cas txuas LEDs mus rau Lub Rooj Tswjhwm Saib. Peb siv 270Ω resistor; koj tuaj yeem siv lwm tus tiv thaiv tab sis lawv yuav tsum nyob hauv 220Ω - 470Ω ntau. Peb pom zoo kom siv lub taub hau txuas rau Lub Rooj Tswjhwm Saib raws li nws muaj kev nyab xeeb dua, tab sis qhov no tsis yog qhov tseem ceeb kiag li; koj tuaj yeem ntxig cov xov hlau jumper ncaj qha rau hauv Touch Board's pins.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Kov Rooj Tswjhwm Saib

-

headers

LED

jumper cov xov hlau

270Ω resistor

Kauj ruam 2: Teeb tsa Lub Rooj Tswjhwm Saib Kov

Teeb tsa Pawg Kov
Teeb tsa Pawg Kov

Yog tias koj tsis tau teeb tsa Lub Rooj Tswjhwm Saib tsis tau, thov ua tam sim no los ntawm kev ua raws cov lus qhia no.

Peb yuav siv "kos_mp3_with_leds.ino" kos duab. Xaiv cov duab kos los ntawm Sketchbook thiab ntaus upload.

Kauj Ruam 3: Cov Taub Hau Solder

Solder Lub Taub Hau
Solder Lub Taub Hau

Cov kauj ruam tom ntej no yog nyob ntawm yeem - siv lub taub hau rau ntawm Touch Board. Yog tias koj tsis tau siv lub taub hau ua ntej, peb pom zoo nyeem cov ntawv los ntawm Sparkfun ntawm no. Xwb, koj tuaj yeem ntxig cov xov hlau jumper ncaj qha rau hauv Touch Board's pins.

Kauj Ruam 4: Txuas LED thiab Resistor rau Breadboard

Txuas LED thiab Resistor rau Breadboard
Txuas LED thiab Resistor rau Breadboard
Txuas LED thiab Resistor rau Breadboard
Txuas LED thiab Resistor rau Breadboard

Tam sim no nws yog lub sijhawm los ua haujlwm ntawm lub khob cij. Ua ntej tshaj, ntxig koj 270Ω resistor ntawm ob kab lej. Tom qab ntawd saib koj lub LED. Koj tuaj yeem pom tias ib txhais ceg ntev dua li lwm tus. Qhov no yog txhais ceg zoo thiab koj yuav tsum lo nws hauv kab ib yam li ib kawg ntawm tus tiv thaiv. Cov ceg luv dua, uas yog ceg tsis zoo, yuav tsum tau muab tso rau hauv kab cim nrog lub cim.

Txuas ib kawg ntawm cov xov tooj liab txuas mus rau qhov kawg dawb ntawm tus tiv thaiv thiab ib qho kawg ntawm cov xaim xaim xaim xaim xaim xaim mus rau kab cim nrog a -. Koj lub khob cij yuav tsum zoo ib yam li cov duab ntawm sab xis.

Kauj Ruam 5: Txuas Touch Board rau Breadboard

Txuas Touch Board rau Breadboard
Txuas Touch Board rau Breadboard

Thaum koj ua tiav nrog daim ntawv tais, txuas lub xaim jumper xaim rau GND tus pin ntawm Lub Rooj Tswjhwm Saib thiab lub xaim xaim liab txuas rau tus pin A5. Nws yuav tsum zoo li daim duab ntawm sab xis: tus pin A5 txuas nrog tus tiv thaiv thiab GND tus pin rau LED.

Kauj Ruam 6: Qhib Nws thiab Kov Electrode

Qhib nws thiab kov Electrode
Qhib nws thiab kov Electrode
Qhib nws thiab kov Electrode
Qhib nws thiab kov Electrode

Txuas lub rooj tsavxwm rau lub zog thiab kov cov electrode 11. Tam sim no nws yuav tsum teeb koj lub LED! Thiab qhov ntawd yog qhov yooj yim npaum li cas nws yog lub teeb ci LED nrog Lub Rooj Tswjhwm Saib.

Ua tib zoo saib kab 97 hauv "touch_mp3_with_leds" code. Txhua tus pins hauv kab ntawv no, yog li 0, 1 10, 11, thiab lwm yam, yog cov pins uas tau teeb tsa rau lub electrodes. Hauv qhov piv txwv no, peb txuas nrog LED rau A5 thiab tig nws nrog hluav taws xob E11, tab sis koj kuj tseem tuaj yeem txuas ib qho LED rau tus pin 0 thiab tig nws nrog electrode E0. Koj tseem tuaj yeem txuas ntau dua ib qho LED raws li peb tau ua hauv daim duab ntawm sab xis. Peb yuav nyiam hnov koj lub tswv yim, yog li thov qhia koj cov kev tsim nrog peb los ntawm kev xa koj cov duab lossis yeeb yaj kiab rau peb ntawm Instagram lossis Twitter lossis xa email rau peb ntawm [email protected].

Pom zoo: