Cov txheej txheem:

Ntsej Muag Khaub Ncaws Accessory: 4 Kauj Ruam
Ntsej Muag Khaub Ncaws Accessory: 4 Kauj Ruam

Video: Ntsej Muag Khaub Ncaws Accessory: 4 Kauj Ruam

Video: Ntsej Muag Khaub Ncaws Accessory: 4 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Lub Xya hli ntuj
Anonim
Image
Image

Ntau tshaj 1.3 lab tus tib neeg tuag txhua xyoo vim txoj kev sib tsoo. Ib qho loj ntawm cov xwm txheej no cuam tshuam nrog ob lub log tsheb. Ob lub log tsheb tau dhau los ua kev phom sij ntau dua li yav tas los. Raws li xyoo 2015, 28% ntawm tag nrho cov neeg tuag los ntawm txoj kev raug xwm txheej tau txuas nrog ob lub log tsheb. Kev qaug cawv, kev cuam tshuam, kev nrawm, teeb liab dhia thiab txoj kev npau taws yog ob peb qhov laj thawj vim li cas txoj kev thiaj dhau los ua qhov txaus ntshai hauv lub neej hauv nroog. Yog tias tsis nqis tes ua txoj kev sib tsoo yuav dhau los ua qhov thib tsib ua rau neeg tuag xyoo 2030.

Siv lub ntsuas cua thiab ntsuas lub ntsuas hluav taws xob ntsuas los ntawm Arduino peb tau daws qhov teeb meem no hauv daim ntawv ntawm cov khoom siv kaus mom hlau. Ib qho ntawm cov yam ntxwv tseem ceeb ntawm peb lub kaus mom hlau ntse siv lub koob yees duab Raspberry Pi tso rau tom qab ntawm lub kaus mom hlau txhawm rau tshuaj xyuas nws cov khoom noj txhawm rau txheeb xyuas yog tias lub tsheb muaj kev phom sij txaus ntshai. Thaum kuaj pom lub suab nrov tau qhib. Lwm txoj hauv kev ntawm lub kaus mom hlau yog kom tau txais kev pab tam sim rau cov neeg hnav lub kaus mom hlau thaum muaj xwm txheej. Qhov no suav nrog xa xov SOS rau lawv cov neeg tiv tauj thaum muaj xwm ceev nrog tus neeg hnav. Peb kuj tau tsim ib qho app uas cuam tshuam nrog thiab tau txais cov ntaub ntawv los ntawm Arduino thiab txheej txheem nws txhawm rau txhim kho kev ua haujlwm ntawm lub kaus mom hlau.

Kauj ruam 1: Cov ntaub ntawv

Cov ntaub ntawv tsis yog hluav taws xob:

1 Lub kaus mom hlau

1 Action lub koob yees duab lub taub hau mount

1 Hnab

Cov ntaub ntawv hluav taws xob:

1 Raspberry Pi 3

1 Arduino UAS

1 R-Pi Lub Koob Yees Duab

1 KY-031 Knock Sensor

1 GY-521 Accelerometer/Gyroscope

1 HC-05 Bluetooth module

1 USB kab

Hlau

Kauj ruam 2: Khoos phis tawj khoos phis tawj

Arduino teeb tsa
Arduino teeb tsa

Muab lub koob yees duab txiav lub taub hau nyob ib puag ncig lub kaus mom hlau raws li qhia thiab muab lub hnab ntim rau lub taub hau ntsaws rau tom qab ntawm lub kaus mom hlau.

Kauj Ruam 3: Teeb Raspberry Pi

Siv kev tshuaj xyuas duab thiab RPi lub koob yees duab, Raspberry Pi pom lub tsheb uas muaj kev phom sij nyob ze tom qab tus neeg siv thiab ceeb toom tus neeg siv los ntawm kev ua kom lub cev muaj zog muaj zog. Txhawm rau teeb tsa Raspberry PI thiab lub koob yees duab, peb xub tso peb cov cai rau Raspberry Pi thiab tom qab ntawd tsim kom muaj SSH txuas nrog nws. Peb mam li khiav peb cov cai ntawm Raspberry Pi ob qho tib si los ntawm kev khiav cov ntaub ntawv nab hab sej los ntawm lub davhlau ya nyob twg lossis los ntawm kev qhib ib tsab ntawv bash ntawm lub sijhawm ua haujlwm.

Kev ua haujlwm ntawm kev tshuaj xyuas cov duab tau ua tiav los ntawm kev siv OpenCV cov qauv kawm hauv tsheb. Peb mam li suav qhov nrawm ntawm lub tsheb, thiab los ntawm kev siv daim ntawv qhia kev nyab xeeb nyob deb thiab ntsuas nrawm ntawm lub tsheb, peb suav qhov kev nyab xeeb nyob deb ceeb toom rau tus neeg siv. Tom qab ntawd peb suav qhov ua haujlwm ntawm lub duab plaub ntawm lub tsheb uas xav tau thiab thaum kawg ceeb toom rau tus neeg siv thaum lub chaw hla dhau, uas qhia peb thaum lub tsheb nyob ze dhau.

Txhawm rau khiav cov ntawv sej kom raug, mus rau lub tswv yim ntawv tais ceev tseg hauv koj phau ntawv teev npe. Tom qab ntawd, khiav v2.py cov ntaub ntawv, (sau hauv Python 2) txhawm rau pib txheej txheem kev txheeb xyuas nrog ua ntej pub zaub mov video. Txhawm rau pib noj cov tswv yim los ntawm Pi Lub Koob Yees Duab thiab tom qab ntawd ua nws, khiav Python 2 cov ntaub ntawv, v3.py. Tag nrho cov txheej txheem yog phau ntawv nyob rau lub sijhawm no, tab sis tuaj yeem siv tau los ntawm kev muaj tsab ntawv bash uas sau raws li qhov xav tau.

Kauj Ruam 4: Teeb Arduino

Arduino teeb tsa
Arduino teeb tsa

Bluetooth module: Muab 5V rau HC-05 module thiab teeb tsa RX thiab TX pins li 10 thiab 11 thiab ua qhov sib txuas tsim nyog rau Arduino board.

GY 521 Gyroscope/Accelerometer: Txuas SCL rau A5 thiab SDA rau A4 thiab muab 5V thiab hauv av ntsuas qhov ntsuas siv ib qho ntawm tus pin hauv av.

KY 031 Knock sensor: Muab 5V rau lub khob ntsuas lub VCC tus pin thiab hauv av nws thiab txuas tus pin tso rau Digital I/O Pin 7 hauv Arduino.

Pom zoo: