Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Kauj Ruam 1: Sib dhos Ultra Sonic Sensor
- Kauj Ruam 2: Kauj Ruam 2: Txuas Buzzer
- Kauj Ruam 3: Kauj Ruam 3: Txuas lub LED
- Kauj Ruam 4: Kauj Ruam 4: Sijhawm Coding
- Kauj Ruam 5: Kauj Ruam 5: Sijhawm Nres Tus miv
- Kauj Ruam 6: Kauj Ruam 6: Ua Si Nrog Cov Chaw
Video: Arduino Tswb - Cat Pov Thawj: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Miv tuaj yeem ua tau zoo. Lawv tuaj yeem ua rau tsis txaus ntseeg, tsis meej thiab lom zem. Txawm li cas los xij, thaum lawv pib ntawm ib qhov haujlwm, lawv tuaj yeem nyuaj heev rau kev tiv thaiv. Yuav ua li cas txoj hauv kev zoo dua los txwv tus miv dua li lub suab thiab lub suab nkag siab?
Hauv zaj lus qhia no koj yuav kawm paub teeb tsa thiab sau tus lej Arduino txhawm rau txheeb xyuas cov lus tsa suab nyob ze nws. Thaum cov lus tsa suab tshwm sim, nws yuav cuam tshuam cov tsiaj nrog ob lub teeb LED, thiab lub suab.
Qee qhov kev paub pib nrog kev siv hluav taws xob thiab cov phiaj xwm tau pab tau tab sis tsis xav tau.
Khoom siv
1 Arduino UAS
1 Cov qhob cij
2330Ω Cov neeg tiv taus
1 Lub suab nrov
1 RGB LED
10 Jumper Cables
1 9V1A Adapter (teeb tsa thiab ntsaws rau hauv)
Kauj Ruam 1: Kauj Ruam 1: Sib dhos Ultra Sonic Sensor
Pib sib sau ua ke koj daim ntawv qhia zaub mov.
Txuas lub Ultra Sonic sensor raws li qhia saum toj no. Nco tseg ntawm plaub tus lej sib txawv (sau npe) VCC, Trig, Echo, thiab Gnd. Nco ntsoov tias VCC tab tom mus rau 5V lub zog siv, thiab GND tab tom mus rau hauv av.
Kev ntsuas yuav tsum mus rau Pin 2, thiab Echo yuav tsum mus rau Pin 3.
Kauj Ruam 2: Kauj Ruam 2: Txuas Buzzer
Ib zaug ntxiv, ua raws nrog daim ntawv qhia zaub mov saum toj no kom txuas lub buzzer. Nco ntsoov tias + lub davhlau ya nyob twg ntawm lub buzzer tau txuas rau tus pin 7, thiab siv 330Ω resistor los txuas rau - lub davhlau ya nyob twg rau hauv av.
Kauj Ruam 3: Kauj Ruam 3: Txuas lub LED
Txuas lub RGB LED raws li qhia hauv daim duab. Liab yuav tsum txuas rau tus pin 9, Ntsuab yuav tsum txuas rau tus pin 10, thiab xiav rau tus pin 11. Qhov kawg (thiab ntev tshaj) tus pin yuav tsum txuas rau hauv av, nrog 330Ω Resistor.
Kauj Ruam 4: Kauj Ruam 4: Sijhawm Coding
Tam sim no yog lub sijhawm ntxiv cov cai. Siv tus tswj Arduino, cov cai hauv qab no yuav ua rau koj lub teeb ci thiab lub tswb nrov kom nrov nrov nyob ntawm qhov deb deb uas UltraSonic Sensor pom cov khoom.
Yog tias koj tau muaj tswv yim nrog ib tus ntawm koj tus lej Pin, paub tias koj yuav xav hloov lawv kom tau txais txoj cai ua haujlwm.
Kauj Ruam 5: Kauj Ruam 5: Sijhawm Nres Tus miv
Teeb koj qhov kev npaj nyob qhov twg koj xav tiv thaiv koj tus miv los ntawm qhov chaw. Kuv sim txwv nws kom tsis txhob hla hla hauv pem teb hauv kuv qab daus, qhov twg tsis muaj qhov rooj los tiv thaiv qhov no. Thaum nws taug kev pem hauv ntej ntawm lub sensor, nws tawm mus. Nws yooj yim ntshai los ntawm lub suab nrov thiab teeb yog li nws tsis siv sijhawm ntau los txwv nws.
Kauj Ruam 6: Kauj Ruam 6: Ua Si Nrog Cov Chaw
Qee yam uas koj tuaj yeem kho lossis hloov kho raws li koj xav tau:
- Dab tsi "distanceInCM" ua rau muaj tej yam tshwm sim. Koj puas xav kom nws yog thaum nws pom qee yam ze heev, lossis tsuas yog thaum nws nyob deb dua? Yog tias koj kho qhov no kom nyob deb dhau, koj yuav xav tau qhov zoo dua Ultrasonic sensor uas nkag siab tau zoo dua.
- Yam xim twg koj xav siv? Nrog RGB LED, nws xaiv qhov txiaj ntsig tsis raug ntawm 0 thiab 100, lossis 0 thiab 255 (liab thaum qee yam nyob ze) kom ceeb toom loj dua.
- Qhov zaus ntawm lub buzzer tuaj yeem hloov kho. Cov zaus qis dua yog cov ntawv qis dua, ntau zaus ntau dua yog sau ntau dua.
Pom zoo:
Tswb Tswb Tswb Tswb Tswb: 3 Kauj Ruam
Lub Tswb Tswb Tswb Tswb: Kuv yog menyuam kawm ntawv 13 xyoos hauv Taiwan.Kuv ua yam nrog Arduino thawj zaug yog tias koj tuaj yeem qhia kuv yuav ua li cas txhim kho txoj haujlwm no, thov tawm lus rau kuv kom kuv tuaj yeem ua qhov zoo dua. (Ua tsaug ) Lub moos no tuaj yeem tsa koj thaum koj tsaug zog, tab sis kuv
Tswb Tswb Tswb Tswb Tswb Ntse Teeb: 8 Kauj Ruam (nrog Duab)
Tswb Tswb Tswb Tswb Tswb Lub Teeb: Hauv qhov haujlwm no kuv tau siv lub tshuab cua-tsoo lub tswb tawg tag. Lub ntsej muag ntawm lub moos tau hloov pauv los ntawm 12 LEDs, teeb pom kev los ntawm LED kab ib ncig ntawm ntug ntawm lub moos. 12 LEDs qhia lub sijhawm thiab cov hlua LED tau teeb tsa los ua lub tswb, tig
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
Lub Tswb Tswb Tswb Tswb Siv Super Tiny Arduino Compatible Board !: 10 Cov Kauj Ruam
Lub Tswb Tswb Tswb Tswb Siv Super Tiny Arduino Compatible Board!: Nyob zoo, hnub no peb yuav ua qhov haujlwm me me txias. Peb tab tom tsim lub tswb me me uas ntsuas qhov nrug nruab nrab ntawm nws tus kheej thiab cov khoom nyob rau ntawm nws xub ntiag. Thiab thaum cov khoom txav mus los yav dhau los teeb tsa, lub cuab yeej yuav ceeb toom rau koj nrog
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