Cov txheej txheem:

Tswj Qhov Ntsuas Pom Nrog Alexa: 6 Kauj Ruam (nrog Duab)
Tswj Qhov Ntsuas Pom Nrog Alexa: 6 Kauj Ruam (nrog Duab)

Video: Tswj Qhov Ntsuas Pom Nrog Alexa: 6 Kauj Ruam (nrog Duab)

Video: Tswj Qhov Ntsuas Pom Nrog Alexa: 6 Kauj Ruam (nrog Duab)
Video: Ib lo lus Remix Dj - Super zab _ Mob lub siab ua luaj no - Nkauj tshiab 2023 2024, Kaum ib hlis
Anonim
Tswj qhov Ntsuas Pom Nrog Alexa
Tswj qhov Ntsuas Pom Nrog Alexa
Tswj qhov Ntsuas Pom Nrog Alexa
Tswj qhov Ntsuas Pom Nrog Alexa

Tswj kev tshawb nrhiav qhov sib npaug nrog Alexa

Tsiv lub tshawb nrhiav los ntawm lub suab.

Ua ntej tshaj plaws, thov saib daim vis dis aus.

Nws yog cov ntsiab lus ntawm kev ua haujlwm

  1. Tham nrog Alexa (Raspberry Pi + AVS) Hais: Alexa
  2. Pib SkillSAY: BARANSU MEIRO WO KIDOU SHITE
  3. Qhia SkillSAY: 1 Ua, UE NI SHITE
  4. Kev txawj sib txuas lus nrog Raspberry Pi thiab cuam tshuam cov lus txib
  5. Raspberry Pi txav servo motor

Kuv yuav piav qhia yuav ua li cas thiaj ua tau.

Kauj ruam 1: Npaj Amazon Echo

Npaj Amazon Echo
Npaj Amazon Echo
Npaj Amazon Echo
Npaj Amazon Echo

Cia peb yuav Amazon Echo

Raws li Lub Ib Hlis 2018, Amazon echo tsis tuaj yeem tau txais vim qhov muag qis hauv Nyij Pooj.

Yog li ntawd, kuv tsim Alexa ntaus ntawv siv Raspberry Pi.https://github.com/alexa/alexa-avs-sample-app/wiki/Raspberry-Pi

Kauj Ruam 2: Kev Txawj Ntse

Kev Txawj Ntse
Kev Txawj Ntse
Kev Txawj Ntse
Kev Txawj Ntse

Teeb tsa tus kheej kev txawj

1. Tsim Kev Txawj nrog Alexa Cov Txawj Ua Haujlwm Amazon Alexa Skills Kith

Txhais plaub lub siab nyiam thiab ib lub qhov.

2. Kev Txawj Ntse ntawm IBM Huab Koj tuaj yeem siv nws dawb los ntawm kev siv lub teeb pom kev.https://www.ibm.com/cloud/lite-account

1) Kho Node-RED ntawm IBM Cloud.https://nodered.org/docs/platforms/bluemix

2) Nruab (luam & muab tshuaj txhuam) qhov ntws.

Kauj Ruam 3: Kev Npaj Kho Vajtse

Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse

Tsim kev ua si tshawb nrhiav

1. Servo thiab servo folder Servo siv Tower-pro SG90. Thov xa mus rau qhov URL kom paub meej. Cov ntaub ntawv 3D kuj tseem tuaj yeem rub tawm.https://www.thingiverse.com/thing: 746116

2. Maze game (khoom siv lub teeb, ua nrog cov ntawv styrene)

3. Pob (Khoom teeb)

4. Raspberry Pi (siv Raspberry Pi 3B)

Kauj ruam 4: Kev sib txuas

Kev sib txuas
Kev sib txuas

Txuas tus pabcuam rau Raspberry Pi

1. Teem cov kev taw qhia ntawm servo. Txuas kab sab saud mus rau GPIO 12 (32 PIN). Txuas kab qis mus rau GPIO 18 (12 PIN).

2. LED uas ci thaum ua haujlwm tau zoo Txuas lub LED nrog 200 Ω txog 330 Ω ntawm qhov anode. GPIO04 (7 PIN) Txuas Graund (9 PIN)

Kauj Ruam 5: Teeb Raspberry Pi

Teeb tsa Raspberry Pi
Teeb tsa Raspberry Pi

Nruab qhov software ntawm Raspberry Pi

1. GPIO Chattering tau ua tiav nrog Rpi. GPIO teeb tsa hauv tus qauv. Yog li ntawd, kuv yuav teeb tsa pi-gpiod. Qhov no yog vim tias PWM cov zis tau ruaj khov.

Txoj kev teeb tsa

sudo apt-tau nruab pigpio python-pigpio python3-pigpiohttps://abyz.me.uk/rpi/pigpio/index.html

Pib daemon sudo pigpiod

2. Node-RED Nruab lub tsev qiv ntawv rau pi-gpiod.https://flows.nodered.org/node/node-red-node-pi-gpiod

Nruab lub tsev qiv ntawv dashboard rau debugging.https://flows.nodered.org/node/node-red-dashboard

3. Tsim kom txaus Thov ntshuam (Luam & Paste) cov ntaub ntawv hauv qab no rau Node-RED.

Tso rau thaum koj tuaj yeem luam tau ib txwm.

Kauj Ruam 6: Kuv Yuav Tham Nrog Koj

Image
Image
Lub suab qhib kev sib tw
Lub suab qhib kev sib tw

Thov tshaj tawm rau Alexa

1. Hais lus li "Alexa, qhib kev tshawb nrhiav qhov sib npaug".

Thaum cov txuj ci tau qhib, LED tig rau.

2. Koj nyob hauv hom kev sib tham thiab koj tuaj yeem tham yam tsis hais lus tsa tes.

3. Hais raws li "Thaum koj hais lus", tshawb nrhiav txav mus raws qhov qhia tshwj xeeb.

4. Hais raws li "Nres", tshawb nrhiav nres.

Pom zoo: