Cov txheej txheem:
- Kauj Ruam 1: Cov khoom siv
- Kauj Ruam 2: Ua Qauv Qauv
- Kauj Ruam 3: Schematics ntawm Qhov System
- Kauj ruam 4: Txoj Cai
- Kauj ruam 5:
Video: Tsab ntawv tsa suab qhib Sentinel: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
"Cov lus qhia no tau tsim los ua kom tau raws txoj haujlwm xav tau ntawm Makecourse ntawm University of South Florida (www.makecourse.com)"
Nyob zoo, kuv lub npe yog Ruben Duque. Ib tus tub ntxhais kawm kho tshuab hauv University of South Florida, thiab hnub no kuv yuav piav qhia koj yuav rov tsim dua daim ntawv ntawm kuv qhov haujlwm kawg rau kuv chav kawm uas kuv hu ua "Motion Activated Sentinel"
Ua ntej tshaj plaws kuv xav taw tes tias tag nrho lub cev ntawm txoj haujlwm yog tsim los ntawm 3D qhov chaw luam tawm thiab qhov kev cia siab yog qhov qub los ntawm kuv. Raws li qhov tshwm sim tsis muaj ntau qhov uas koj tuaj yeem yuav ib ncig.
Kauj Ruam 1: Cov khoom siv
Koj xav tau dab tsi?
Cov no yog txhua ntu uas koj yuav xav tau los tsim Sentinel.
- Ib pawg Arduino. Kuv tau siv lub arduino UNO board uas tuaj nrog cov khoom siv uas kuv tau txais ntawm univeristy tab sis koj tuaj yeem siv qhov twg ntawm arduino koj nyiam.
- Ib lub khob cij. 400 lub ntsiab lus qhob cij yog txaus los txuas txhua lub hauv paus ntawm txoj haujlwm.
- Ib qho Ultrasound sib thooj sensor (HC-SR04)
- Lub micro servo motor SG90.
- Lub laser diode (KY-008)
- Ob lub teeb nyem LED (Kuv siv qhov pheej yig uas koj tuaj yeem pom ntawm 7-kaum ib)
- Txaus jumper cables txuas tag nrho cov kab ke
Kauj Ruam 2: Ua Qauv Qauv
Txhua feem tau ua qauv ntawm Inventor 2020 Kuv yuav txuas txhua daim duab ntawm ib feem hauv qab no. Yog tias koj muaj tsawg kawg 3 muaj cov tshuab luam ntawv nws yuav tsum tsis siv sijhawm ntau dua 6 teev los luam tawm txhua ntu. Yog tias koj tsuas muaj ib qho nws yuav siv sijhawm ntau dua (Txog 15 teev ntawm kev luam ntawv)
Kauj Ruam 3: Schematics ntawm Qhov System
Ntawm no peb tuaj yeem pom txhua qhov ntawm cov ntsiab lus uas yuav txuas nrog rau arduino.
Pawg tswj hwm arduino muaj 5V tus pin uas xa hluav taws xob tas li (peb tuaj yeem pom cov kab dub thiab liab me me hauv qab lo lus "hwj chim" ntawm arduino) cov no yog thawj ob kab ntawv uas peb txuas rau muab tag nrho cov kab ntawm lub khob cij nrog qhov zoo thiab kev sib txuas hauv av.
Kev txiav txim yuav ua li cas koj txuas cov khoom siv hluav taws xob tsis muaj teeb meem thiab cov txiaj ntsig yuav zoo ib yam. Tsuas yog xyuas kom txhua lub ntsiab lus txuas nrog tus pin raug vim tias tsis yog nws yuav ua rau yuam kev ntawm cov cai.
Thawj qhov yuav yog Proximity Sensor (HC-SR04). Nws muaj 4 tus pin, ib qho rau 5V kev sib txuas, ib qho rau kev txuas hauv av, thiab ob qho tshwj xeeb pins. Echo thiab Trig pin, qhov tseeb cov pins no yog lub luag haujlwm xa cov teeb liab ultrasound thiab tau txais nws tom qab nws thaws rov qab. Tus ECHO tus pin txuas nrog tus lej 4 ntawm arduino board, thiab tus pin TRIG txuas nrog tus lej tus lej 3.
Tom qab ntawd peb mus nrog Servo lub cev muaj zog, zoo li koj tuaj yeem pom nws muaj 3 kab. Thawj tus ntawm sab laug yog kev sib txuas hauv av, ib qho hauv nruab nrab yog 5V kev sib txuas thiab qhov kawg yog qhov uas tau txais lub teeb liab los ntawm arduino kom qhib thiab tua kom ib qho txuas nrog tus lej 5 ntawm arduino pawg thawj coj saib.
Tom qab ntawd peb tuaj yeem mus nrog 2 LED's uas yooj yim txuas rau hauv av ntawm lub khob cij thiab qhov zoo ntawm tus lej naj npawb 9 thiab 10 ntawm pawg thawj coj saib arduino.
Thaum kawg peb txuas lub laser diode. Qhov no ua haujlwm zoo ib yam li lub teeb ci LED (nws muaj tus pin nyob hauv nruab nrab tab sis rau kev lom zem ntawm txoj haujlwm no peb tsis siv nws) Txuas S sab rau tus lej tus lej 11 thiab "-" sab rau hauv av.
Cov no yuav ua tiav txhua qhov kev sib txuas ntawm arduino board. Tom qab qhov no koj tsuas yog yuav tsum txiav txim siab yuav ua li cas koj yuav mus rau lub zog arduino, siv lub ntsaws phab ntsa lossis txuas nws mus rau lub khoos phis tawj ntawm USB lossis txuas rau roj teeb.
Kauj ruam 4: Txoj Cai
Qhov coding yog ntu kawg ua ntej puntting peb Sentinel ua haujlwm. Nws tau piav qhia zoo hauv cov duab ntawm cov lej ib qib zuj zus.
Pom zoo:
Tsab ntawv tsa suab qhib cosplay tis siv Circuit Chaw Ua Si Qhia - Tshooj 1: 7 Cov Kauj Ruam (nrog Duab)
Motion Activated Cosplay Wings Siv Circuit Playground Express - Ntu 1: Qhov no yog ib feem ntawm ob qhov haujlwm, uas kuv yuav qhia koj kuv cov txheej txheem rau kev ua ob khub ntawm lub ntsej muag zoo nkauj. Thawj feem ntawm qhov haujlwm yog kev siv tshuab ntawm tis, thiab ntu ob yog ua rau nws hnav tau, thiab ntxiv tis
Tsab ntawv tsa suab qhib lub teeb hloov: 3 kauj ruam
Motion Activated Lamp Switch: Thaum twg los peb tawm ntawm peb lub rooj lossis chav, feem ntau peb tsis hnov qab tua lub teeb nyob ntawd. Qhov no ua rau poob hluav taws xob thiab nce hauv koj daim nqi hluav taws xob. Tab sis dab tsi, yog tias lub teeb tau tig mus txiav, tom qab koj tawm hauv chav. Yog hauv
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor: 5 Kauj Ruam
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb pom kev zoo: Lub suab qhib lub teeb hloov muaj ntau daim ntawv thov hauv tsev thiab hauv chaw ua haujlwm. Qhov no, txawm li cas los xij, tau ntxiv qhov zoo ntawm kev suav nrog lub teeb pom kev zoo, yog li ntawd, lub teeb no tsuas tuaj yeem ua rau thaum tsaus ntuj
Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer: 6 Cov Kauj Ruam (nrog Duab)
Tsab ntawv tsa suab Sensor qhib LED Sawb Nrog Timer: Nyob zoo txhua tus! Kuv zoo siab heev tau sau lwm cov ntawv qhia tam sim no. Qhov haujlwm no tau los thaum kuv raug hu los ntawm ib tus neeg qhia qhia-er (?!) (David @dducic) ob peb lub hlis dhau los thov kom qee qhov kev pab tsim. Yog li ntawm no yog qhov tseem ceeb tshwj xeeb: & q
Tsab ntawv tsa suab qhib Security Security Yard Kos Npe: 4 Cov Kauj Ruam (nrog Duab)
Motion Activated Security Yard Sign: Tsoos kev nyab xeeb kev nyab xeeb hauv tsev cov cim tsis ua dab tsi. Qhov tseeb lawv tsis tau hloov pauv ntau dua 30 xyoo dhau los. Txawm li cas los xij, lawv yog qhov muaj txiaj ntsig tiv thaiv tsuav lawv tso rau hauv qhov chaw pom tau zoo hauv koj lub vaj thiab saib zoo. Kuv hlub