Cov txheej txheem:

"MicroDot" rau LattePanda (lossis Raspberry Pi): 7 Kauj Ruam (nrog Duab)
"MicroDot" rau LattePanda (lossis Raspberry Pi): 7 Kauj Ruam (nrog Duab)

Video: "MicroDot" rau LattePanda (lossis Raspberry Pi): 7 Kauj Ruam (nrog Duab)

Video:
Video: 森羅万象 feat. RAU DEF & QN 2024, Hlis ntuj nqeg
Anonim
Duab
Duab

MicroDot yog lub tsev tsim Alexa 'khawm' tsim los txuas nrog LattePanda lossis Raspberry Pi, nrog Alexa Sample App teeb tsa. Nws yog tus hais lus me me nrog LED's thiab kov/hais kom ua, thiab yog qhov zoo rau siv ntawm lub desktop lossis hauv tsheb.

*LattePanda rau txoj haujlwm no tau ua siab zoo muab los ntawm DFRobot

Kauj Ruam 1: Txheej Txheem Txheej Txheem

Txheej txheem cej luam
Txheej txheem cej luam

LAWV PANDA

LattePanda yog qhov me me (hais txog qhov loj me ntawm Raspberry Pi) Windows 10 khoos phis tawj nrog Arduino built-in rau cuam tshuam rau lub ntiaj teb tiag. Nws yog qhov zoo heev - thiab yog qhov hloov pauv tau zoo rau Raspberry Pi - tshwj xeeb tshaj yog tias koj (zoo li kuv) muaj teeb meem kom tau tuav nrog Linux.

Kuv tau teeb tsa Alexa Sample App mus rau Panda, thiab tau siv kuv tus kheej lub suab-lo lus cav raws li Windows built-in hais lus paub SDK.

MICRODOT

MicroDot suav nrog lub tshuab ua kom me me thiab hais lus nrog kov-rhaub grill thiab xiav/dawb LED teeb. MicroDot tau xub tsim los muab tso rau ntawm kuv lub tsheb kom muab kuv lub tsheb Alexa daws (los ua ke nrog kuv qhov haujlwm yav dhau los-Alexa-enabled tsheb tso suab). Ntxiv rau qhov muaj qhov xaiv-lo lus xaiv, Kuv xav kov-ua kom zoo vim tias Alexa yuav muaj lub sijhawm nyuaj hnov kuv cov lus tsa suab thaum lub suab paj nruag nrov nrov! (Thaum ua haujlwm lawm, Panda yuav xa lub teeb liab mus rau lub tso suab kom tig lub suab qis thaum Alexa tab tom mloog/hais lus).

RASPBERRY PI

Rau cov neeg uas paub zoo dua hauv "Raspberry Pi", Kuv tau piav qhia qhov kawg ntawm Cov Lus Qhia no yuav ua li cas cuam tshuam MicroDot nrog Rapsberry Pi 3.

Kauj Ruam 2: MicroDot Circuit

MicroDot Circuit
MicroDot Circuit
MicroDot Circuit Court
MicroDot Circuit Court
MicroDot Circuit Court
MicroDot Circuit Court

XEEM

6 x 220R SMD Resistors2 x 470R SMD Resistors1 x 10uF SMD Capacitor1 x TTP223 Touch Sensor Module (https://www.ebay.com/itm/192097635565)1 x PAM8403 3W Amplifier Module (https://www.ebay.com/ itm/221895096190) 1 x 10K Ib Leeg Tawm Thumb Potentiometer (https://www.ebay.com/itm/401105807680)1 x 50pF Ceramic Capacitor3 x 3mm Blue LEDs3 x 3mm White LEDs1 x 1.7inch 4ohm 3W Speaker1 x Thin Black Cable los ntawm Pob Ntseg Pob Ntseg 1 x Nyias Dub 1m USB Txuas Txuas*

Kev tsim kho

MicroDot PCB tau ua los ntawm cov hlau ntawm cov txheej txheem toner ntawm 0.8mm tuab ib leeg -lub rooj tsavxwm - ntawm qhov tuab nws tuaj yeem txiav ntxhib kom zoo nrog cov txiab ntse thiab tom qab ntawd yooj yim xa mus rau cov duab. Mount tag nrho cov ntu ntu ntu ua ntej.

Cov xaim yuav tsum tau txuas nrog lub ntsej muag kov ntawm lub sensor, yog li thaj chaw me me yuav tsum tau muab pov tseg kom yaj rau. Kuv pom tias hauv nws hom nyoos, lub ntsuas tau nrawm heev - nws ua haujlwm tau zoo, tab sis ib zaug nws tau teeb tsa hauv lub thawv ntawv nws feem ntau tsis raug qhov tshwm sim vim nws nyob ze rau tus hais lus hlau. Kuv tsaws cov hlau hais lus - uas tau pab me ntsis, tab sis kuv yuav tsum thaum kawg xa mus rau cov ntawv teev npe.

TTP223 cov ntawv teev tseg hais tias koj tuaj yeem hloov kho qhov rhiab heev los ntawm kev tso lub capacitor (0 txog 50pf) nruab nrab ntawm qhov kov lub ntsej muag thiab hauv av. Lub sensor ua haujlwm zoo nrog 50pf capacitor. Koj tuaj yeem pom qhov kev tso kawm ntawm no hauv daim duab ntawm ntu tom ntej.

Ob txoj hlua txuas tau siv los txuas MicroDot rau Panda:- ib txoj hlua dub dub los ntawm ib khub qub pob ntseg los txuas lub suab- ib qho USB cable nyias tau siv los txuas rau GPIO (kov sensor/LEDs). Koj yuav xav tau ib lub cable nrog 6 qhov sib txuas sib txuas (5 sab hauv + ntaub thaiv npog). *Ceev faj tias qee qhov pheej yig USB cables tsis muaj qhov sib cais hauv av-tus pin/ntaub thaiv npog, lossis ob qho no tuaj yeem txuas nrog sab hauv (txheeb xyuas qhov no ua ntej txiav koj lub xov tooj los ntawm kev ua kom ntseeg tau tias muaj txuas ntxiv ntawm cov hlau sab nraud ntawm txiv neej thiab poj niam) ntsaws, thiab tias tsis muaj qhov txuas ntxiv ntawm tus pin hauv av thiab cov hlau sab nrauv).

Siv USB txuas txuas: liab =+5v, ntaub thaiv npog = GND, dub = kov sensor, dawb = dawb LEDs, ntsuab = xiav LEDs. thiab khaws cov ntsaws thiab txiav ib ntu ntev thiab ib ntu luv (hais txog 200mm) ntu, thiab ntsaws ob qhov kawg ntawm txoj hlua ua ke. Txoj hauv kev no lub tsev tshem tawm tau. Tsuas yog xyuas kom tseeb tias koj tsis tau ntsaws cov cuab yeej USB tiag tiag rau hauv nws, lossis ntsaws nws rau hauv USB chaw nres nkoj ib txwm muaj!

Kauj Ruam 3: Kev Siv MicroDot

MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho
MicroDot Kev Tsim Kho

3D luam tawm XEEM

Muaj plaub ntu 3D luam tawm hauv cov ntawv zip txuas: 1. Lub plhaub MicroDot loj - luam tawm hauv PLA2 dub. MicroDot puag - luam tawm hauv dub PLA3. Lub nplhaib LED - luam tawm hauv PLA dawb (pom tseeb lossis zoo dua yuav zoo dua los pab nthuav lub teeb kom zoo dua qub) 4. PCB spacer - txhua xim - sib xyaw ntawm tus hais lus thiab PCB.

M2 ntsia liaj qhov rooj thiab txiv ntseej tau siv los ntsaws lub hauv paus rau lub plhaub. Peb M2 ntsia liaj qhov rooj yuav tsum tau yaj mus rau hauv lub qhov nyob rau sab hauv ntawm lub plhaub. Cov no yog cov me me, thiab koj yuav xav tau '' solder '' lawv nyob rau hauv qhov chaw nrog qee cov ntsiab lus ntxiv.

LED ARRAY

Cov dawb thiab xiav LEDs tau teeb tsa hauv kab sib txawv raws li qhia hauv daim duab. Cov coj yog khoov mus rau 90 degrees tiv thaiv hauv qab ntawm LED thiab cov hlau lead tau yaj rau hauv lub nplhaib nrog cov hlau kub kub (nco ntsoov qhov tsis sib xws ntawm no). Cov hauv qab ntawm LEDs tau sau cia kom lawv tiaj tus rau ntawm lub nplhaib.

Cov cathodes ntawm LED's txhua tus tau txuas ua ke nrog lub nplhaib ntawm cov hlau thiab cov no txuas rau qis-feem ntau tus pin ntawm lub taub hau. Lwm tus pin ntawm lub taub hau yuav tsum yog hloov xiav/dawb rau txhua tus neeg LED

Muab nws tso ua ke

Cov hniav nyiaj hniav kub tau txiav los ntawm lub desktop ntawv tuav (duab) nrog xaim xaim txuas rau ib sab. Qhov no tau muab tso rau hauv lub plhaub ua ntej, tom qab ntawd cov kab LED (qhov no yuav tsum tau muab ntxig rau ntawm lub kaum sab xis raws li qhia, nrog lub qhov txuas ua ke nrog ib qho ntawm cov ntsia hlau tshaj tawm). Tus hais lus yog tom ntej (tso qee daim kab xev nyias nyob ib puag ncig sab saum toj kom tiv thaiv nws los ntawm ntug ntawm PCB). Tom qab ntawd tus spacer, thiab PCB tsuas yog zaum saum. Ntsia lub hauv paus kom nws tag nrho ua ke.

Thaum ntsaws cov kab hluav taws xob txuas rau hauv LattePanda, Kuv pom tias kuv yuav tsum tau siv lub suab lim hauv av (https://www.ebay.com/itm/371801191297) kom tau lub suab zoo. Nco ntsoov tias hauv cov duab kuv siv lub suab tawm ntawm kuv lub HDMI-VGA video adapter, tab sis nws zoo siv lub suab tso tawm ntawm lub rooj.

Koj tseem yuav xav tau lub usb microphone (https://www.ebay.com/itm/332148968227).

Kauj Ruam 4: LattePanda

LattePanda
LattePanda
LattePanda
LattePanda

Teem caij

Panda los hauv 2G/32G thiab 4G/64G qauv, nrog lossis tsis muaj Windows 10 Daim Ntawv Tso Cai. Tus qauv uas kuv siv yog 2G/32G version nrog Windows 10 Daim ntawv tso cai:

Thov saib cov ntaub ntawv raug cai los teeb tsa koj li LattePanda (https://docs.lattepanda.com) Tsis muaj dab tsi nyuab dhau ntawm no, tab sis nco ntsoov cov lus qhia rau txhawb koj li Panda (https://docs.lattepanda.com/ cov ntsiab lus/getStarted/powe …).

Txhua yam zoo li ua haujlwm thawj zaug rau kuv (uas yog qhov kev hloov pauv zoo los ntawm kuv qhov kev paub Raspberry Pi).

Ib qho tseem ceeb yog tias koj xav tau qee yam txias rau Panda. Kuv siv qee qhov txuas rau ntawm lub rhaub dej kub rau sab saum toj thiab hauv qab (sab hauv qab tau txais kub tshwj xeeb).

Daim duab no qhia ntxaws txog Arduino cov tswv yim tawm tswv yim thiab tso tawm: https://docs.lattepanda.com/content/hardware/inputs… Peb yuav siv cov kab ntawm 3 tus pin txuas ntawm sab laug tes txuas rau MicroDot (D9, D10) thiab D11), ntxiv rau lub suab tso zis.

Kauj Ruam 5: LattePanda - Nruab Alexa Sample App

LattePanda - Nruab Alexa Sample App
LattePanda - Nruab Alexa Sample App

DOWNLOAD

Alexa Sample App muaj nyob ntawm no:

github.com/alexa/alexa-avs-sample-app/

Nias lub Clone lossis rub tawm khawm thiab rub tawm ua.zip

Tsim cov npe ntawm c tsav C: / ALEXA, thiab rho tawm cov ntsiab lus ntawm zip kom cov zauv npe hu ua cov qauv tso ncaj qha rau hauv ALEXA phau ntawv teev npe (piv txwv li C: / ALEXA / kuaj / …)

INSTALLING

Cov lus qhia ua tiav rau kev teeb tsa ntawm Windows nyob ntawm no:

github.com/alexa/alexa-avs-sample-app/wiki…

Muaj ob peb kauj ruam, thiab nws siv sijhawm me ntsis, tab sis kuv pom tias nrog Windows txhua yam mus tau yooj yim thawj zaug.

Koj yuav xav tau tus kws kho ntawv zoo los kho qee cov ntaub ntawv teeb tsa (Notepad tsis zoo vim tias cov ntaub ntawv muaj Linux style kab kawg). Kuv siv Notepad ++ uas muaj nyob ntawm no:

Ob peb cov ntawv hais txog cov lus qhia ua haujlwm:

Ntu 3 - Kev vam khom

Kuv Panda yog 64 ntsis, yog li kuv rub tawm tag nrho 64 ntsis version, tab sis yog tias koj tab tom txhim kho ntawm 32 ntsis system koj yuav xav tau siv 32 ntsis version. Nco tseg: tsis txhob sib xyaw 32 thiab 64 ntsis version ntawm kev vam khom.

Qhov txuas qhia rau VLC media player, yuav coj koj mus rau 32 ntsis version. Kom tau txais 64 ntsis version, mus rau qhov txuas no: https://www.videolan.org/vlc/download-windows.html thiab ntawm lub pob rub tawm, xaiv xub, thiab tom qab ntawd Installer rau 64bit version.

Rau JDK nruab kuv siv version: jdk-8u144-windows-x64For nodejs Kuv siv: Windows Installer (.msi) 64 bitFor Maven: apache-maven-3.5.0-bin.zipFor OpenSSL Kuv siv: Win64 OpenSSL v1.1.0f

Ntu 5 - Txoj kev pov thawj tseeb

Xaiv 5a - Nodejs server. Yog tias koj tau txais qhov yuam kev khiav npm hais kom ua, tom qab ntawd koj yuav tsum ntxiv koj cov npe nodejs rau koj txoj hauv kev ib puag ncig sib txawv (nws tau piav qhia hauv cov lus qhia yuav ua li cas).

Ntu 6 - Khiav tus qauv app

Thaum kho cov ntaub ntawv config.json, teeb tsa wakeWordAgentEnabled rau qhov tseeb, raws li peb yuav txhim kho qhov kev cai tsim lo lus cav nyob rau ntu tom ntej (lub suab lo lus cav suav nrog hauv cov qauv app tsuas ua haujlwm nrog Linux).

Yog tias koj tau txais qhov yuam kev khiav cov lus txib mvn, tom qab ntawd koj yuav tsum ntxiv koj cov npe maven hauv bin rau koj txoj hauv kev ib puag ncig sib txawv.

Thaum koj khiav lub app, koj yuav tsum tau txais GUI qhia hauv lub screenshot. Thaum koj nyem rau ntawm lub cim koj yuav tuaj yeem tham nrog Alexa. Nov yog qhov yooj yim Alexa app - tab sis peb yuav xav tau ntau dua qhov no!

Cov kauj ruam tom ntej yuav yog txhawm rau teeb tsa lub tshuab tsim cov lus kom koj thiaj li tuaj yeem hais "Alexa" kom qhib, thiab tseem muaj qhov kev xaiv siv lub kov sensor ntawm Arduino cov tswv yim. Peb kuj yuav tsum ua kom lub app pib ua haujlwm thaum pib, thiab teeb qee qhov LED thaum Alexa tab tom mloog thiab tham.

Kauj Ruam 6: LattePanda - Nruab Custom WakeWord Engine

LattePanda - Nruab Custom Custom WakeWord Engine
LattePanda - Nruab Custom Custom WakeWord Engine

WAKEWORD ENGINE

Lub WakeWord cav tso cai rau Alexa kom sawv los ntawm cov lus hais (feem ntau yog 'Alexa'), tsis txhob nyem rau lub pob. Cov qauv app muaj ob txoj kev xaiv rau WakeWord cav: Kev nkag siab lossis KITT. AI tsim lo lus tshuab. kev siv rau cov no hauv cov piv txwv app, txawm li cas los xij, tsuas yog ua haujlwm rau Linux.

Ntawm no kuv yuav siv qhov kev cai tsim lo lus cav uas yog raws Windows 10 tus kheej hais lus paub SDK. Yog li qhov no tseem tsis pub dawb ntawm cov ntawv tso cai ntxiv.

INSTALL DEPENDENCIES

Microsoft Hais Lus Platform - Runtime (Version 11) https://www.microsoft.com/en-gb/download/details.a…x86_SpeechPlatformRuntime\SpeechPlatformRuntime.msi (32 ntsis) lossis x64_SpeechPlatformRuntime / SpeechPlatformRuntime.msi (64 ntsis)

Microsoft Hais Lus Platform-Runtime Languages (Version 11)

Kuv tus qauv WakeWord lub cav tau sau hauv C# hauv Visual Studio 2017. Kuv tau muab qhov ua tiav kawg ntawm no thiab tseem yog qhov chaws. Yog tias koj xav sau nws koj tus kheej, tom qab ntawd koj tseem yuav xav tau qhov no:

Microsoft Speech Platform - Software Development Kit (SDK) (Version 11) https://www.microsoft.com/en-gb/download/details….|x86_MicrosoftSpeechPlatformSDK\MicrosoftSpeechPlatformSDK.msi (32 ntsis) lossis x64_MicrosoftSpeechPlatformSDK / MicrosoftSpeechPlatform 64 ntsis)

Muab WakeWordPanda.exe (thiab alexa_run.bat) rau hauv ALEXA phau ntawv teev npe. Txoj haujlwm no ua cov haujlwm hauv qab no:- Mloog rau '' Alexa tsa lo lus- Saib xyuas qhov kov lub ntsej muag sensor- Tswj lub XEEB thiab LUS LED dawb

Nco ntsoov tias kuv tsim qhov no ntawm lwm Windows 10 khoos phis tawj kom kuv tsis tas yuav nruab Visual Studio ntawm LattePanda, vim kuv tsis xav siv Gigabytes. Kuv txuas nrog Arduino Uno teeb tsa nrog StandardFirmata (https://www.lattepanda.com/docs/#SetuptheArduino) rau kev txhim kho lub computer kom kuv tseem tuaj yeem txhim kho nrog Arduino cov tswv yim/tawm tswv yim. Visual Studio qhov chaws tau txuas nrog yog tias koj xav hloov kho thiab/lossis suav qhov no koj tus kheej.

Hloov kho JAVA CLIENT

Java Client xav tau ob peb kab ntxiv ntxiv rau cov cai. Qhov no yog txhawm rau ua kom LED ua haujlwm raug:

Thaum Alexa tab tom mloog, PAUSE_WAKE_WORD_ENGINE teeb liab raug xa mus rau WakeWord cav. Kuv siv lub teeb liab no kom paub thaum twg yuav qhib lub BLUE (Alexa mloog LED). Thaum RESUME_WAKE_WORD_ENGINE teeb liab tau txais, Xiav LED tua, thiab WHITE (Alexa hais lus LED) tig. Cov lej ntxiv xa lwm qhov RESUME_WAKE_WORD_ENGINE teeb liab thaum Alexa nres hais lus - yog li ntawd WakeWord cav paub thaum twg yuav tsum tua lub Dawb LED.

Nkag mus rau: C: / ALEXA / qauv / javaclient / src / main / java / com / amazon / alexa / avs thiab qhib AVSController.java hauv koj cov ntawv sau. Luam cov cai los ntawm Extra_Code.txt cov ntawv txuas nrog. Nws yuav tsum tau muab tso rau hauv ob qho chaw:

1. Hauv txoj haujlwm pej xeem tsis muaj nuj nqis rauAlexaSpeechFinished () ncaj qha tom qab nqe lus: dependDirectiveThread.unblock ();

2. Hauv txoj haujlwm ntiag tug void handleAudioPlayerDirective (Directive directive) ncaj qha ua ntej nqe lus: player.handleStop ();

Kuv kuj tseem rov npaj lub CONFIRM teeb liab kom lub WakeWord cav yuav paub yog Alexa tau teb. Qhov no yog txhawm rau ncua sijhawm 5 thib ob uas yuav tshwm sim yog tias tsis muaj lus teb. Luam cov cai los ntawm Extra_Code2.txt thiab ntxig rau hauv ib qho:

1. Hauv kev ua haujlwm pej xeem tsis muaj dab tsi ntawmAlexaSpeechStarted () ncaj qha tom qab nqe lus dependDirectiveThread.block ();

Tam sim no koj yuav tsum rov sau dua Java Client. Qhib qhov hais kom ua sai sai thiab mus rau C: / ALEXA / samples / javaclient Enter: mvn install to recompile.

Yog tias koj pib ua Tus Pabcuam Kev Pabcuam thiab Java Alexa app zoo li ua ntej, thiab tom qab ntawd nyem ob zaug ntawm WakeWordPanda.exe, tos nws txuas, thiab tom qab ntawd koj yuav tsum tuaj yeem qhib Alexa los ntawm kev hais "Alexa".

MICRODOT

Yog tias koj txuas MicroDot's 'USB' cable rau LattePanda raws li qhia hauv daim duab, thiab ntsaws rau hauv lub xov tooj cua, tam sim no nws yuav tsum ua haujlwm zoo. Hais lus-lus lossis kov cov hniav nyiaj hniav kub yuav tsum qhib Alexa thiab xiav LED yuav tsum tuaj. Cov LED dawb yuav tsum tuaj raws li Alexa teb.

SETUP AUTO RUN

Hloov chaw ntawm kev sau txhua lo lus txib ntawm tus kheej kom pib txhua yam, koj tuaj yeem siv tsab ntawv alexa_run.bat. Qhov no yuav tos kom muaj kev sib txuas hauv is taws nem, thiab tom qab ntawd thov kom muaj cov qauv sib cais (cov kev pabcuam sib koom, cov neeg siv java, lub tshuab lo lus).

Kauj ruam kawg yog ua kom txhua yam ua haujlwm tau pib thaum pib:

1. Txoj cai-nias rau ntawm auto-run.bat thiab xaiv tsim shortcut.2. Nias ctrl+R thiab ntaus lub plhaub: pib. Qhov no yuav qhib lub nplaub tshev pib. 3. Luag qhov luv luv uas koj tau tsim rau hauv daim nplaub tshev pib.

Alexa yuav tam sim no pib ua haujlwm pib (nws siv 30 vib nas this lossis yog li pib ua tom qab pib).

Kauj Ruam 7: MicroDot rau Raspberry Pi

MicroDot rau Raspberry Pi
MicroDot rau Raspberry Pi
MicroDot rau Raspberry Pi
MicroDot rau Raspberry Pi

(Yog tias koj xav siv Raspberry Pi 3 siv LattePanda).

DOWNLOAD

Rub tawm Alexa Sample App los ntawm no:

Nias lub Clone lossis rub tawm khawm thiab rub tawm ua.zip. Unzip kom lub alexa-ava-sample-app folder nyob ntawm Desktop.

INSTALLING

Ua raws li cov lus qhia ua tiav ntawm no (ceeb toom: teeb tsa kom alexa-ava-sample-app folder ntawm Desktop):

github.com/alexa/alexa-avs-sample-app/wiki…

Muaj ntau cov lus qhia rau ua qhov no nrog Raspberry Pi ntawm kev ua haujlwm. Kuv tau teeb tsa qhov no ob peb zaug ntawm Raspberry Pi, thiab tsis yog lub sijhawm nws ua tau zoo li kev txhim kho ntawm WIndows 10 (tsis muaj qhov xav tsis thoob - Linux tau txais kuv txhua lub sijhawm). Cov teeb meem tseem ceeb uas kuv ntsib yog:

1. Tau txais lub suab thiab lub microphone ua haujlwm kom raug. Saib ntawm no https://github.com/alexa-pi/AlexaPi/wiki/Audio-set… yog tias koj tseem muaj cov teeb meem no.

2. Teeb meem nrog JDK version. Saib 4.3 hauv cov lus qhia ua haujlwm, thiab cov ntawv hauv pom.xml cov ntaub ntawv uas tham txog kev tshem tawm cov ntawv thaum ua tiav mvn exec: exec hais kom ua (piv txwv li kuv yuav tsum ntxiv qhov hloov pauv no -Dalpn -boot.version = 8.1.6.v20151105). Nco ntsoov tias cov lus txib no suav nrog hauv kuv tsab ntawv pib (alexa_startup.sh).

3. Tau txais lub tshuab Sensory tsim lo lus kom ua haujlwm (https://github.com/Sensory/alexa-rpi)

Thaum koj tuaj yeem tau txais nws txhua qhov ua haujlwm nrog phau ntawv hais kom ua raws li tau hais tseg hauv cov lus qhia, txuas ntxiv nrog MicroDot teeb tsa.

MICRODOT CONNECTION

Koj tsis tuaj yeem txuas MicroDot ncaj qha rau GPIO vim tias nws yuav kos ntau dhau tam sim no. Koj yuav xav tau: 2x 2N3904 transisitors kom tsav lub LED, 1x2K2 thiab 1x3K3 tus tiv thaiv kom poob qhov hluav taws xob los ntawm qhov ntsuas lub ntsuas mus rau 3.3V (MicroDot yuav siv los ntawm 5V cov khoom siv). Xa mus rau daim duab txuas nrog. Koj yuav xav ua PCB rau qhov no, tab sis kuv nyuam qhuav tau teeb tsa cov khoom siv no nyob tom qab ntawm 8 tus pin poj niam ntsaws.

CUSTOM WAKE ENGINE (KOV)

Unzip cov ntsiab lus ntawm daim nplaub tshev uas txuas nrog rau hauv alexa-avs-piv txwv-app nplaub tshev. Muaj ob daim ntawv: wake.py - tsab ntawv nab nab uas yog qhov kev cai (kov) tsa lub cav rau MicroDot alexa_autostart.sh - tsab ntawv kom ua txhua yam. Txoj cai nyem rau cov khoom ntawm qhov no, thiab xaiv ua: txhua tus neeg ntawm kev tso cai tab.

Koj yuav xav tau cov nab hab sej los teeb tsa lub cav tsim. Koj tseem yuav xav tau lub tsev qiv ntawv GPIO (https://makezine.com/projects/tutorial-raspberry-p…) Cov no yuav tsum tau teeb tsa hauv qhov hloov tshiab ntawm Raspbian.

Txhawm rau ua txhua yam, ntaus rau hauv davhlau ya nyob twg: cd/home/pi/Desktop/alexa-avs-sample-appsudo./alexa_startup.sh

Teem AUTORUN

Txhawm rau teeb tsa Alexa kom pib ua haujlwm ntawm kev pib, qhib lub davhlau ya nyob twg thiab ntaus:

cd /home/pi/.config/lxsession/LXDE-pisudo nano autostart

thiab ntxiv kab thiab txuag:

@/tsev/pi/Desktop/alexa-avs-sample-app/alexa_autostart.sh

Rov pib dua thiab Alexa app yuav tsum pib ua haujlwm.

Pom zoo: