Cov txheej txheem:

DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam

Video: DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam

Video: DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini: 6 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini
DIY Lub Suab/Internet Tswj Tsev Automation thiab Saib Xyuas Siv ESP8266 thiab Google Tsev Mini

Hav !! Tom qab so ntev Kuv nyob ntawm no vim peb txhua tus yuav tsum tau ua qee yam tho txawv (txoj haujlwm) kom tau txais.

Tom qab tag nrho cov ntawv TSHAWB TSHUAJ Kuv tau sau los ntawm BLUETOOTH, IR, WIFI Hauv Zos, Huab piv txwv qhov nyuaj, * TAM SIM NO * los txog qhov yooj yim tshaj plaws tab sis HOME AUTOMATION daws tau zoo tshaj plaws. T

nws txoj haujlwm xav tau kho vajtse tsawg dua, tsis zoo li kuv cov phiaj xwm yav dhau los. Kev siv cov kev pabcuam los ntawm cov tuam txhab software sib txawv feem ntau pom hauv qhov no nrog me ntsis ntawm Arduino thiab kev paub txog kev sib txuas. Wb tsis ris koj. Txaus siab rau LAZINESS !!!

NCO TSEG: Thov nyeem tag nrho cov ntaub ntawv nws yuav siv sijhawm 9 feeb, txwv tsis pub yog tias koj ua puas koj lub Cheebtsam Kuv yuav tsis muaj lub luag haujlwm !! Qhov no yog zaum peb uas kuv tso qhov project vim muaj qee qhov teeb meem hnub tim nrog lub xaib.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Tsib qhov tseem ceeb xav tau tab sis peb tuaj yeem rhuav nws rau qhov thib ob zoo li kuv tau tshwm sim ua ntej vim kuv tsis xav siv nyiaj thaum ntawd !!

  1. ESP8266 Nodemcu wifi kev txhim kho pawg thawj coj - Tej zaum LOLIN, AMICA, ADAFRUIT dab tsi
  2. 5V relay board tag nrho lossis tawg raws li hauv qab no

    • RELAY 5VULN2003 lossis ULN2003A
    • Diode rau kev tiv thaiv kev tiv thaiv (uas kuv tsis tau ua yav dhau los cov haujlwm)
  3. Jumpers lossis (Hlau thiab cov hlau txuas)
  4. Ib lub xov tooj ntawm tes lossis lub adapter ntawm 5V (them lub roj teeb, tsis txhob rhuav koj niam koj txiv lub xov tooj txawb)
  5. GOOGLE Tsev MINI

Yog li peb tuaj yeem yuav lub rooj sib txuas ntawm 2/4/8/16 relay tsis tu ncua nyob rau hauv ib qho kev tsim ua ntej lossis peb tuaj yeem ua ib qho, thov xa mus rau kuv cov kab lus yav dhau los zoo li qhov no los ua lub rooj sib txuas ntawm koj tus kheej.

Kauj ruam 2: Blynk App

App ntawm Blynk
App ntawm Blynk
App ntawm Blynk
App ntawm Blynk
App ntawm Blynk
App ntawm Blynk

Nruab Blynk app hauv koj lub xov tooj Android lossis xov tooj kua

Tom qab teeb tsa, kos npe siv email id lossis facebook (Kuv tsis nyiam facebook). Thiab nco ntsoov tias koj paub siv email id tus password, lossis lwm yam koj yuav tsis tau txais Blynk Auth Token (tshwj xeeb yog qhov haujlwm tshwj xeeb) uas tsis yog tsuas yog xa rau koj tus lej email uas tau sau npe tab sis kuj tuaj yeem tau txais los ntawm cov phiaj xwm teeb tsa hauv Blynk! Raug dag!

  1. xaiv qhov project tshiab Siv lub + khawm ntxiv widget
  2. Ntxiv khawm kom ntau li koj xav tau (txog thaum koj ua tiav koj lub zog 2000 DAWB dawb thiab tom qab ntawd yuav lub zog)
  3. Kho lub pob los ntawm txhaj rau khawm ntxiv
  4. Xaiv tus pin tso tawm (Digital) zoo li D1, D2, D3, _, _, _, _ (Sau Hauv Qhov Qub) (pins tuaj yeem yog digital, analog, virtual)
  5. Saib cov duab, Kuv tau muab lub xeev qis dua li 1 thiab lub xeev sab saud ntawm khawm li 0.

Yog vim li cas tom qab qhov no yog tias cov tswv yim hloov pauv tau txuas nrog ICs zoo li ULN2003 lossis xa cov tsav tsheb ICs uas ua raws li TSIS tau rooj vag.

Kauj Ruam 3: Programming ESP8266 hauv Arduino IDE

Programming ESP8266 hauv Arduino IDE
Programming ESP8266 hauv Arduino IDE
Programming ESP8266 hauv Arduino IDE
Programming ESP8266 hauv Arduino IDE
Programming ESP8266 hauv Arduino IDE
Programming ESP8266 hauv Arduino IDE

Hauv Arduino IDE, ua ntej tshaj plaws peb yuav tsum xaiv pawg thawj coj txhim kho peb yuav ua haujlwm raws li kuv tau hais hauv kuv cov phiaj xwm ua ntej. Arduino IDE> Cuab Yeej> Boards> Nodemcu 12E thiab xaiv qhov chaw nres nkoj usb peb txuas nws zoo li COM3/4/5/6/…

Tam sim no peb yuav tsum nruab Blynk lub tsev qiv ntawv hauv Arduino uas peb tuaj yeem yooj yim ua tsis muaj dab tsi thiab muaj txhua tus lej !! SKETCH -> suav nrog LIBRARY -> Tswj LIBRARIES -> Nrhiav rau "Blynk" -> INSTALL THE LIBRARY

Txuas Nodemcu ESP8266 rau lub khoos phis tawj. Ofcourse nrog USB cables !! Rau qhov yooj yim ntawm tsis-coders thiab kuv tus kheej:

Mus rau FILE> EXAMPLES> Blynk> Board's Wifi> xaiv Standalone Tam sim no tsis muaj dab tsi xav tau tshwj tsis yog Blynk Auth Token (phiaj xwm tshwj xeeb) thiab ntawv pov thawj wifi. UPLOAD cov duab kos hauv ESP8266 thiab qhib SERIAL MONITOR.

Koj tuaj yeem pom "IP", sau cia tus IP, nws yuav txawv raws li thaj chaw neeg rau zaub mov. Kuv yog zoo li koj tuaj yeem pom "139.59.206.133".80 yog qhov chaw nres nkoj ib txwm rau

Kauj Ruam 4: 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)

Nws yog lub platform uas pab peb tsim cov khoom siv uas tuaj yeem pab peb tau txais kev ceeb toom rau ib qho xwm txheej tshwj xeeb lossis tuaj yeem ua qee yam haujlwm tshwj xeeb. Raws li lub npe qhia: txhua yam nyob ib puag ncig "no" thiab "ntawd".

HERE: Yog tias "kab lus tshwj xeeb hais rau google tus pabcuam" ces "qhov ping yuav ua"

Yog li raws li tau hais tias peb yuav tsum nyem rau - Kuv lub applets> tsim tshiab> nyem rau ntawm no> tshawb nrhiav thiab xaiv google pabcuam> xaiv kab lus yooj yim> ua raws cov duab> tsim txhais

Nyem rau ntawm qhov ntawd> tshawb rau webhooks> xaiv nws> xaiv Ua lub vev xaib thov> Yuav muaj cov npe teb raws li hauv qab no:

  • URL (https:// IP/YourAuthToken/hloov tshiab/PIN? Tus nqi = 1) (digital 1/0…. 1 rau OFF thiab 0 rau ON ua rau tau sau hauv kab lus no thov nyeem qhov ntawd)
  • Txoj Kev (Tau Txais) Cov ntsiab lus hom (tsis muaj dab tsi)
  • Lub cev (tsis muaj dab tsi)

Tom qab sau tag nrho cov no nyem rau ntawm Tsim qhov ua rau

Nco tseg: Tus lej PIN no sib xws rau tus pin Arduino zoo li peb pom ntawm ESP8266 li D1 yog GPIO5 piv txwv li D5 rau Arduino uas peb yuav tsum sau ntawm no tsis yog D1. Example: https:// IP/YourAuthToken/hloov tshiab/D5? Value = 1 qhov no txhais tau tias D1 tus pin ntawm ESP8266 yuav OFF. Siv tus PIN DIAGRAM NTAWM ESP8266 Kom Paub Dua CORRESPONDING D? Mus rau GPIO?

Kauj ruam 5: Circuitry

Circuitry
Circuitry
Circuitry
Circuitry
Circuitry
Circuitry
Circuitry
Circuitry

Rau qhov project circuitry no yooj yim heev. Cheebtsam raws li tau tham ua ntej uas tau siv ntawm no:

5V adapter; ESP8266 Nodemcu; relay pawg thawj coj saib; dhia. Kuv tau siv ob qhov xa tawm tab sis peb tuaj yeem siv ntau npaum li ESP8266 pins nyob ntawd !!!

  • Qhov 5V cov khoom siv yuav muab pub rau ESP8266 thiab Cov Pab Pawg Sib Txuas.
  • ESP8266 Nodemcu yuav muaj 5V muab los ntawm micro USB lossis Vin tus pin thiab hauv av (Raws li kuv tau ua tiav).
  • Relay board muaj Vcc thiab GND tus pin tsim los rau khoom siv. Thov ua raws daim duab tsis txhob ntxig cov khoom ntawm lwm sab ntawm Relay board nws yog rau qee lub hom phiaj. (Kuv yuav tsis qhia nws pom nws yog ib txoj haujlwm yooj yim !!)
  • Yog li peb IoT MODULE tau teeb tsa mus, dab tsi yog sab laug? Txuas nws mus rau cov khoom siv..:)
  • Qhov ntawd yog txoj haujlwm yooj yim tshaj plaws tab sis ceev faj raws li ITS 220V AC LOSSIS 110V AC….. Tso lub pob hluav taws xob tseem ceeb lossis lwm yam yog tias koj tuag Kuv tsis paub leej twg sau kab ntawv no.
  • TXAUS SIAB "TSIS" (Ib txwm qhib) tus pin ntawm relay thiab COM (ib txwm) tus pin ntawm kev xa mus rau cov cuab yeej hloov pauv nyob rau hauv parallelor yog tias tsis muaj kev hloov pauv rau cov cuab yeej siv, txuas txuas tus pin txuas hauv ib qho ntawm cov hlau (LIVE lossis NEUTRAL) uas txuas nrog cov khoom siv.

NCO TSEG: Kuv tau hais kom txuas cov kis mus rau NO tus pin thiab COM tus pin kom cov khoom siv ib txwm nyob hauv lub xeev OFF. Ib tus tuaj yeem siv NC tus pin (Feem ntau kaw) yog tias nws/nws xav tau cov khoom siv hauv ON lub xeev raws li lub hauv paus. ON thiab OFF lub xeev nyob ntawm 2 FACTORS: 1) Relay's NO and NC pin 2) 0 thiab 1 logic hauv IFTTT/Blynk app

Kauj Ruam 6: Saib Xyuas Los Ntawm Txhua Qhov Chaw ntawm MOBILE (IFTTT App)

Ib tus tuaj yeem saib xyuas tau yooj yim dab tsi hauv lawv lub tsev los ntawm txhua qhov chaw hauv ntiaj teb no tsuas yog muaj Internet.

Yog li qhov tsim nyog rau qhov no yog IFTTT app uas muaj nyob hauv Google Play Store rau cov neeg siv Android.

IoS Tus Neeg Siv kuj tseem tuaj yeem tau txais nws los ntawm lawv App Store.

Rau ob qhov xwm txheej nco ntsoov nkag mus los ntawm tib tus as khauj txuas nrog GOOGLE HOME MINI thiab IFTTT tus lej uas koj tau ua cov app. Yog li dab tsi tseem ceeb yog tus lej Gmail lossis tus lej Facebook uas yuav tsum zoo ib yam thoob plaws.

Hauv daim ntawv thov no koj tuaj yeem tsim cov ntawv thov zoo ib yam peb ua hauv IFTTT lub vev xaib thov.

Thaum peb tsim applet ib txwm muaj qhov kev xaiv kom tau txais kev ceeb toom thaum applet sau, los ntawm lub neej ntawd nws yog ON.

Yog li tam sim no saib xyuas thaum ib qho ntawm koj lub cuab yeej raug zuam.

NYEEM LAZINESS !! Hloov tshiab !! nyiam qhov haujlwm no los qhia koj qhov kev txhawb nqa thiab yog tias koj xav tau ntau dua li qhov DIY cov haujlwm yooj yim no …

Pom zoo: