Cov txheej txheem:

Khiav Box: 5 Kauj Ruam
Khiav Box: 5 Kauj Ruam

Video: Khiav Box: 5 Kauj Ruam

Video: Khiav Box: 5 Kauj Ruam
Video: Tuag raws kev ruam 5/6/2022 2024, Kaum ib hlis
Anonim
Khiav Box
Khiav Box

Lub thawv ntaus ntawv no yog lub thawv, haum nrog ntau lub teeb LED uas qhib thaum lub suab tau txais los ntawm lub ntsuas hluav taws xob dhau ntawm qhov chaw pib.

Kauj ruam 1: Yuav tsum tau ua

Yuav tsum muaj
Yuav tsum muaj
Yuav tsum muaj
Yuav tsum muaj

Cov khoom siv xav tau:

-1 Arduino Uno

-Ib lub khob cij

-Txiv neej/Txiv neej dhia

-Txiv neej/Poj niam dhia

-Cov Arduino suab sensor (plaub tus pin)

-Muaj ntau lub teeb ci LED raws li koj xav tau

-Resistors (tib yam li LED koj siv) -

-10 x 25 cardboard box -Worbla -Paint

Kauj Ruam 2: Txuas Arduino, Breadboard thiab Suab Sensor

Txuas Arduino, Breadboard thiab Suab Sensor
Txuas Arduino, Breadboard thiab Suab Sensor
Txuas Arduino, Breadboard thiab Suab Sensor
Txuas Arduino, Breadboard thiab Suab Sensor
Txuas Arduino, Breadboard thiab Suab Sensor
Txuas Arduino, Breadboard thiab Suab Sensor

Lub suab sensor muaj plaub tus pin: AO, GND, VCC (aka the +) thiab DO. Koj yuav tsum txuas tus pin nrog Arduino raws li hauv qab no:

AO = AO GND = GND VCC (+) = 5V DO = Digital Pin 2

Koj kuj tuaj yeem saib ntawm lub rooj rau siv.

Arduino, lub ntsuas suab thiab lub khob cij tau txuas nrog ib leeg zoo li pom hauv daim duab siv. Hauv daim duab tsuas muaj ib qho LED txuas nrog txawm li cas los xij, koj ib txwm tuaj yeem txuas ntxiv yog tias koj xav tau. Tau kawg koj yuav tsum paub tseeb tias txhua LED muaj lawv tus kheej tiv thaiv. Cov resistors yuav tsum txuas nrog tsuas yog ib lub jumper uas txuas nrog GND ntawm Arduino. So qhov kev txiav txim los ntawm LED mus rau Arduino yog: Digital pin ntawm Arduino, LED teeb -, LED teeb +, resistor, GND ntawm Arduino.

Kauj Ruam 3: Kev Siv Hluav Taws Xob thiab Hluav Taws Xob

Soldering thiab thaiv
Soldering thiab thaiv
Soldering thiab thaiv
Soldering thiab thaiv

Tom qab ua kom ntseeg tau tias txhua yam ua haujlwm tau zoo, Kuv tau ua txhua yam thiab hloov pauv lub khob cij kom paub tseeb tias nws haum rau hauv koj lub thawv.

Thov ua siab zoo rau txoj haujlwm ua haujlwm tsis zoo, Kuv tsuas yog cov tub ntxhais kawm uas muaj kev nyuaj siab uas tsis muaj kev nkag siab txog txhua yam tom qab tag nrho.

Kauj Ruam 4: Coding Txoj Haujlwm

Coding Txoj Haujlwm
Coding Txoj Haujlwm

Cov ntaub ntawv "soundensor.ino" muaj cov cai uas kuv tau siv rau kuv txoj haujlwm. Lub suab sensor yuav xav tau qee qhov tweaking ntawm qhov rhiab. Kuv tau ua qhov no los ntawm kev mus rau lub ntsuas saib (sab xis sab xis hauv Arduino software) thiab saib tus nqi "analog". Yog tias nws nyob ib puag ncig 20, koj tso "int_threshold" hauv qhov chaws ntawm 21 lossis qee yam ze. Koj tseem tuaj yeem ua si ib puag ncig nrog qhov nkag siab ntawm lub suab sensor nws tus kheej los ntawm tig lub pob qhov rooj me me nyob rau sab saum toj ntawm lub duab plaub xiav.

Kauj Ruam 5: Tsim Vaj Tsev

Tsim Tsev Nyob
Tsim Tsev Nyob
Tsim Tsev Nyob
Tsim Tsev Nyob
Tsim Tsev Nyob
Tsim Tsev Nyob

Txog vaj tsev ntawm txoj haujlwm, kuv siv lub thawv ntawv yooj yim los pib nrog. Tom qab ntawd kuv tau npog nws nrog Worbla, qee yam thermoplastic, rau kev ua haujlwm ntev. Kuv kuj tau ua qee cov ntsiab lus ntawm lub casing siv Worbla, thiab ua "xauv" tawm ntawm EVA ua npuas ncauj. Thaum lub Worbla tseem tuaj yeem tsim tau, Kuv tau ua tsib qhov nyob rau sab saum toj ntawm lub thawv rau LED's mus rau sab, thiab lub qhov nyob tom qab rau txhua qhov thaiv. Nco ntsoov tias lub qhov loj txaus!

Kuv tsis tau tshaj tawm Worbla ua ntej pleev xim rau lub hom phiaj, raws li kuv paub kuv xav ua raws qhov ntxhib, tawv zoo li kev ntxhib los mos. Tom qab cia Worbla txias, kuv pleev xim rau lub thawv dub tag. Tom qab ntawd kuv dabbed ntawm ntau yam xim hauv cov khaubncaws sab nraud povtseg kom tsis txhob muaj ib puag ncig tig cuav, tib xim.

Thiab tom qab ntawd koj tsuas yog muab tag nrho koj cov cuab yeej kho mob rau hauv lub thawv! Kuv siv lub qhov rov qab rau xaim rau kuv lub zog siv thiab kuv lub suab ntsuas, yog li kuv tuaj yeem tso nws lub microphone txhua qhov kuv xav tau. Txawm li cas los xij, Kuv tsis tau ua dab tsi los ua kom kho vajtse haum tau yooj yim rau hauv lub thawv. Kuv yuav zaum tau ua qhov ntawd yog tias kuv tsuas muaj sijhawm ntxiv me ntsis.

Tam sim no txhua yam koj yuav tsum ua yog xaiv koj cov nkauj nyiam!

Pom zoo: