Cov txheej txheem:

GassistPi (Google Tsev hauv Raspberry Pi): 7 Kauj Ruam (nrog Duab)
GassistPi (Google Tsev hauv Raspberry Pi): 7 Kauj Ruam (nrog Duab)

Video: GassistPi (Google Tsev hauv Raspberry Pi): 7 Kauj Ruam (nrog Duab)

Video: GassistPi (Google Tsev hauv Raspberry Pi): 7 Kauj Ruam (nrog Duab)
Video: 10 самых АТМОСФЕРНЫХ мест Дагестана. БОЛЬШОЙ ВЫПУСК #Дагестан #ПутешествиеПоДагестану 2024, Kaum ib hlis
Anonim
GassistPi (Google Tsev hauv Raspberry Pi)
GassistPi (Google Tsev hauv Raspberry Pi)
GassistPi (Google Tsev hauv Raspberry Pi)
GassistPi (Google Tsev hauv Raspberry Pi)

Google Assistant rau Raspberry Pi!

Kauj Ruam 1: Sau Cov Khoom & Cov Cuab Yeej

Sib Sau Cov Khoom & Cov Cuab Yeej
Sib Sau Cov Khoom & Cov Cuab Yeej
Sib Sau Cov Khoom & Cov Cuab Yeej
Sib Sau Cov Khoom & Cov Cuab Yeej
Sib Sau Cov Khoom & Cov Cuab Yeej
Sib Sau Cov Khoom & Cov Cuab Yeej
  1. 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)
  2. 8GB Micro SD daim npav
  3. Micro SD Card Nyeem Ntawv
  4. USB Microphone
  5. USB Powered Hais Lus
  6. 3.5mm Jack Splitter
  7. 5V 2A USB Lub Hwj Chim Adapter
  8. Micro USB Cable
  9. Poj niam rau Txiv Neej Jumper Cables
  10. Cov qhob cij
  11. LEDs (xim twg koj xav tau)
  12. Phillips Ntsia Hlau
  13. Phillips Screws
  14. Daim Kab Xev Hluav Taws Xob
  15. Soldering Hlau & Sawv
  16. Soldering Lead
  17. Hlau Cutter
  18. Ketchup Jug (Kuv twb tau txiav nws:))
  19. 100/150/330 ohms resistor

Kauj ruam 2: Flashing Raspbian rau Micro SD Card

Flashing Raspbian rau Micro SD Card
Flashing Raspbian rau Micro SD Card
  1. Download Raspbian lossis Raspbian Lite
  2. Rub tawm & Nruab Etcher
  3. Txuas lub Micro SD Card Reader nrog Micro SD Card hauv nws.
  4. Qhib Etcher
  5. Nyem rau Xaiv Duab thiab xauj qhov chaw rub tawm ntawm Raspbian/RaspbianLite Zip
  6. Nyem rau Xaiv Drive thiab nrhiav tus tsav ntawm koj daim npav micro sd daim npav.
  7. 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

Fais fab Koj Raspberry Pi!
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

Txhim kho GassistPi
Txhim kho GassistPi
Txhim kho GassistPi
Txhim kho GassistPi
Txhim kho GassistPi
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

Customization ntawm Koj GassistPi
Customization ntawm Koj GassistPi
Customization ntawm Koj GassistPi
Customization ntawm Koj GassistPi
Customization ntawm Koj GassistPi
Customization 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

Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
Cov ntaub ntawv kaw
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: