Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Sib dhos Rover
- Kauj ruam 2: Raspbian
- Kauj ruam 3: OpenVino
- Kauj ruam 4: Rub tawm Txoj Cai
- Kauj Ruam 5: FollowMe (Python)
- Kauj Ruam 6: Rub Cov Qauv
- Kauj ruam 7: Arduino
- Kauj ruam 8: GUI
- Kauj ruam 9: Kev pabcuam
- Kauj ruam 10: Nws yog! Muaj Kev Lom Zem
Video: MyPetBot (Tus Bot uas Follows Koj): 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Ai yog ib daim ntawv thov ua lej zoo tshaj plaws. Nws yog ib pawg ntawm kev ua haujlwm hauv tsev kawm qib siab kom ua tiav qhov txiaj ntsig koj tab tom nrhiav. Luckily muaj ntau qhov qhib qhov cuab yeej uas tso cai rau peb siv nws.
Kuv xub muaj lub tswv yim ntev dhau los thaum kuv tau ua haujlwm ntawm dej tsaws tsag de-qhib los ntawm cov neeg hla pov. Kuv tau siv ultrasound ntsuas thiab pom lig dhau tias lawv tsis ua haujlwm zoo thaum lawv ntub … Qhov ntawd tsis yog kev lom zem. Peb tau siv qhov khawm loj uas tib neeg yuav nias yog tias lawv xav hla. Nws ua tiav zoo vim tias nws kub thiab tib neeg nyiam ntub, tab sis qhov teeb meem nyob hauv kuv lub taub hau … Yuav ua li cas thiaj paub tib neeg thiab qhib kev tawm tsam.
Kuv tab tom qhia zaj dab neeg no vim kuv xav taw qhia tias lub hauv paus ntsiab lus no tuaj yeem siv rau tons ntawm lwm cov ntawv thov! Ua raws koj lub ntsej muag nrog cov khoom ua si tsuas yog ib qho ntawm lawv. Rau kev sib tham sib teeb tsa koj tuaj yeem ua txhua yam. Koj tuaj yeem siv tus qauv txhawm rau txheeb xyuas yog tias lub ntsej muag luag ntxhi. Koj tuaj yeem suav tus naj npawb ntawm cov dev hauv chaw ua si. Koj tuaj yeem kaw koj qhov muag tsis pom thaum tib neeg hla mus. Los yog… ua tus tswj hwm rau koj lub hauv paus Nintendo ntawm koj lub cev txoj haujlwm…. Koj tuaj yeem rub tawm ntau lwm yam qauv Ai uas ua txhua yam khoom.
Muaj ob peb qhov kev qhia yuav ua li cas kom Ai pom zoo ua haujlwm nrog raspberry pi. Kuv nyob ntawm no los qhia koj yuav ua li cas ua lub qhov sib koom ua ke rau hauv chav ua haujlwm tus kheej. Sai li sai tau koj tus neeg hlau khau raj, nws yuav pib cov haujlwm tsim nyog.
Khoom siv
- Parallax neeg hlau: Kuv xaiv tus neeg hlau no vim tias kuv tau tso nws ib puag ncig, tab sis txhua tus neeg hlau uas tuaj yeem tswj tau nrog arduino yuav ua haujlwm.
- Raspberry pi: Kuv pom zoo tsawg kawg raspberry pi 3B+.
- Intel Neural Stick: Tus lej nkag mus los ntawm ib tus lej mus rau 8. Koj xav tau ib qho yog tias koj xav ua Ai hauv raspberry pi.
- Power Bank: Txoj hauv kev yooj yim tshaj plaws los tswj lub zog. Ua haujlwm nrog raspberry pi 3B+, koj yuav xav tshuaj xyuas nws ua haujlwm nrog pi 4.
- Picamera: Kuv nyiam siv picamera siv lub usb.
Kauj Ruam 1: Sib dhos Rover
Lub ntsiab lus ntawm kev qhia yog feem ntau yog hais txog software, yog li kuv tsis xav mus ntau rau hauv cov ntsiab lus ntawm rover. Nws ua haujlwm nrog tus neeg hlau no, tab sis nws tuaj yeem ua haujlwm tiag tiag nrog lwm yam khoom siv. Tsis tas yuav tsum yog lub rover, koj tuaj yeem siv qhov no rau lub koob yees duab ntsuas lub suab.
- Nrhiav koj tus kheej lub tsheb tswj Arduino.
- Tight qhwv lub hwj chim txhab nyiaj rau nws.
- Tight qhwv ib raspberry pi rau nws.
- Kaw lub picamera nrog ntawm lub kaum me ntsis mus rau saum.
- Txuas txhua yam ua ke.
- Voila!
Kauj ruam 2: Raspbian
Kuv siv raspberry pi, tab sis tsis muaj laj thawj tsis siv lwm linux… txog koj. Kuv tuaj yeem tso lub ntsaws thiab ua duab rau hlawv daim npav SD, Kuv yuav mus rau nws yog tias muaj neeg txaus txaus.
Nruab Raspbian: Koj tuaj yeem nruab Raspbian Buster Lite. Peb yuav tsis siv lub desktop … Tsuas yog ssh Secure Plhaub txuas.
Txuas rau koj Pi: Ua ntej koj tuaj yeem txuas rau koj tus raspberry pi nrog Ethernet txuas
Teeb koj lub wifi: Tam sim no koj tuaj yeem teeb tsa koj li kev sib txuas wireless
Kauj ruam 3: OpenVino
OpenVino yog lub tsev qiv ntawv zoo txhawb los ntawm Intel. Lawv tau ua tiav txoj haujlwm zoo ntawm kev suav ua piv txwv cov qauv thiab lawv tau ua rau feem ntau ntawm ai moj khaum sib xws. Koj xav tau lub tsev qiv ntawv no rau Intel Neural Stick.
Python3 kev teeb tsa: Koj yuav tsum teeb tsa sej 3.
Kev teeb tsa OpenVino: Thaum qhov no ua tiav koj yuav pom kab "[setupvars.sh] OpenVINO ib puag ncig pib" txhua zaus koj txuas rau raspberry pi.
OpenVino yog qhov txuas ntxiv ntawm opencv. Txhawm rau sim nws, koj tuaj yeem tso sej 3 thiab ntshuam cv2.
ntaus rau hauv lub plhaub:
nab hab sej 3
ntaus rau hauv sej:
- ua cv2
- cv2._ version_
Kab kawg yuav tsum rov qab '4.1.2-openvino' lossis ib qho version ntawm openvino. yog tias hais tias opencv koj lub installation tsis ua haujlwm …
Kauj ruam 4: Rub tawm Txoj Cai
Ua ntej, peb nruab git. Ntaus rau hauv plhaub:
sudo apt-tau nruab git
Tom qab ntawd peb tuaj yeem txav mus rau Cov ntawv tais ceev tseg thiab rub tawm cov cai:
- cd ~/Cov ntaub ntawv/
- git clone
Kauj Ruam 5: FollowMe (Python)
Nov yog qhov koj xav ua si nrog. Ua yog ua raws koj! Ua rau koj ntshai koj! Ua raws li koj tus dev! Ua kom nws paub lub ntsej muag qhia !! Harase koj tus miv !!! Txhua yam koj xav tau.
Koj yuav pom plaub lub ntsiab, cov ntawv tais ceev tseg: Arduino, Deployment, Player thiab FollowMe:
Arduino: Ntau ntxiv txog qhov ntawd ntawm ntu tom ntej
Deployment: Nov yog qhov uas kuv tso tus neeg siv interface. Tam sim no kuv tau sau qhov pib yooj yim/nres khawm thiab lub koob yees duab me me saib nrog kev tswj tsuas yog kev lom zem xwb.
Player: Txhais kom siv hauv koj lub PC PC. Txhawm rau tshuaj xyuas qhov tawm ntawm bot!
FollowMe: Tus qauv uas ua rau muaj kev lom zem tiag tiag
Kuv yuav muab cov ntsiab lus ntxiv ntawm github, yog li tsuas yog muaj ib qho chaw hloov tshiab. Nov yog qhov chaw rau cov cai
Kauj Ruam 6: Rub Cov Qauv
Cov qauv rau kev txiav txim siab tsis suav nrog hauv cov cai vim tias lawv loj heev. Tab sis koj tuaj yeem pom ntau tus piv txwv siv OpenVino tus qauv Zoo
Koj tuaj yeem siv tus qauv rub tawm lossis ncaj qha pov qhov txuas no. Hauv kuv qhov xwm txheej kuv siv tsis tau tus qauv rub tawm los ntawm kuv tus raspberry pi kev teeb tsa …
Tom qab ntawd luam tus qauv rau hauv daim nplaub tshev hu ua Qauv nrog:
- cd ~/Cov ntaub ntawv/FollowMe
- mkdir Cov Qauv
- cd Qauv
- wget
- wget
Koj ib txwm xav tau.xml thiab.bin.
Koj tuaj yeem rub tawm ib qho qauv uas koj xav tau … Tab sis koj yuav tau hloov pauv txoj cai. Muaj kev lom zem!
Kauj ruam 7: Arduino
Peb yuav tsum rub tawm cov cai ntawm cov kauj ruam dhau los. Cov cai rau arduino nyob hauv nws!
Txoj cai txhais tau tias yuav tsav ob txoj haujlwm txuas mus ntxiv, yog tias koj xaiv qhov sib txawv koj yuav tsum hloov kho txoj cai.
Nws yeej ua ob yam. Nws sib txuas lus nrog lub khoos phis tawj thiab nws ua haujlwm rau servos ntawm qhov xaiv tau nrawm.
Kuv tuaj yeem ua rau peb tso tawm raspberry pi ncaj qha los tswj lub cav … tab sis arduinos ua haujlwm tau zoo dua (Lawv muaj lub tshuab hluav taws xob tiag tiag). Tsis tas li, Kuv xav kom tshem tawm cov raspberry pi ntau li ntau tau kom ua rau pom kev nrawm dua.
Kauj ruam 8: GUI
Tsis muaj dab tsi zoo nkauj … Tsis tau. Kuv yuav ntxiv qee yam khoom xws li saib nyob lossis tswj kev txav chaw. Tab sis lub sijhawm no, pib yooj yim thiab nres yuav ua qhov dag.
Yog tias koj xav sim nws, koj yuav tsum tso nws los ntawm cov npe FollowMe Qib thiab tom qab ntawd hu nws los ntawm sej 3:
- cd ~/Cov ntaub ntawv/FollowMe
- python3 Deployment/FollowMe.py
Tom qab ntawd koj tuaj yeem nkag mus rau lub interface hauv koj tus browser los ntawm kev ntaus ntawv:
192.168.0.113:8000
nrog rau tus IP chaw nyob yog lawm.
Kuj tseem muaj cov vis dis aus saib nrog kev tswj hwm … tab sis tsis yog nrog kev ua haujlwm
python3 Deployment/StreamVideo.py
Kauj ruam 9: Kev pabcuam
Nov yog qhov ua rau Rover ua haujlwm los ntawm nws tus kheej. Qhov kev pabcuam yog ib qhov program khiav hauv qab ntawm lub computer yam tsis muaj tus siv. Ua kom ntseeg tau tias txhua yam koj tus PATHS tsis raug cai thiab koj muaj txoj cai raug yog tias koj siv cov ntaub ntawv twg thiab cov kev pabcuam yuav ua haujlwm zoo.
Txhawm rau khiav tsab ntawv nab nab raws li kev pabcuam koj yuav tsum tau siv tsab ntawv hauv cov ntaub ntawv pabcuam. Cov ntaub ntawv pabcuam yog nyob rau hauv tus lej rub tawm los ntawm git hauv daim nplaub tshev xa tawm. Lub npe yog FollowMe.service.
Txhawm rau luam nws ntaus cov hauv qab no hauv lub plhaub:
sudo cp ~/Cov Ntaub Ntawv/FollowMe/Deployment/FollowMe.service/etc/systemd/system/
Thawj zaug koj theej cov ntawv koj xav tau hloov kho systemctl… lossis rov pib dua:
sudo systemctl daemon-reload
Thiab pib:
sudo systemctl pib FollowMe
Koj kuj tseem tuaj yeem siv cov lus txib nres, ua haujlwm thiab tsis ua haujlwm. Ob qhov kawg yog rau kev hloov pauv tas li ntawm lub xeev.
Kev piav me ntsis….
Openvino xav tau qee txoj hauv kev ntxiv hauv cov kab ke hloov pauv kom nws ua haujlwm. Hmoov tsis zoo, kev teeb tsa ib txwm yuav tsis ua haujlwm raws li kev pabcuam. Yog li koj xav tau cov ntawv no los teeb tsa qhov sib txawv.
Daim ntawv ceeb toom tias kuv teeb tsa yog rau nab hab sej 3.7 yog li ntawd muaj qhov sib txawv uas koj yuav xav tau hloov kho … Hmoov zoo!
Cov ntaub ntawv no hais txog tsab ntawv nab nab hauv txoj kev tsis meej:
/home/pi/Documents/FollowMe/Deployment/FollowMe.py
Kauj ruam 10: Nws yog! Muaj Kev Lom Zem
Lus tawm? zoo siab txais tos
Pom zoo:
Covid-19 Daim npog qhov ncauj uas qw ntawm koj yog tias koj kov koj lub ntsej muag: 4 kauj ruam
Covid-19 Daim npog qhov ncauj uas qw ntawm koj yog tias koj kov koj lub ntsej muag: Tsis tuaj yeem nres kov koj lub ntsej muag? Khaws cov khoom siv hluav taws xob no mus rau lub npog ntsej muag uas koj muaj thiab koj yuav nco ntsoov tas li tsis txhob ua qhov ntawd
ARUPI - Tus Nqi Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: 8 Kauj Ruam (nrog Duab)
ARUPI - Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: Cov lus qhia no tau sau los ntawm Anthony Turner. Txoj haujlwm tau tsim los nrog ntau qhov kev pab los ntawm Shed hauv Tsev Kawm Ntawv ntawm Kev Suav, University of Kent (Mr Daniel Knox tau pab zoo!)
Keyminder! Tus Ntaus Uas Ua Rau Koj Tsis Xiam Koj Cov Yuam!: 3 Kauj Ruam (nrog Duab)
Keyminder! Tus Ntaus Uas Ua Rau Koj Tsis Poob Koj Cov Yuam!: Cov cuab yeej no pab koj kom tsis txhob poob koj cov yuam sij! Yog tias koj zoo li kuv thaum koj rov los tsev los ntawm kev ua haujlwm koj tam sim poob koj cov yuam sij tom qab qhib koj lub qhov rooj thiab koj tos kom txog rau hnub tom ntej ua ntej koj yuav tsum tawm mus nrhiav lawv. Yog, tej zaum koj yuav muaj
Tsim Koj Tus Kheej Tus Kheej Robot !!! - Qhia, Duab, thiab Yees Duab: 58 Kauj Ruam (nrog Duab)
Tsim Koj Tus Kheej Tus Kheej Robot !!! - Tutorial, Duab, thiab Video: EDIT: Xav paub ntau ntxiv txog kuv cov phiaj xwm txheeb xyuas kuv lub vev xaib tshiab: narobo.comKuv tseem ua kev sab laj rau neeg hlau, tshuab me me, thiab tshwj xeeb cov haujlwm/cov khoom lag luam. Txheeb tawm kuv lub vev xaib - narobo.com kom paub meej ntxiv
Tsim Tus Me Nyuam Me Me: Ua Lub Ntiaj Teb Me Me Lub Log Uas Neeg Hlau Nrog Tus Tuav: 9 Kauj Ruam (nrog Duab)
Tsim Tus Neeg Hlau Me Me: Ua Lub Ntiaj Teb Me Me Lub Log Uas Neeg Hlau Nrog Gripper.: Tsim kom muaj 1/20 cubic inch neeg hlau nrog tus tuav uas tuaj yeem nqa thiab txav cov khoom me. Nws yog tswj los ntawm Picaxe microcontroller. Lub sijhawm no, kuv ntseeg tias qhov no yuav yog lub ntiaj teb cov neeg hlau uas muaj log tsawg tshaj plaws nrog tus tuav. Qhov ntawd yuav tsis muaj kev ntseeg ch