Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Qhia
- Kauj Ruam 2: Daim iav tuav rau Kev Xav
- Kauj Ruam 3: Buzzer/Tswb Siv Arduino Mini
- Kauj Ruam 4: Leaser Beam
- Kauj Ruam 5: Teeb Kev Xaiv Xaiv
- Kauj ruam 6: Demo
Video: Hmo Ntuj Kev Nyuaj Siab Tswb Siv Arduino: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Nyob zoo, txhua yam nws yog qhov qhia kuv thib 5. Feem ntau kuv sau qhia thaum muaj qee qhov kev sib tw uas kuv tuaj yeem siv Arduino ua kuv li kev tivthaiv. Yog li nrog qhov kev sib tw Optical no, kuv tau muaj sijhawm los nthuav tawm txoj haujlwm hauv tsev kawm yooj yim nrog tsawg heev thiab cov khoom siv yooj yim tseem yog qhov haujlwm txaus.
Tam sim no cia peb tsim Hmo Hmo Ntes Siv Arduino.
Kauj Ruam 1: Cov Khoom Qhia
- Arduino mini tso
- LDR ib thooj
- Leaser
- AA roj teeb (2)
- AA roj teeb tuav
- Hloov swb (2)
- Tsom iav (tsis xav txog qhov koj xav tau)
- Ib lub thawv me me ntawm 6cm X 5cm
- Ib tug coj
- Ib lub suab nrov
- 5v Fais Fab Khoom
- Earbud 5 daim
- Tsheb kauj vab hais 2 daim
- Super kua nplaum
Kauj Ruam 2: Daim iav tuav rau Kev Xav
- Los ntawm kuv lub khw muag khoom, Kuv tau txais daim iav nrog qhov ntev 2cm X 2cm
- Yog li kuv tau luam tawm txuas nrog 3d tshuab luam ntawv rau nws, koj tuaj yeem ua nws siv cov khov nab kuab.
- Siv cov kua nplaum super kuv lo daim me me ntawm pob ntseg pob ntseg ntawm daim iav.
- Nrog lub tsheb kauj vab hais lus, Kuv ua rau lawv nyob twj ywm.
Kauj Ruam 3: Buzzer/Tswb Siv Arduino Mini
Lub kaw lus no ua haujlwm los ntawm kev paub txog kev siv lub teeb nyob hauv nws ib puag ncig. Lub sensor uas tuaj yeem siv los ntsuas lub teeb yog LDR. Nws pheej yig, thiab koj tuaj yeem yuav nws los ntawm ib lub khw hluav taws xob hauv nroog lossis online.
LDR muab qhov hluav taws xob sib piv thaum txuas rau VCC (5V), uas sib txawv hauv qhov loj hauv qhov sib piv ncaj qha rau lub teeb pom kev siv ntawm nws. Ntawd yog, qhov kev siv lub teeb ntau dua, qhov ntau dua qhov sib npaug ntawm LDR yuav yog. Txij li thaum LDR muab tawm qhov hluav taws xob sib piv, nws txuas nrog rau tus pin analog nkag ntawm Arduino. Arduino, nrog nws cov ADC built-in (analog-rau-digital converter), tom qab ntawd hloov cov analog voltage (los ntawm 0-5V) rau hauv tus lej digital hauv thaj tsam ntawm (0-1023). Thaum muaj lub teeb txaus hauv nws ib puag ncig lossis ntawm nws saum npoo, hloov pauv qhov tseem ceeb digital nyeem los ntawm LDR los ntawm Arduino yuav nyob ntawm thaj tsam ntawm 800-1023.
Tom qab txuas LDR rau koj Arduino, koj tuaj yeem tshawb xyuas qhov txiaj ntsig los ntawm LDR ntawm Arduino. Txhawm rau ua qhov no, txuas Arduino ntawm USB rau koj lub PC thiab qhib Arduino IDE lossis software. Tom ntej no, xa cov lej txuas rau koj Arduino.
Tom qab xa cov cai, nyem lub pob ntawm Arduino IDE hu ua "Serial monitor". Qhov no yuav qhib lub qhov rai tshiab, uas luam tawm qhov sib txawv ntawm qhov screen. tau ntawm tus saib xyuas.
===================================
int prevSensorValue = 0; nws yuav teeb tsa thawj zaug thaum koj qhib lub cuab yeej.yog thaum koj thaiv lub teeb yuav muaj qhov poob ntawm tus nqi sensor, txheeb xyuas nws hauv tus lej saib. Rau kuv, nws yog 200, yog li kuv teeb yog qhov sib txawv ntau dua 150 ntau dua li nws yuav teeb tus pin 13 tus nqi rau siab.
Nws yuav tig rau BJT hloov thiab lub tswb yuav qhib rau 2 feeb.
Thaum kawg tsim lub thawv ntawv siv lub tshuab luam ntawv 3d.
Kauj Ruam 4: Leaser Beam
- Kuv tau txais 3v leaser, nrog txoj kab uas hla ntawm 6mm.
- Kuv tsim tus tuav rau nws, koj tuaj yeem hla nws thiab lo nws ncaj qha yog xav tau.
- Siv lub roj teeb AA tuav, nrog 2 lub roj teeb ntxiv qhov kawg rau qhov xaim xaim zoo thiab qhov tsis zoo kawg.
- Thaum qhov kev sib txuas raug lawm koj yuav tau txais lub teeb ci laser.
- Muab qhov hloov pauv ntawm qhov kev sib txuas, kev hloov swb yuav ua haujlwm zoo.
- Muab nws tso rau ntawm phab ntsa, cheeb tsam twg koj xav kom ruaj ntseg siv daim kab xev ob npaug.
Kauj Ruam 5: Teeb Kev Xaiv Xaiv
- Tom qab muab tus leaser, xyuas seb qhov nqaj poob ntawm phab ntsa.
- Muab lub iav tsom iav tso rau ntawd thiab sim ua kom nws poob ntawm koj qhov chaw xav tau los ntawm kev qaij nws.
- Rov ua cov kauj ruam 2 nrog lwm cov iav, txog thaum koj npog tag nrho thaj chaw uas koj xav kom nyab xeeb.
- Ua qhov kawg nqaj kom poob rau ntawm LDR.
Kauj ruam 6: Demo
Thaum txhua yam ua ke nws yuav ua haujlwm txaus.
Pom zoo:
Hmo Hmo Pom Kev Tsaus Ntuj & Tsaus Ntuj Pom Kev - Tsis Muaj Micro: 7 Kauj Ruam (nrog Duab)
Hmo Hmo Pom Kev Tsaus Ntuj & Pom Kev Tsaus Ntuj - Tsis Muaj Micro: Cov lus qhia no yog hais txog kev tiv thaiv koj kom tsis txhob txhuam koj cov ntiv taw thaum taug kev los ntawm chav tsaus. Koj tuaj yeem hais nws yog rau koj tus kheej kev nyab xeeb yog tias koj sawv thaum hmo ntuj thiab sim ua kom lub qhov rooj nyab xeeb. Tau kawg koj tuaj yeem siv lub teeb rau ntawm lub txaj lossis lub ntsiab lus tseem ceeb
Nightvision Laserbeak! (LOS YOG Yuav Ua Li Cas Ua Kev Pom Kev Hmo Hmo Hmo Hmo, LED Throwie, Transformer Toy Mashup Teeb nyem!): 5 Kauj Ruam
Nightvision Laserbeak! (LOSSIS Yuav Ua Li Cas Nightvision-Preserving, LED Throwie, Transformer Toy Mashup Teeb nyem!): Cov lus qhia los ntawm noob rau noob neej.Koj tau txais dab tsi thaum koj mashup hmo ntuj pom lub teeb pom kev zoo, LED pov tseg, thiab hloov pauv zoo qho khoom ua si? Kev qhia paub nrog lub npe tiag tiag! Peb yuav hu nws "Nightvision Laserbeak" rau
Arduino Push Alerts rau Lub Tswb, Tswb Tswb, Tswb Tswb Tswb Thiab Lwm Yam: 8 Kauj Ruam
Arduino Push Alerts rau Tswb, Tswb Tswb, Tswb Tswb Tswb thiab lwm yam: IoT Cov Ntawv Ceeb Toom los ntawm koj lub Tswb, Tswb Tswb, Tswb Tswb thiab lwm yam siv Arduino Uno thiab Ethernet Shield. Cov ncauj lus kom ntxaws ntawm kuv lub vev xaib ntawm no Hais txog Arduino Push Alert Box Siv Arduino Uno thiab Ethernet Shield raws li Wiznet W5100 nti rau
Yuav Ua Li Cas Tsim Kev Hais Lus Hmo Hmo Hmo Hmo: 15 Cov Kauj Ruam
Yuav Ua Li Cas Tsim Kev Hais Lus Hmo Hmo Hmo Hmo: Qhov no yog kev qhia yuav ua li cas thiaj tsim cov khoom siv hmo ntuj mloog cov neeg hais lus los ntawm ntu nthuav tawm
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa Tswm Tswm: Tsa Kuv Lub Caij Ntuj No Lub caij ntuj no kuv tus hluas nkauj muaj teeb meem sawv thaum sawv ntxov thiab zoo li raug kev txom nyem los ntawm SAD (Lub Caij Caij Nyoog Muaj Teeb Meem). Kuv txawm pom tias nyuaj npaum li cas kom sawv thaum lub caij ntuj no vim lub hnub tsis tuaj