Cov txheej txheem:
- Kauj Ruam 1: Sau Cov Khoom & Cov Cuab Yeej
- Kauj ruam 2: Flashing Raspbian rau Micro SD Card
- Kauj Ruam 3: Fais Fab Koj Raspberry Pi
- Kauj Ruam 4: Txhim Kho GassistPi
- Kauj Ruam 5: Kev Kho Tus Kheej ntawm Koj GassistPi
- Kauj Ruam 6: Cov ntaub ntawv kaw
- Kauj Ruam 7: Xaus
Video: GassistPi (Google Tsev hauv Raspberry Pi): 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Google Assistant rau Raspberry Pi!
Kauj Ruam 1: Sau Cov Khoom & Cov Cuab Yeej
- Raspberry Pi 3 Model B (Koj tseem tuaj yeem siv lwm yam raspberry pi version tab sis koj xav tau Wi-nkaus los khiav qhov no)
- 8GB Micro SD daim npav
- Micro SD Card Nyeem Ntawv
- USB Microphone
- USB Powered Hais Lus
- 3.5mm Jack Splitter
- 5V 2A USB Lub Hwj Chim Adapter
- Micro USB Cable
- Poj niam rau Txiv Neej Jumper Cables
- Cov qhob cij
- LEDs (xim twg koj xav tau)
- Phillips Ntsia Hlau
- Phillips Screws
- Daim Kab Xev Hluav Taws Xob
- Soldering Hlau & Sawv
- Soldering Lead
- Hlau Cutter
- Ketchup Jug (Kuv twb tau txiav nws:))
- 100/150/330 ohms resistor
Kauj ruam 2: Flashing Raspbian rau Micro SD Card
- Download Raspbian lossis Raspbian Lite
- Rub tawm & Nruab Etcher
- Txuas lub Micro SD Card Reader nrog Micro SD Card hauv nws.
- Qhib Etcher
- Nyem rau Xaiv Duab thiab xauj qhov chaw rub tawm ntawm Raspbian/RaspbianLite Zip
- Nyem rau Xaiv Drive thiab nrhiav tus tsav ntawm koj daim npav micro sd daim npav.
- Thaum kawg nyem rau ntawm "Flash!"
Qhov no tuaj yeem siv sijhawm 10-30 feeb yog li zaum rov qab, so kom txaus thiab noj ncuav qab zib:)
Kauj Ruam 3: Fais Fab Koj Raspberry Pi
Tam sim no tom qab peb nyem daim npav micro sd peb tam sim no tuaj yeem tuaj yeem khau raj raspberry pi rau raspbian:)
Txuas lub raspberry pi rau koj lub monitor nrog lub hdmi cable.
Kauj Ruam 4: Txhim Kho GassistPi
Tam sim no tom qab koj khau raj koj li raspberry pi koj yuav tam sim no mus rau Github Cov Chaw Cia Khoom ntawm GassistPi thiab koj kuj tseem tuaj yeem ua raws phau ntawv qhia nyob ntawd.
1. Qhib davhlau ya nyob twg thiab clone qhov chaw cia khoom
git clone
2. Hloov kho OS thiab Kernel
sudo apt-tau hloov tshiab
sudo apt-tau nruab raspberrypi-kernel
3. Rov pib dua koj lub Raspberry Pi Tom qab pib ua haujlwm qhib koj lub davhlau ya nyob twg dua thiab ua raws cov lus txib no vim tias peb yuav siv usb mic thiab lub mloog pob ntseg onboard (ntsaws koj lub USB MIC THIAB SPEAKER ua ntej tshaj tawm qhov hais kom ua)
sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
sudo /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh
4. Rub cov ntawv pov thawj-.json (xa mus rau daim ntawv no rau kev tsim daim ntawv pov thawj
5. Muab cov ntawv.json tso rau hauv/home/pi directory
6. Hloov nws mus rau assistant.json
7. Siv cov kab ib kab rau nruab Google Assistant thiab Snowboy kev cia siab Pi3 thiab Armv7 cov neeg siv siv "gassist-installer-pi3.sh" installer thiab Pi Zero, Pi A thiab Pi 1 B+ cov neeg siv "gassist-installer-pi" -zero.sh "installer. Snowboy installer yog ib qho rau ob leeg
7.1 Ua cov installers ua tiav
sudo chmod +x /home/pi/GassistPi/scripts/gassist-installer-pi3.sh
sudo chmod +x /home/pi/GassistPi/scripts/gassist-installer-pi-zero.sh sudo chmod +x /home/pi/GassistPi/scripts/snowboy-deps-installer.sh
7.2 Ua cov installers (Khiav lub snowboy installer ua ntej. Tsis txhob maj thiab tsis txhob khiav lawv ib txhij, Khiav ib qho tom qab sib
sudo /home/pi/GassistPi/scripts/snowboy-deps-installer.sh
sudo /home/pi/GassistPi/scripts/gassist-installer-pi-zero.sh sudo /home/pi/GassistPi/scripts/gassist-installer-pi3.sh
8. Luam theej tus google pabcuam kev lees paub txuas los ntawm lub davhlau ya nyob twg thiab tso cai siv koj li Google account
9. Luam cov cai tso cai los ntawm browser mus rau lub davhlau ya nyob twg thiab nias nkag mus
10. Tsiv mus rau ib puag ncig thiab sim google tus pabcuam raws li koj lub rooj tsavxwm
qhov chaw env/bin/qhib
google-assistant-demo (hais lo lus hot "ok google") lossis qhov chaw env/bin/qhib googlesamples-assistant-pushtotalk
11. Ua kom peb tus pabcuam google autostart thaum raspberry pi nyob ntawm kev ua haujlwm cov lus txib no
sudo chmod +x /home/pi/GassistPi/scripts/service-installer.sh
sudo /home/pi/GassistPi/scripts/service-installer.sh sudo systemctl pab gassistpi-ok-google.service sudo systemctl pab kom snowboy.service sudo systemctl pib gassistpi-ok-google.service sudo systemctl pib snowboy.service
12. Rov pib dua koj lub raspberry pi thiab koj tus pabcuam google yuav pib dua
Kauj Ruam 5: Kev Kho Tus Kheej ntawm Koj GassistPi
Txhawm rau hnov qhov tiag "Google Tsev" peb yuav ntxiv cov kev cai suab thiab coj lub teeb teb.
Hloov suab
Download kuv lub suab nrov
1. Muab lub suab rub tawm tso rau hauv/home/pi/GassistPi/sample-audio-files
2. Tam sim no mus rau/home/pi/GassistPi/src ces qhib main.py
3. Nrhiav & Hloov Startup.wav rau on.wav
4. Nrhiav & Hloov Fb.wav los teb.wav
5. Ces Txuag
Ntxiv LED Teeb Teb
Hauv GassistPi Pin 05 & Pin 06 yog Google tus pab mloog thiab teb tab sis peb yuav ntxiv ib qho ntxiv coj los qhia rau peb paub yog tias google pabcuam tau pib
Hauv main.py peb yuav ntxiv #Indicator Pins
GPIO.setup (13, GPIO. OUT)
GPIO.output (13, GPIO. HIGH)
Hauv ON_CONVERSATION_ END_TURN_STARTED ntxiv kab no
GPIO.output (13, GPIO. LOW)
Hauv ON_CONVERSATION_ END_TURN_STARTED ntxiv kab no
GPIO.output (13, GPIO. HIGH)
Koj tuaj yeem rub tawm main.py thiab hloov koj lub main.py hauv/home/pi/GassistPi/src
Kauj Ruam 6: Cov ntaub ntawv kaw
Kuv paub tias koj tuaj yeem ua lub thawv zoo nkauj dua:) tab sis kuv yuav qhia koj yuav ua li cas kuv ua lub thawv rau kuv tus Google Assistant:)
Kuv hloov cov leds los ntawm daim ntawv qhia zaub mov rau poj niam rau poj niam jumper cables.
Kuv txiv pab kuv kom pom cov ntoo seem rau lub hauv paus thiab nruab nrab rau lub thawv ntawv.
Lub hauv paus ntoo kuv txuas 1 tus hais lus rau nws.
Qhov nruab nrab ntoo kuv txuas 2 tus hais lus hauv qab thiab raspberry pi nyob rau sab saum toj
Cov leds, kuv siv cov kua nplaum kub txhawm rau muab nws tso rau saum lub thawv ntawv
Txog kev hais lus qhov thiab lub qhov taub microphone, kuv siv kuv cov hlau txuas los tso qhov rau hauv qab ntawm kuv lub thaiv thiab 2 qhov nyob rau sab saum toj.
Kauj Ruam 7: Xaus
Txoj haujlwm no raug nqi tsawg dua $ 50 (Php 2563.70) los ua.
Qhov phiaj xwm GassistPi no tseem tuaj yeem pab koj ua kom koj lub tsev nyob zoo. Nws tuaj yeem ua rau On/Off relay.
Kuv kuj ntxiv LightshowPi (https://lightshowpi.org/) hauv qhov haujlwm no yog li thaum kuv ua suab paj nruag ntawm nws lub teeb yuav ua raws nws:)
Yog tias qhov haujlwm no txaus txaus thov pov npav qhov nkag rau "Raspberry Pi" & "Wireless" contest:) Ua tsaug!
Pom zoo:
Siv Kev Cia Siab Lub Hauv Paus txuas ntxiv txhawm rau Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Txoj Cai Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: 11 Kauj Ruam
Siv Kev Cia Siab Lub Hauv Paus Txuas Ntxiv kom Nrhiav Lub Tuam Tsev Tsis Ua Haujlwm Ua Haujlwm Hauv Koj Tsev Neeg Tsob Ntoo ntawm Kev Tshawb Nrhiav Tsev Neeg: Lub hom phiaj ntawm cov lus qhia no yog los qhia seb yuav tshawb nrhiav koj tsev neeg tsob ntoo li cas hauv Tsev Neeg Nrhiav rau cov poj koob yawm txwv nrog kev ua haujlwm hauv lub tuam tsev tsis tiav siv Kev Cia Siab lub hauv siab txuas ntxiv. Siv Kev Cia Siab Lub Hauv Paus tuaj yeem ua rau koj qhov kev tshawb nrhiav tsis tiav
Kev Ua Vaj Tsev Zoo Ua Rau Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: 16 Cov Kauj Ruam (nrog Duab)
Kev Ua Vaj Tsev Ua Tau Zoo ntawm Raspberry Pi rau Sab Nraud lossis Sab Hauv Tsev - MudPi: Koj puas nyiam ua vaj tab sis tsis tuaj yeem nrhiav sijhawm los tswj nws? Tej zaum koj muaj qee cov nroj tsuag hauv tsev uas tab tom nqhis dej me ntsis lossis tab tom nrhiav txoj hauv kev los siv koj li hydroponics kom zoo? Hauv txoj haujlwm no peb yuav daws cov teeb meem ntawd thiab kawm paub qhov pib ntawm
GPS Tsheb Tracker Nrog SMS ceeb toom thiab Thingspeak Cov Ntaub Ntawv Upload, Arduino Raws, Tsev Hauv Tsev: 5 Cov Kauj Ruam (nrog Duab)
GPS Tsheb Tracker Nrog SMS Ceeb Toom thiab Cov Ntaub Ntawv Hais Lus Upload, Arduino Raws, Tsev Hauv Tsev: Kuv tau ua qhov GPS tracker xyoo tas los thiab txij li nws ua haujlwm zoo Kuv tshaj tawm nws tam sim no ntawm Kev Qhia. Nws txuas nrog cov khoom siv txuas rau hauv kuv lub cev.Qhov GPS tracker uploads lub tsheb txoj haujlwm, nrawm, taw qhia thiab ntsuas kub ntawm lub xov tooj ntawm tes
Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
Ntse Suab Nkauj hauv chav pw thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: Niaj hnub no peb xav muab ob qho piv txwv txog yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau hauv tsev automation: hauv chav dej thiab chav pw . Ob txoj haujlwm zoo ib yam nyob hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los
Kev Ruaj Ntseg Hauv Tsev Nrog Hauv Qhov System: 12 Cov Kauj Ruam (nrog Duab)
Kev Ruaj Ntseg Hauv Tsev Nrog Hauv Qhov System: Nyob Zoo Cov Neeg Nyeem Ntawv, Qhov no yog Cov Lus Qhia rau kev tsim Lub Tsev Ruaj Ntseg Hauv Tsev tsis zoo li txhua lwm qhov kev ruaj ntseg. Cov kab ke no muaj qhov ua kom zoo dua qub TRAP thiab PANIC Hom Txuas Cov Neeg Raug Tsim Txom hauv tsev tus tswv, tus nyob ze thiab Tub Ceev Xwm chaw nres tsheb hla network Hauv