Cov txheej txheem:

Tsev Automation Siv Google Assistant thiab Adafruit IO: 3 Cov Kauj Ruam
Tsev Automation Siv Google Assistant thiab Adafruit IO: 3 Cov Kauj Ruam

Video: Tsev Automation Siv Google Assistant thiab Adafruit IO: 3 Cov Kauj Ruam

Video: Tsev Automation Siv Google Assistant thiab Adafruit IO: 3 Cov Kauj Ruam
Video: Kawm Lus Askiv siv Google - 1 2024, Hlis ntuj nqeg
Anonim
Tsev Automation Siv Google Assistant thiab Adafruit IO
Tsev Automation Siv Google Assistant thiab Adafruit IO

Google tus pabcuam yog AI (Artificial Intelligence) raws lub suab hais kom ua. Siv lub suab, peb tuaj yeem cuam tshuam nrog google tus pabcuam thiab nws tuaj yeem tshawb hauv internet, teem sijhawm xwm txheej, teeb tsa lub tswb, tswj cov cuab yeej siv, thiab lwm yam.

Qhov kev pabcuam no muaj nyob ntawm smartphones thiab Google Tsev cov khoom siv. Peb tuaj yeem tswj cov cuab yeej ntse hauv tsev suav nrog teeb, hloov pauv, kiv cua thiab ntsuas cua sov siv peb Google Assistant.

Peb yuav tsim daim ntawv thov uas tuaj yeem tswj cov khoom siv hauv tsev. Ntawm no, peb yuav tswj hwm 60W lub teeb siv Google Assistant kev pabcuam. Daim ntawv thov no suav nrog Google pabcuam nrog rau Adafruit server thiab IFTTT kev pabcuam.

Khoom siv

  1. NodeMCU (ESP8266) Pawg Thawj Coj
  2. 5V Relay Module
  3. Jumper Cables
  4. Cov qhob cij

Kauj Ruam 1: Tsim Tus Kws Pabcuam Online

Tsim Tus Kws Pabcuam Online
Tsim Tus Kws Pabcuam Online
Tsim Tus Kws Pabcuam Online
Tsim Tus Kws Pabcuam Online
Tsim Tus Kws Pabcuam Online
Tsim Tus Kws Pabcuam Online
  1. Ua ntej, tsim ib tus as khauj ntawm www. Adafruit.io
  2. Tam sim no, tsim lub dashboard. Lub dashboard no yog tus siv siv los tswj cov khoom nyob deb.
  3. Tom qab ua raws cov theem saum toj no, muab lub npe rau ntawm lub dashboard thiab txuag nws.
  4. Tam sim no, tsim pub (neeg siv interface) los tswj lub teeb On-Off. Txhawm rau tsim nws, tsuas yog nyem rau ntawm lub cim '+' thiab xaiv cov toggle pub pom.
  5. Tom qab xaiv toggle pub, lub qhov rai pop-up zoo li pom.
  6. Sau lub npe ntawm peb cov khoom noj (qhia hauv lub thawv liab) thiab tsim nws. Tom qab tsim, xaiv cov khoom tsim (ntawm no yog kuv li yog LED) thiab tom qab ntawd nyem rau ntawm Cov kauj ruam Tom ntej. Hauv cov kauj ruam tom ntej teeb tsa cov khoom noj uas tau qhia hauv qab no.
  7. Ntawm no, Kuv siv 0 (OFF) thiab 1 (ON) ntawv rau khawm thiab tom qab ntawd nyem rau ntawm tsim. Qhov no yuav tsim lub toggle khawm ntawm koj lub dashboard uas tuaj yeem siv los tswj cov khoom nyob deb.

Tam sim no, kuv lub dashboard tau npaj rau IoT daim ntawv thov zoo li kev siv tshuab hauv tsev.

Kauj Ruam 2: IFTTT (Yog Qhov No Yog Li No)

IFTTT (Yog Qhov No Yog Li No)
IFTTT (Yog Qhov No Yog Li No)
IFTTT (Yog Qhov No Yog Li No)
IFTTT (Yog Qhov No Yog Li No)
IFTTT (Yog Qhov No Yog Li No)
IFTTT (Yog Qhov No Yog Li No)

Yog Qhov No Yog Qhov ntawd, tseem hu ua IFTTT yog qhov kev pabcuam pub dawb hauv web los tsim cov saw ntawm cov lus yooj yim raws li txoj cai, hu ua applets. Ib qho applet tau tshwm sim los ntawm kev hloov pauv uas tshwm sim hauv lwm qhov kev pabcuam hauv web xws li Gmail, Facebook, Telegram, Instagram, lossis Pinterest.

Piv txwv li, applet tuaj yeem xa xov email yog tias tus neeg siv tweets siv lub hashtag lossis luam daim duab hauv Facebook rau tus neeg siv cov ntawv khaws cia yog tias ib tus neeg cim npe tus neeg siv hauv daim duab. Ntawm no, Kuv tau siv IFTTT los siv google pabcuam pabcuam thiab Adafruit kev pabcuam hauv cov saw hlau. Yog li, thaum kuv siv google tus pab tswj lub teeb ntawm kuv lub tsev los ntawm hais Ok Google, tig lub teeb ON lossis OFF. Tom qab ntawd IFTTT txhais cov lus thiab tuaj yeem xa nws mus rau Adafruit lub dashboard raws li kev nkag siab nkag siab rau cov khoom tsim.

Configure IFTTT Thawj kauj ruam yog tsim ib tus as khauj ntawm IFTTT.

Nco tseg: Tsim tus as khauj ntawm IFTTT los ntawm kev siv tib tus lej e-mail uas koj tau siv rau Adafruit.

  1. Tom qab tsim tus lej, nyem rau Kuv Applets thiab tom qab ntawd xaiv Applet tshiab.
  2. Tom qab xaiv lub applet tshiab, peb tau txais nplooj ntawv tshiab uas peb yuav tsum nyem rau Qhov no tau qhia hauv daim duab.
  3. Tom qab ntawd tshawb rau Google Assistant thiab xaiv nws.
  4. Tam sim no, nkag mus rau lub suab kab lus uas peb yuav siv ua lus txib rau google tus pab.

Peb tuaj yeem nkag tau ib kab lus raws li peb daim ntawv thov. Raws li koj tuaj yeem pom, cov kab lus uas tau nkag rau hauv cov lus saum toj no yog ua rau Teeb ON. Txhawm rau Ua Lub Teeb, peb yuav tsum tsim lwm lub applet nrog cov kab lus sib txawv.

Tam sim no, peb tau txais lwm nplooj ntawv uas peb yuav tsum nyem rau qhov kev xaiv uas tau siv los txuas Google Assistant nrog Adafruit.

  1. Tom qab ntawd tshawb rau Adafruit thiab xaiv nws.
  2. Tom qab xaiv Adafruit, xaiv ua. Tam sim no nkag mus cov ntaub ntawv twg peb xav tau xa mus rau qhov pub ntawm Adafruit dashboard.
  3. Nyem rau Tsim Tsim.

Yog li, thaum kuv siv Google Assistant ntawm kuv lub xov tooj thiab muab lub suab hais ua "Ok Google, Tig LED ON", applet tsim hauv IFTTT tau txais cov lus txib no thiab yuav xa cov ntaub ntawv '1' mus rau Adafruit pub. Qhov no yuav ua rau muaj kev tshwm sim ntawm Adafruit lub dashboard uas tau tshuaj xyuas tas li los ntawm lub microcontroller (ntawm no NodeMCU). Lub microcontroller no yuav nqis tes ua raws li cov ntaub ntawv hloov pauv ntawm Adafruit dashboard.

Kauj Ruam 3: Txaus thiab Schematics

Flow thiab Schematics
Flow thiab Schematics
Flow thiab Schematics
Flow thiab Schematics

Rau txoj cai ntawm txoj haujlwm no:

Pom zoo: