Cov txheej txheem:
- Kauj Ruam 1: Tau Cov Khoom No
- Kauj Ruam 2: Npaj SD Card Nrog Raspbian OS kawg (Ncab/Jessie)
- Kauj Ruam 3: Teeb Koj Li Pi thiab Docking Hub
- Kauj Ruam 4: Kho Koj Li Pi
- Kauj ruam 5: Nruab Alexa Software
- Kauj Ruam 6: Alexa, Tsib Tsib
Video: Alexa Voice Assistant ntawm Raspberry Pi Zero Docking Hub: 6 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Txhawm rau tsim lub ntsej muag Alexa Lub Suab Pabcuam ntawm Pi Zero W nrog tsawg dua cov xov hlau thiab USB dongles, Kuv siv Makerspot's Raspberry Pi Zero Docking Hub. Lub chaw tso khoom no muaj lub suab ua suab uas tuaj yeem tuav lub microphone thiab tus hais lus los ntawm nws lub hli 3.5 lub suab.
Cia peb pib.
Kauj Ruam 1: Tau Cov Khoom No
Cov no yog cov khoom koj xav tau:
- 1x Raspberry Pi Zero W.
- 1x Raspberry Pi Zero Docking Hub
- 1x HDMI saib
- 1x HDMI cable (thov nco ntsoov Pi Zero W xav tau lub mini-HDMI txuas)
- 1 x 5v USB 1 A Power Adapter
- 1 x micro USB cable
- 1 x USB keyboard
- 1x USB nas
- 1x Mini-Microphone Rau Xov Tooj Xov Tooj/Ntsiav Tshuaj (ib qho uas txhawb nqa qhov chaw sib tham hais lus)
- 1x Sab Nraud Hais Lus nrog 3.5mm Audio Jack.
- 1x 3.5mm audio cable (txiv neej-rau-txiv neej)
- 1 x 8G micro SD daim npav
- PC (txhawm rau ua kom pom daim npav SD nrog Raspbian OS duab)
Kauj Ruam 2: Npaj SD Card Nrog Raspbian OS kawg (Ncab/Jessie)
Nws yuav yog lub tswv yim zoo los pib nrog Raspbian OS tshiab. Muaj ob peb txoj hauv kev los npaj Raspbian OS tshiab ntawm daim npav SD. Tab sis kuv pom tias siv Etcher nrog cov duab Raspbian tag nrho yog qhov ua tau zoo thiab tsis tshua muaj qhov ua yuam kev.
- Rub tawm thiab teeb tsa Etcher (https://etcher.io/) rau koj lub PC host.
- Rub tawm qhov tseeb Raspbian duab los ntawm
- Ntxig SD rau hauv koj lub PC
- Qhib Etcher, xaiv Raspbian duab, tom qab ntawv SD daim npav, thiab nyem Flash!
Thaum cov duab tau npaj tseg, tshem daim npav kom nyab xeeb thiab npaj rau theem tom ntej.
Kauj Ruam 3: Teeb Koj Li Pi thiab Docking Hub
Koj yuav tsum teeb tsa koj Pi Zero W ntawm Raspberry Pi Zero Docking Hub. Muaj 4 txheej ntawm cov ntsia hlau thiab kev sawv ntsug thiab nws yuav siv sijhawm tsawg dua li ib feeb los sib sau ua ke.
Ntxig daim npav SD npaj rau hauv Pi Zero W. Txuas koj lub monitor mus rau Pi Zero W's HDMI chaw nres nkoj (yuav tsum ua kom tiav ua ntej lub zog Pi), txuas USB keyboard thiab nas thiab thaum kawg txuas lub microphone thiab hais lus. Txhawm rau ua kom muaj zog, txuas 5v USB fais fab cable rau lub zog txuas ntawm lub chaw nres nkoj (Tsis yog PWR PORT ON THE PI).
Koj yuav tsum pom Raspbian OS ib txwm los ntawm tus saib.
Kauj Ruam 4: Kho Koj Li Pi
Teeb WiFi
Sab laug nas nias lub WiFi icon nyob rau sab saum toj. Xaiv koj lub network txuas. Koj tsuas yog yuav tsum tau ua ib zaug tshwj tsis yog lub network teeb tsa tau hloov pauv lossis xav tau hloov pauv.
Teeb Suab Default Audio
Cov kauj ruam no tseem ceeb kom tau txais Raspberry Pi Zero Docking Hub audio los ua haujlwm nrog lub neej ntawd Alexa software.
Pib lub davhlau ya nyob twg thiab kho /boot /config.txt
sudo nano /boot /config.txt
Lov tes taw analog thiab hdmi suab los ntawm kev sau '#' nyob rau hauv pem hauv ntej ntawm kab hauv qab no hauv cov ntawv:
#dtparam = audio = on
Nias ctrl-x, y, thiab nkag mus rau txuag.
Hauv tib lub davhlau ya nyob twg, hloov kho ~/.asoundrc
nano ~/.asoundrc
Hloov cov ntsiab lus ntawm cov ntawv ntawd nrog cov hauv qab no:
pwm! default {
hom ntsaws tus qhev {pcm "hw: 1, 0"}} ctl.! default {hom ntsaws daim npav 1}
Nias ctrl-x, y, thiab nkag mus rau txuag.
Hmoov tsis zoo, kuv tseem tsis tau nrhiav txoj hauv kev ruaj khov los teeb tsa lub neej ntawd. Lub sijhawm no, koj yuav tsum ua nws ntawm txhua qhov pib.
Pab kom SSH/VNC (Tsis teb los tau)
Yog tias koj tsis xav siv lub saib, keyboard, thiab nas thaum pib tom ntej, ua kom cov kev xaiv no tso cai rau koj nkag mus rau Pi. Cov kev xaiv no nyob hauv Preference/Raspberry Pi Configuration, tom qab ntawd mus rau Interfaces thiab kos cim SSH thiab VNC xaiv.
Kauj ruam 5: Nruab Alexa Software
Kuv yuav tsis rov hais dua cov lus qhia zoo los ntawm Alexa AVS tus qauv ua haujlwm. Tsuas yog mus rau lawv txoj haujlwm Github (txuas) thiab ua raws cov lus qhia muaj los teeb tsa Alexa software.
Txawm hais tias muaj qee qhov ntsiab lus yuav tsum nco ntsoov:
- Koj tuaj yeem hla Kauj Ruam 1 raws li koj tau teeb tsa koj Pi.
- Xaiv "1/ 3.5mm audio" hauv ib qho ntawm cov lus nug pom zoo nug los ntawm cov ntawv automated_install.sh.
- Kuv tsis tuaj yeem pib Sensory wake lo lus cav (kev qhia tsis raug cai), yog li kuv siv Snowboy (kitt_ai).
Kauj Ruam 6: Alexa, Tsib Tsib
Nrog koj zoo siab! Hais "High Five" rau Alexa.
Yog tias koj tau qhib SSH (lossis VNC server), koj tuaj yeem rov pib Pi thiab khiav Alexa software tsis muaj lub taub hau (tsis muaj lub saib/keyboard/nas). Hauv koj lub PC khiav peb SSH lub davhlau ya nyob twg thiab txuas rau Pi. Siv cov dav hlau ntawd los pib ua haujlwm Alexa (piv txwv li "npm pib", "mvn exec: exec", thiab "wakeWordAgent -e kitt_ai"). Lwm qhov kom zoo dua los khiav lub taub hau yog tias Alexa java program (mvn exec: exec) ua haujlwm me dua.
Zuag qhia tag nrho, Kuv zoo siab nrog kev ua tau zoo ntawm Alexa tus qauv khiav ntawm Pi - lub suab ntes tau zoo heev, raug thiab ntseeg tau. Muaj qhov ua tau zoo sib txawv ntawm haiv neeg Echo (Dot) thiab teeb tsa no tab sis qhov sib txawv tsis loj heev. Ib yam uas kuv tsis zoo siab txawm hais tias kuv tsis tuaj yeem tau txais Amazon Prime Music ua si ntawm qhov teeb tsa no txawm hais tias qee leej hais tias Prime Music tau txais kev txhawb nqa. Tej zaum muaj qhov sib txawv dab tsi Amazon tso cai ntawm Canada thiab Asmeskas lossis qee yam uas kuv tsis tau teeb tsa kom raug. Yog tias koj paub yuav ua li cas thiaj tau Prime Music nrog tus qauv Alexa, thov qhia rau kuv paub.
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Kev tswj hwm tus kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Li Tachometer: 5 Cov Kauj Ruam (nrog Duab)
Kev Tswj Tus Kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Lub Tachometer: Muaj ib txwm xav tau rau kev siv tshuab txheej txheem, ua nws yooj yim/tsis txaus ntseeg. cov txheej txheem rau dej/siv dej rau peb daim av me me.Qhov teeb meem ntawm tsis muaj kab khoom siv tam sim no
DIY Google Tsev Nrog Bluetooth Hais Lus ntawm Raspberry Pi Zero Docking Hub: 7 Kauj Ruam (nrog Duab)
DIY Google Tsev Nrog Bluetooth Hais Lus ntawm Raspberry Pi Zero Docking Hub: Peb muaj cov lus qhia ntawm DIY Amazon Echo Alexa - Alexa Voice Assistant ntawm Raspberry Pi Zero Docking Hub. Lub sijhawm no peb xav qhia koj yuav tsim DIY Google Tsev li cas. Hauv cov lus qhia no, peb yuav qhia koj yuav ua li cas rau nruab thiab teeb tsa Google Assistant
Zaub Cov Duab Tawm ntawm PSP/Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Digital Duab: 3 Kauj Ruam
Zaub Cov Duab Tawm PSP/Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Tus Duab: Zoo … lub npe hais tias txhua yam tiag tiag … Qhov no yog qhov qhia tau yooj yim heev thiab nws tsis xav tau kho vajtse lossis software ntau dua li koj yuav tsum muaj ! Cov Lus Nug Qhia Rau Kuv lossis Tawm Tswv Yim! Koj tsis tas yuav hloov kho kom ua