Cov txheej txheem:
- Kauj Ruam 1: RASPBERRY PI Teeb
- Kauj Ruam 2: Ultrasonic Sensor
- Kauj Ruam 3: Kev Sib Txuas
- Kauj Ruam 4: Teeb VOICE ntawm Raspberry Pi
- Kauj ruam 5: CODING
- Kauj Ruam 6: Cov Lus Qhia Ua Tau Zoo
- Kauj Ruam 7: Xaus
Video: Raspberry Pi Voice Navigation Pab Cov Neeg Tsis Pom Kev: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nyob Zoo Hauv cov lus qhia no peb yuav pom yuav ua li cas raspberry pi tuaj yeem pab cov neeg dig muag siv cov lus qhia siv lub suab.
Ntawm no, Nrog kev pab los ntawm Ultrasonic sensor nkag mus ntsuas qhov deb peb tuaj yeem hais qhia cov neeg dig muag kom ua raws txoj hauv kev. Tsis tas li, Kuv tab tom npaj rau tus qauv pheej yig uas tuaj yeem daws qhov teeb meem no coj txoj hauv kev rau cov neeg dig muag.
Nov yog Lub Tswv Yim los siv lawv hauv raspberry pi, uas yog lub khoos phis tawj me me uas muaj txiaj ntsig zoo hauv peb xib teg. Kuv tseem yuav ua software sai sai hauv ubuntu os, Yog li tus neeg ntawd yam tsis muaj keeb kwm yav dhau los tuaj yeem siv nws los pab cov neeg dig muag.
Tsis tas li Yog tias koj muaj Lub Tswv Yim lossis cov lus pom zoo tuaj yeem tawm tswv yim.
Cov zis yog hauv qab no
"allowfullscreen>
Kauj Ruam 1: RASPBERRY PI Teeb
Tsis tas yuav nkim sijhawm ntau hauv cov lus qhia Kuv yuav nkag mus rau teeb tsa ntawm Raspberry pi ntawm no, Yog tias koj paub koj tuaj yeem hla cov kauj ruam no:
- Tom qab yuav raspberry pi, Rub lub os los ntawm ib qho ntawm qhov tau hais hauv qhov txuas no
- Mount Os Duab mus rau SD daim npav siv ib qho ntawm cov software txhim kho xws li Etcher.
- Siv ib qho ntawm cov khoom siv tso saib, teeb tus IP chaw nyob ntawm raspberry pi thiab teeb tsa VNC server hauv raspberry pi (NCO TSEG: koj kuj tseem tuaj yeem siv X-ming thiab putty ssh lossis lwm yam)
- Nruab VNC tus saib hauv koj lub khoos phis tawj thiab txuas raspberry pi mus rau LAN cable. Nkag mus rau tus IP chaw nyob thiab tus lej zais rau VNC (koj yuav raug coj mus rau Graphical interface ntawm raspberry pi hauv koj lub laptop lossis computer screen.
- Yog li koj tau npaj nrog koj li raspberry pi rau program yam yooj yim.
Yog tias koj tsis tuaj yeem ua raws cov txheej txheem teeb tsa no koj tuaj yeem saib kuv cov vis dis aus Kuv yuav tso nws sai sai no.
NCO TSEG:
- Nov yog txoj hauv kev kuv ua raws txuas raspberry pi rau lub khoos phis tawj lossis lub khoos phis tawj
- Yog tias koj tab tom muaj cais Saib Xyuas, Keyboard, thiab nas tshwj xeeb rau koj li raspberry pi, koj yuav tsis ua raws cov theem no, koj tuaj yeem hla ncaj qha.
Tom qab koj teeb tsa raspberry pi koj tuaj yeem txuas mus rau cov kauj ruam tom ntej kom ua raws nrog kuv …
Kauj Ruam 2: Ultrasonic Sensor
Lub ntsuas hluav taws xob ultrasonic yog lub suab ntsuas lub suab uas peb yuav siv nws los ntsuas qhov deb ntawm qhov teeb meem.
Nws tuaj yeem siv los ntsuas qhov kev ncua deb ntawm qhov teeb meem meej rau 2 meters (200 cm). Ua ntej mus rau kev tsim kho, cia peb pom nws ua haujlwm yooj yim.
Ua haujlwm:
Kev ua haujlwm yog qhov yooj yim heev raws li peb txhua tus paub tus lej nrawm yog Qhov nrug nrug los ntawm lub sijhawm.
- Qhov nrawm ntawm lub suab yog kwv yees li ntawm 343 meters/ sec.
- Lub sijhawm nruab nrab ntawm tus xa tawm thiab tus txais tau ntsuas los ntawm lub ntsuas.
- Yog li thov cov mis no nrug yog ntsuas los ntawm lub microcontroller.
Ntawm no peb tab tom muab lub sijhawm muaj txiaj ntsig rau peb cov raspberry pi thiab nyob ntawm qhov muaj txiaj ntsig ntawm lub sijhawm nws suav tus nqi ntawm qhov kev ncua deb ntawm qhov teeb meem.
Muaj 4 qhov tso tawm hauv Ultrasonic Sensor module:
2 rau lub zog hluav taws xob thiab ntxiv 2 yog Trigger thiab Echo:
Teeb:
Raws li lub npe qhia tias nws yuav ua rau tus xa tawm ntawm tus qauv rau qee lub sijhawm sib nrug.
Ncha:
Echo tus pin yuav tau txais qhov cuam tshuam lub suab yoj thiab muab rau tus tswj (ntawm no raspberry pi hauv qhov no)
Kauj Ruam 3: Kev Sib Txuas
Hauv raspberry pi muaj teeb tsa nyob ib ncig ntawm 40 tus pin hu ua GPIO (Lub Hom Phiaj Kev Nkag Siab Tawm Tswv Yim Pins). Ua qhov hluav taws xob faib hluav taws xob ua ntej txuas lub Ultrasonic sensor mus rau raspberry pi.
koj tuaj yeem ua raws qhov txuas no kom tau txais xov xwm ntau ntxiv txog kev sib txuas thiab xaiv cov resistors.
www.modmypi.com/blog/hc-sr04-ultrasonic-ra…
Ultrasonic ntsuas:
- Ntawm no peb txuas tus Trigger tus pin rau 23 thiab Echo rau 24 (BCM)
- Lub zog hluav taws xob rau lub ntsuas hluav taws xob ultrasonic tuaj yeem muab los ntawm 5v thiab GND ntawm raspberry pi.
Hais lus:
Tus hais lus lossis lub mloog pob ntseg yuav tsum txuas nrog lub suab ntawm raspberry pi. (Yooj yim li txuas lub mloog pob ntseg rau lub xov tooj lossis laptop lub suab nkaus)
Nco tseg:
Muaj 2 teeb ntawm Pin hom nyob rau hauv raspberry pi yog li ua kom pom tseeb ua ntej txuas lub ntsuas hluav taws xob ultrasonic mus rau Raspberry pi. Ntawm no kuv siv BCM tus pin tus pin rau txuas rau raspberry pi. Tsis tas li, koj kuj tseem tuaj yeem xaiv tus pin ntawm qhov koj xav tau.
Kauj Ruam 4: Teeb VOICE ntawm Raspberry Pi
Yog li rau txhua qhov nrug qis dua qee qhov tseem ceeb, peb yuav tsum qhia lub suab ceeb toom rau cov neeg dig muag.
Yog li muaj ntau qhov kev xaiv rau Lub Suab teeb tsa hauv raspberry pi. Ua nws yog ib lub suab nrov nrov rau Engish lossis ib yam lus ceeb toom lub suab tuaj yeem ua raws li qhov peb xav tau.
Yog tias koj xav tau qhov kev ncua deb hais lus zoo li "nrug yog 120cm Ceev faj.. !!!" peb xav tau ib txoj haujlwm xws li nws hais lus tawm lus rau lub suab.
PYTHON TEXT TO SPEECH:
Raws li raspberry pi sau cov ntawv nab nab nws yooj yim rau peb ua cov ntawv los hais lus hauv raspberry pi. Muaj ntau txoj hauv kev rau cov ntawv los hais lus hauv nab. Yeej muaj ob txoj hauv kev tseem ceeb ntawm cov ntawv los hais ib qho yog Online hom thiab Offline hom.
- Cov ntawv online los hais lus: nws xav tau kev sib txuas hauv is taws nem ruaj khov rau qhov no. Qhov tseeb ntawm cov no yog qhov siab heev. Qhov nrov yog google cov ntawv rau hais lus, amazon's, windows ib. Muaj API rau qhov no txhawm rau txuas rau tsab ntawv sej.
- OffilenText rau hais lus: Nws yog qhov yooj yim txhais tau tias. Nws tsis xav tau kev sib txuas hauv is taws nem. Kev meej meej tsawg me ntsis thiab tseem yog neeg hlau thiab tuaj yeem siv ua lus Askiv nkaus xwb.
Ntawm no kuv tau siv cov ntawv offline los hais lus txiav txim siab qhov tseeb tias peb tsis tuaj yeem ua kom muaj kev sib txuas hauv internet ruaj khov hauv txhua qhov chaw.
Saib hauv lub vev xaib no kom paub meej ntxiv txog: https://elinux.org/RPi_Text_to_Speech_ (Speech_Synt …
TXAWV TSHAWB XEEB TSHUAB hauv RASPBERRY PI (PYTTX thiab espeak):
- Rub tawm cov ntawv py los hais lus hauv raspberry pi los ntawm qhov txuas hauv qab no:
- Unzip daim nplaub tshev los ntawm kab lus hais kom ua kab lossis ntawm GU npo.
- Hauv lub davhlau ya nyob twg mus rau daim nplaub tshev uas koj muaj cov ntaub ntawv teeb tsa.py los ntawm kev nkag mus rau tus lej "cd pyttsx-1.1/" hauv lub davhlau ya nyob twg.
- Nruab qhov teeb tsa los ntawm kev ntaus cov cai hauv qab no "sudo python setup.py install"
- Tsis tas li los ntawm lub davhlau ya nyob twg nruab lub espeak module los ntawm kev ntaus "sudo apt-get install espeak"
cd pyttsx-1.1/
sudo python setup.py nruab sudo apt-tau nruab espeak
Yog li peb tau teeb tsa lub suab hauv raspberry pi thaum kawg. Yog li peb tau npaj sau cov program thiab pom cov txiaj ntsig.
Kauj ruam 5: CODING
Yog li peb tau los txog qhov kawg ntawm qhov no peb tau npaj kom tau txais peb cov raspberry pi ua haujlwm.
Yog li hauv lub voj, peb yuav tshuaj xyuas qhov kev ncua deb ntawm qhov teeb meem. Yog tias nws siab dua qhov kev txwv nyob deb peb yuav ceeb toom rau tib neeg.
Github txuas>
CODE:
ntshuam RPi. GPIO ua GPIOimport lub sij hawm ntshuam pyttsx cav = pyttsx.init () GPIO.setmode (GPIO. BCM)
TZS = 23
ECHO = 24 thaum 1:
GPIO.setmode (GPIO. BCM)
luam tawm "Kev Ntsuas Kev Ncaj Ncees" GPIO.setup (TRIG, GPIO. OUT) GPIO.setup (ECHO, GPIO. IN)
GPIO.output (TRIG, Cuav)
luam tawm "Tos Rau Sensor Kom Teeb" lub sijhawm.sleep (2)
GPIO.output (TRIG, Tseeb)
time.sleep (0.00001) GPIO.output (TRIG, Tsis tseeb)
thaum GPIO.input (ECHO) == 0:
pulse_start = sijhawm.time ()
thaum GPIO.input (ECHO) == 1:
pulse_end = time.time () pulse_duration = pulse_end - mem tes_start
nrug = mem tes_duration * 17150
nrug = puag ncig (nrug, 2)
sau "Distance:", nrug, "cm"
yog nrug <= 10: engine.say ("Alert") engine.runAndWait () time.sleep (2) GPIO.cleanup ()
Txuag cov cai no hauv raspberry pi thiab ua tiav txoj cai tsim lub davhlau ya nyob twg los ntawm kev nkag mus
kuj, koj tuaj yeem hloov cov ntawv los ua suab raws li koj xav tau.
sudo nab hab sej name.py
Qhov twg sudo piav qhia txog kev tswj hwm lub zog hauv raspberry pi.
Kauj Ruam 6: Cov Lus Qhia Ua Tau Zoo
Cov vis dis aus tso tawm tau muab tso rau sab saum toj ntawm cov lus qhia no ua rau saib nws.
Kauj Ruam 7: Xaus
Nov yog Kuv Lub Tswv Yim los ua ib yam dab tsi rau cov neeg dig muag. Yog tias koj muaj lus pom lossis tswv yim tawm tswv yim, nws tuaj yeem cuam tshuam rau lub neej ntawm cov neeg dig muag.
Cov neeg uas tsis muaj raspberry pi tuaj yeem sim cov no nrog lawv lub khoos phis tawj thiab Arduino lossis yooj yim nrog lub khoos phis tawj nkaus xwb los ntawm kev ua haujlwm software simulator uas yuav tsim lub suab rau qhov nias ntawm tus yuam sij. Kuv tau tsim kom koj tuaj yeem pom qhov ua tau ntawm qhov no.
Tsis tas li Yog tias koj tau sim ib qho ntawm lwm cov ntawv los hais lus lossis lwm yam lus ua siab zoo.
Tsis tas li, mus ntsib kuv lub vev xaib ntawm www.engineerlookts.com rau ntau yam thev naus laus zis ntsig txog cov haujlwm.
Kuv yuav tso kuv cov software sim sim ntawm lub qhov rais version sai no hauv kuv Github ntawm no:
Ua tsaug rau kev nyeem ntawv
Nrog Vajtswv foom koob hmoov pub rau cov teeb meem ntawm cov neeg muaj peev xwm sib txawv ua tiav.
Hais txog
(N. Aranganathan)
Pom zoo:
AI Pab Qhov Muag (Lub Khoos Phis Tawj Pom Kev Pom Kom Nco Qab Cov Neeg Ua Haujlwm kom Tsom iav Kev Nyab Xeeb): 4 Cov Kauj Ruam
AI Pab Qhov Muag (Lub Koob Yees Duab Lub Koob Yees Duab kom ceeb toom rau cov neeg ua haujlwm kom hnav tsom iav kev nyab xeeb): Nov yog qhov ua piv txwv ntawm lub kaw lus. Thaum lub kaw lus pom tias tau khaws cov laum, nws yuav txiav tawm qhov ceeb toom tsom iav kev nyab xeeb. Txhawm rau sawv cev rau qhov muaj kev ceeb toom tsom iav kev nyab xeeb, ciam teb ntawm RGB duab yog xim liab hauv qhov kev nthuav qhia v
ScanUp NFC nyeem ntawv/sau ntawv thiab kaw lub suab rau qhov muag tsis pom, tsis pom kev thiab txhua tus neeg ntxiv: 4 Cov Kauj Ruam (nrog Duab)
ScanUp NFC Nyeem Ntawv/sau ntawv thiab kaw lub suab rau qhov muag tsis pom, Tsis pom kev thiab txhua tus neeg ntxiv: Kuv kawm kev tsim qauv tsim thiab txoj haujlwm yog ua haujlwm ntawm kuv lub semester. Lub hom phiaj yog txhawb nqa cov neeg tsis pom kev thiab cov neeg dig muag nrog cov khoom siv, uas tso cai sau cov suab hauv WAV hom ntawm SD daim npav thiab hu cov ntaub ntawv ntawd los ntawm NFC lossis. Yog li hauv
Tus Neeg Tsis Zoo Google Lub iav/Pab Rau Cov Uas Muaj Qhov Pom Pom: 5 Kauj Ruam (nrog Duab)
Tus Neeg Tsis Zoo Google Lub iav/Pab Rau Cov Uas Muaj Qhov Pom Qhov Pom: Abstract: Txoj haujlwm no ntws cov vis dis aus los ntawm lub koob yees duab ntses mus rau lub taub hau hnav. Qhov tshwm sim yog qhov pom dav dua ntawm thaj chaw me me (cov duab piv rau 4 "screen 12" deb ntawm koj lub qhov muag thiab tawm ntawm 720
Pom Qhov Pom Pom Pom Pom Lub Koob Yees Duab (TfCD): 15 Kauj Ruam (nrog Duab)
Pom Qhov Pom Pom Pom Pom Lub Koob Yees Duab (TfCD): Cov kev pabcuam paub uas tuaj yeem paub txog kev xav, ntsej muag ntawm tib neeg lossis cov khoom yooj yim tam sim no tseem nyob rau theem pib ntawm kev txhim kho, tab sis nrog kev kawm tshuab, thev naus laus zis no tau nce zuj zus. Peb tuaj yeem cia siab tias yuav pom ntau ntxiv ntawm cov khawv koob no hauv
Lub Teeb Pom Kev Pom Kev Pom Zoo/ Handheld Photograpy Teeb: 7 Cov Kauj Ruam (nrog Duab)
Intimate Video Light/ Handheld Photograpy Light: Kuv paub koj xav li cas. Los ntawm "intimate," Kuv txhais tau tias teeb pom kev nyob ze rau qhov xwm txheej teeb pom kev nyuaj-tsis tas yuav rau "xwm txheej zoo." (Txawm li cas los xij, nws tuaj yeem siv rau qhov ntawd ib yam nkaus …) Raws li New York City tus kws yees duab-lossis