Cov txheej txheem:

Amazon Alexa Powered Tsis Siv Neeg Ntses Feeder: 5 Kauj Ruam
Amazon Alexa Powered Tsis Siv Neeg Ntses Feeder: 5 Kauj Ruam

Video: Amazon Alexa Powered Tsis Siv Neeg Ntses Feeder: 5 Kauj Ruam

Video: Amazon Alexa Powered Tsis Siv Neeg Ntses Feeder: 5 Kauj Ruam
Video: This Hurt My Soul Ice Fishing 2024, Kaum ib hlis
Anonim
Amazon Alexa Powered Tsis Siv Neeg Ntses Feeder
Amazon Alexa Powered Tsis Siv Neeg Ntses Feeder

Tsis nco qab pub koj cov ntses?

Tam sim no cia Alexa pub koj cov ntses, los ntawm txhua qhov chaw hauv ntiaj teb, yog nyob qhov twg. Txoj Haujlwm no tau tsim los kom koj tuaj yeem pub mis rau koj tus tsiaj los ntawm txhua qhov chaw hauv ntiaj teb, siv ib qho cuab yeej Alexa/app.

Xav pub mis rau lwm tus tsiaj?

Tsis muaj teeb meem tsuas yog ua lub ntim ntawm qhov loj me uas tsim nyog thiab so koj zoo mus.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
  • 1 X Servo Tsav
  • 1 X Raspberry Pi 3 (ib qho Raspberry Pi nrog internet yuav ua haujlwm)
  • 1 X Raspberry Pi Adapter
  • 1 X MicroSD Card nrog Rasbian OS
  • 3 X Jumper Wires Txiv neej rau Poj Niam
  • 1 X Cardboard
  • 1 X Txiab
  • 1 X Cim/Cwj mem
  • 1 X Nplai/Tus kav
  • 1 X Daim Kab Xev
  • 1 X Echo Dot (yeem)

Kauj Ruam 2: Ua Lub Thawv

Ua Lub Thawv
Ua Lub Thawv
Ua Lub Thawv
Ua Lub Thawv
Ua Lub Thawv
Ua Lub Thawv

Kos cov qhov ntev ntawm daim duab los qhia (koj tuaj yeem ua nws loj/me me raws li koj xav tau)

Siv tus cim/cwj mem nrog tus pas ntsuas thiab ua kom pom tseeb peb daim duab zoo li no.

Tam sim no txiav cov khoom siv txiab

Thov nco ntsoov tias A (kab sab hauv) nyob ntawm seb cov zaub mov koj pub rau ntses.

Tam sim no quav raws cov kab sab hauv

Quav txhua daim raws txoj kab sab hauv tig mus rau sab saum toj raws li qhia hauv daim duab.

Tam sim no Xev lawv ua ke zoo li lub hauv paus

Xev lawv ua ke xws li lawv tsim cov qauv zoo li lub hauv paus, raws li qhia hauv daim duab.

Tam sim no ua lub hau

Tam sim no ua lub hau rau lub qhov ncauj me me ntawm lub hauv paus, qhov no xav tau me ntsis loj kom nws tsis xau.

Kaw lub hau ntawm lub tshuab servo lub xov tooj

Muab lub hau tso rau ntawm lub tshuab servo lub xov tooj siv qee daim kab xev/kua nplaum.

Xev lub servo motor ntawm lub ntim

Thaum kawg, kaw kab ntawv servo lub cev rau ntawm lub thawv, xyuas kom nws kaw lub qhov ncauj kom raug.

Kauj Ruam 3: Tsim Firebase Database

Tsim Firebase Database
Tsim Firebase Database
Tsim Firebase Database
Tsim Firebase Database
Tsim Firebase Database
Tsim Firebase Database
  • Qhib firebase.
  • Nyem rau Mus rau Console.
  • Nyem rau Ntxiv Project.
  • Npe koj qhov Project.
  • Nyem rau Tsim qhov Project.
  • Nyem rau ntawm Database.
  • Xaiv Pib hauv Hom Kev Xeem.
  • Nco tseg koj tus lej ID firebase.

Kauj Ruam 4: Tsim Alexa Skill

Tsim Alexa Skill
Tsim Alexa Skill
Tsim Alexa Skill
Tsim Alexa Skill
Tsim Alexa Skill
Tsim Alexa Skill
  • Mus ntsib developer.amazon.com.
  • Nkag mus nrog koj li peev txheej amazon.
  • Nyem rau ntawm Developer Console.
  • Nyem rau Tsim Kev Txawj Ntse.
  • Lub Npe Kev Txawj Ntse.
  • Nyem rau Xaiv (Custom Skill) thiab tom qab ntawd Tsim Kev Txawj Ntse.
  • Nyem rau ntawm Invocation Tab thiab sau lub npe hu ua ntses pub.
  • Nyem rau ntawm JSON Editor Tab thiab Paste cov cai hauv qab no (saib qhov kawg).
  • Nyem rau Tsim Qauv.
  • Nyem rau Endpoint Tab.
  • Luam koj daim Skill ID.
  • Mus ntsib aws.amazon.com. (hauv tab tshiab)
  • Nyem rau ntawm Sign in to console.
  • Nyem rau ntawm Lambda (tshawb, yog tias tsis nyob ntawm nplooj ntawv).
  • Nyem rau Tsim Cov Haujlwm.
  • Sau cov ntsiab lus (txheeb tawm daim duab).
  • Nyem rau Tsim Cov Haujlwm.
  • Nyem rau ntawm Alexa Skill Kit.
  • Nyem rau Enable thiab muab tshuaj txhuam koj cov txuj ci.
  • Nyem rau Ntxiv.
  • Nyem Txuag.
  • Tam sim no Nyem rau ntawm koj lub npe txuj ci (kos tawm daim duab).
  • Scroll Down thiab Xaiv Upload a. Zip cov ntaub ntawv.
  • Rub tawm Github repo los ntawm no.
  • Unzip qhov repo.
  • Nkag mus rau hauv daim nplaub tshev hu ua Alexa/Lambda.
  • Qhib cov ntawv npe hu ua lambda_function.py hauv ib qho ntawv sau.
  • Tam sim no muab tshuaj txhuam tus firebase id rau kab 3 (hloov {koj lub firebase url} nrog koj tus lej firebase)
  • Tam sim no txav cov ntawv no mus rau lambda-zipped.zip archive. (yog tias siv WinRAR tsuas yog luag thiab xa nws mus rau qhov chaw khaws cia)
  • Tam sim no upload no lambda-zipped.zip rau aws.
  • Luam koj li ARN (saib daim duab)
  • Tam sim no rov qab mus rau developer.amazon.com.
  • Muab tshuaj txhuam ARN thiab nyem rau ntawm Save Endpoints.
  • Nyem rau Test Tab.
  • Toggle Hloov.
  • Ntaus cov lus txib - pib ntses pub mis
  • yog teb tau txais koj zoo mus.

{

"interactionModel": {"languageModel": {"invocationName": "ntses feeder", "intents": [{"name": "AMAZON. FallbackIntent", "sample": }, {"name": "AMAZON. CancelIntent "," qauv ": }, {" npe ":" AMAZON. HelpIntent "," qauv ": }, {" name ":" AMAZON. StopIntent "," qauv ": }, {"name": "FeedNow", "slots": , "qauv": ["pub ntses", "pub ntses", "pub kuv ntses tam sim no", "pub kuv ntses thov", "thov pub ntses "," ntses kuv noj tam sim no "]}]," hom ": }}}

Kauj Ruam 5: Teeb Kho Raspberry Pi 3

Teeb tsa Raspberry Pi 3
Teeb tsa Raspberry Pi 3
Teeb tsa Raspberry Pi 3
Teeb tsa Raspberry Pi 3
  • Txuas koj lub Servo Motor rau cov pins hauv qab no.
  • Feem Nruab Nrab (RED) -> VCC (PIN 02)
  • Xim daj (xim av) -> GROUND (PIN 06)
  • Xim kaj (ORANGE) -> PIN03
  • Nkag mus rau koj tus Pi (Siv SSH lossis siv Saib Xyuas/Keyboard/Mouse)
  • Qhib Terminal thiab khiav cov lus txib hauv qab no -
  • cd Desktop
  • git clone
  • Tam sim no qhib daim nplaub tshev Automatic-Fish-Feeder
  • Nkag mus rau nplaub tshev Pi
  • Qhib app.py hauv kab ntawv sau.
  • Hloov kab 5 nrog koj qhov url firebase.
  • Txuag nws.
  • Tam sim no qhib Terminal thiab khiav cov lus txib hauv qab no -
  • cd Desktop
  • cd Tsis Siv Neeg-Ntses-Feeder
  • cd pib
  • sej 3 app.py
  • Tam sim no siv koj lub cuab yeej Alexa lossis app thiab hais tias - Alexa, pib ntses ntses
  • Yog tias txhua yam ua haujlwm koj zoo mus.
  • Nco ntsoov tias hauv app.py koj tuaj yeem hloov cov lus sib cav ntawm FeedNow ua haujlwm hauv kab 11, thawj qhov kev sib cav yog ncua thiab qhov kev sib cav zaum thib ob yog lub kaum ntse ntse.

Pom zoo: