Cov txheej txheem:

IoT IoT Kov Khawm: 10 Kauj Ruam
IoT IoT Kov Khawm: 10 Kauj Ruam

Video: IoT IoT Kov Khawm: 10 Kauj Ruam

Video: IoT IoT Kov Khawm: 10 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Cov iav IoT Kov Khawm
Cov iav IoT Kov Khawm

Kuv muaj ib daim iav ITO tso ncig ib ncig ntawm lub khw lwm hnub thiab xav txog muab nws tso rau qee qhov siv tau zoo. ITO, Indium Tin Oxide, iav feem ntau pom nyob rau hauv cov kua siv lead ua kua, lub hnub ci, lub dav hlau lub dav hlau qhov rais, thiab lwm yam. Qhov sib txawv ntawm ITO iav thiab iav zoo tib yam yog tias ITO iav yog cov khoom siv vim qhov sib txawv ntawm ITO uas tau tso rau nto iav. Txog qhov haujlwm no, peb yuav siv iav ITO los ua lub pob kom ua rau IoT pawg thawj coj saib xa ntawv ceeb toom siv IFTTT (Yog tias qhov no yog qhov ntawd) rau lub xov tooj. Yeej, Kuv xav rov tsim lub "Qhov ntawd yooj yim" khawm los ntawm Staples tab sis siv iav ua lub pob thawb.

Khoom siv

  • NodeMCU (ESP 8266 sib txawv)
  • Compression caij nplooj ntoos hlav (1/4 "x 13/32")
  • Adafruit capacitive touch board
  • PCB pawg thawj coj saib (2.75 "x 1.25" ob tog)
  • ITO iav (2 "x 2")
  • 4 Cov xov hlau sib txawv xim (2 "22AWG cov xov hlau)
  • 1 Cov Hlau Daj (5 "22AWG cov xov hlau)

Cov Cuab Yeej:

  • Cov hlua hlau
  • Hlau txiav
  • 3D tshuab luam ntawv (PLA - 1.75 mm)
  • Daim kab xev hluav taws xob
  • Kub kua nplaum
  • Pliers
  • Soldering hlau
  • Solder nqus
  • Solder (Tsis muaj Lead)
  • Cov kab laug sab laug

Kauj Ruam 1: Tsab Cai Txheej Txheem Pawg Thawj Coj

Prototype Board Layout
Prototype Board Layout
Prototype Board Layout
Prototype Board Layout

Siv cov txheej txheem qhia saum toj no, SDA thiab SCL pins yuav tsum txuas nrog NodeMCU's SDA thiab SCL pins (D2 thiab D1). Siv cov xaim daj los xaws tus pin 1 ntawm Adafruit lub peev xwm tawg tawm pawg thawj coj saib. Tshem tawm me ntsis (0.5 ) ntawm cov yas yas los ntawm lwm qhov kawg ntawm cov xaim daj.

Thaum cov laug cam nyob ntawm lub khob cij, qhib koj li Arduino IDE. Mus rau> Sketch> Tswj Cov Tsev Qiv Ntawv thiab tshawb rau Adafruit_MPR121. Nruab Adafruit MPR121 los ntawm Adafruit lub tsev qiv ntawv. Txog cov lus piav qhia ntxaws txog kev txuas koj li MPR 121 (lub rooj sib tw muaj peev xwm tawm tau), txheeb xyuas Adafruit cov lus qhia.

Mus rau> Cov Ntaub Ntawv> Piv txwv> Adafruit_MPR121> MPR121test.ino. MPR121test.ino yuav pab tshawb xyuas yog tias pawg thawj coj saib xyuas tsis raug txuas nrog NodeMCU. Yog tias txhua yam ua haujlwm tau zoo, thaum koj kov cov hlau ntawm cov hlau daj, Serial Monitor yuav tsum qhia "1 tau raug kov thiab tso tawm". Yog tias koj kov cov ntaub qhwv 0-11, Serial Monitor tso tawm yuav tsum zoo li daim duab thib peb saum toj no.

Kauj ruam 2: Solder Layout

Solder Layout
Solder Layout
Solder Layout
Solder Layout

Raws li cov duab qhia, txuas lub rooj sib tw ua kom tawg mus rau NodeMCU siv 4 lub xov hlau. Tsuas yog txoj cai ntawm tus ntiv tes xoo, siv cov xov liab thiab dub rau ViN 3.3V thiab GND GND kev sib txuas. Yog tias SDA/SCL cov pins tau muab muag tsis raug, lawv yuav tsum tau rov muag dua kom raug. Vim yog Adafruit cov tsev qiv ntawv thiab lub hauv paus SDA thiab SCL pins, nws nyob ze tsis tuaj yeem hloov pauv tus lej tom qab ntawm tus lej ntawm cov lus qhia no.

Kauj Ruam 3: Teeb IFTTT

Teeb tsa IFTTT
Teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT

Ua pa tob tob. Qhov no yuav tsis siv sijhawm ntev los teeb tsa.

  1. Mus rau IFTTT lub vev xaib.
  2. Nyem rau +Qhov no kom mus rau qhov tshawb nrhiav bar ntawm cov kev pabcuam.
  3. Ntaus hauv qhov tshawb nrhiav "webhooks."

    • Koj yuav tsum pom daim duab peb sab nrog cov ces kaum sib npaug hauv ib lub thawv
    • Ntawd yog Webhooks logo
  4. Nyem rau ntawm lub npov thiab tom qab ntawv "Tau txais lub vev xaib thov" lub npov ntawm nplooj ntawv tom ntej.

Txog lub npe txheej xwm, ntaus "ITO_touch" raws li qhia hauv daim duab thib peb saum toj no. Nco ntsoov qhov no rau koj qhov program Arduino raws li nws lub npe ua rau.

  1. Nyem rau "Tsim Trigger" khawm.
  2. Koj yuav raug coj mus rau lwm lub qhov rai uas qhov +Qhov no hloov nrog Webhooks logo.
  3. Nyem rau ntawm +Qhov ntawd thiab ntaus hauv kab ntawv tshawb fawb "Cov ntawv ceeb toom."
  4. Lub tswb nrov hauv lub thawv yuav tsum tshwm. Nyem rau "Xa ntawv ceeb toom nplua nuj los ntawm IFTTT app."
  5. Hloov cov ntawv hauv lub thawv ntawv nrog cov lus zoo xws li "Hav, Koj tau txais qhov no! Mus koj!"
  6. Rau cov duab url, siv cov duab ntawm lub ntsej muag luag ntxhi
  7. Ua kom tiav los ntawm txhaj rau "Tsim Ua" khawm thiab "Ua tiav khawm ntawm nplooj ntawv tom ntej.

Tau txais Webhooks txhais

Koj yuav tsum nyob rau tib lub vijtsam zoo li Duab #5 (qhia lub Webhooks thiab Cov Lus Ceeb Toom) nrog cov ntawv "Yog Tus Tsim Cov Txheej Txheem" ITO_touch ", tom qab ntawd xa cov ntawv ceeb toom nplua nuj los ntawm IFTTT app." Yog tias tsis yog, nyem rau ntawm lub tsev tab tom qab nyem rau ntawm lub npov nrog cov lus hais los saum no.

  1. Nyem rau ntawm Webhooks logo.
  2. Lub logo yuav coj koj mus rau Webhooks nplooj ntawv (pom hauv cov duab saum toj no)
  3. Nyem cov ntaub ntawv khawm ze rau sab xis saum toj ntawm Webhooks nplooj ntawv
  4. Koj yuav raug coj mus rau lwm nplooj ntawv uas yuav qhia koj tus yuam sij rau Webhooks
  5. Luam thiab muab tus yuam sij ntawd tso rau qhov chaw nyab xeeb vim qhov xav tau rau Arduino program

Nyob zoo! Dhau li ntawm koj li Wifi thiab tus password, Arduino program nyob rau theem tom ntej yog npaj mus.

Kauj Ruam 4: Ua Haujlwm NodeMCU

Programming lub NodeMCU
Programming lub NodeMCU

Okay tsuas yog saib rau plaub thaj chaw no:

  • const char* ssid
  • const char* lo lus zais
  • char MakerIFTTT_Key
  • char MakerIFTTT_Event

Tus yuam sij Webhooks yuav tsum tau muab rau MakerIFTTT_Key thiab Webhooks txhais lub npe ("ITO_touch") yuav tsum tau muab rau MakerIFTTT_Event. SSID thiab Password yog rau Wifi router IoT yuav txuas rau.

Txuas lub rooj tsavxwm mus rau lub khoos phis tawj thiab xa cov lej. Yog tias txhua yam zoo mus, cov lus hauv qab no uas pom hauv cov duab saum toj no yuav tsum tshwm nyob rau hauv Serial Monitor.

Kauj Ruam 5: Tau Txais Ntawv Xov Tooj

Tau Xov Tooj Ceeb Toom
Tau Xov Tooj Ceeb Toom

Rub tawm IFTTT app los ntawm iOS app lossis Android khw. Thaum koj tau kos npe rau hauv, koj yuav tsum pom lub app peb nyuam qhuav ua rau ntawm lub vijtsam hauv tsev. Txhawm rau sim ua txhua yam software-txawj ntse, yog tias cov hlau daj tau kov, yuav tsum ceeb toom ntawm lub xov tooj, raws li qhia.

Kauj Ruam 6: 3D Luam Cov Case thiab Iav Ncej

Kauj Ruam 7: Sib Sau Cov Case

Sib Sau Cov Case!
Sib Sau Cov Case!
Sib sau rooj plaub!
Sib sau rooj plaub!

Rooj sib tham

Muab cov khoom siv hluav taws xob tso rau hauv qhov thiab txuas nrog qee cov kua nplaum kub. Nco ntsoov tias cov hlau daj tau pub los ntawm lub qhov ua ntej txuas lub rooj tsavxwm rau rooj plaub. Nrog cov hlau nthuav tawm (tam sim no pom qhwv rau ntawm thawj daim duab), tshem cov yas yas ntawm cov xaim daj, nthuav tawm cov hlau. Tam sim no yog lub sijhawm zoo los tso qhov sib txuam rau hauv lub qhov rooj plaub ntawm rooj plaub.

** Lub microUSB yuav tsum pom los ntawm sab qhov qhov!

Ncej los ua ke

  • Txuas txoj kev tsheb nqaj hlau sab saum toj mus rau sab laug thiab sab xis (txoj kab sab saum toj thiab hauv qab muaj cov thais sab nraud ntawm ob sab ntawm lawv thaum sab xis thiab sab laug yuav tsum muaj sab hauv).
  • Tam sim no yuav yog lub sijhawm zoo los saib sab twg ntawm cov iav yog cov khoom siv. Kuv tau ua raws phau ntawv qhia no txhawm rau tshuaj xyuas txuas ntxiv siv lub multimeter
  • Xaub lub iav rau ntawm txoj kab.
  • Muab txoj kev tsheb nqaj hlau xaus rau ntawm tus ncej. Siv cov nplaum rau ntawm cov pob qij txha kom ruaj khov txhua yam.

Kauj Ruam 8: Ua tiav Kev Tsim

Ua tiav Kev Tsim
Ua tiav Kev Tsim

Thaum muaj lub rooj tsav xwm txuas nrog lub khoos phis tawj, tso lub thav duab xws li cov iav coj los sib txuas nrog cov xaim hluav taws xob thiab ib nrab lub voj voos puag ncig lub caij nplooj ntoo hlav. Kaw cov phab ntsa vaj huam sib luag rau rooj plaub. Tam sim no koj ua tiav! Yog tias txhua yam sib sau ua ke kom raug, thaum koj nias lub caij nplooj ntoo hlav sab ntawm qib, koj yuav tsum tau txais xov tooj ceeb toom. Yog tias tsis yog, xyuas seb cov hlau uas tsis kub hnyiab tsis kov lub khob. Cov xaim yuav tsum nquag kov lub khob tshwj tsis yog koj nias lub thav duab.

Kauj Ruam 9: Dab Tsi Mus Ntxiv

Los ntawm kev thawb rau ntawm lub caij nplooj ntoo hlav sab ntawm lub iav thav duab, lub thav duab tig me ntsis los txuas lub iav ITO los ntawm xaim. Pawg neeg tawg rog xa cov ntaub ntawv no mus rau IoT txhawm rau txheeb xyuas cov laj thawj. IoT lees paub lub iav tsis kov cov hlau thiab ua lub vev xaib thov los ntawm Webhooks. IFTTT cov laj thawj yuav siv qhov kev thov thiab, yog tias xa kom raug, ua qhov kev ceeb toom ua. Qhov no qhia IFTTT app hauv xov tooj los tsim lub zog ceeb toom.

Kauj ruam 10: Txhua yam ua tiav

Muab koj tus kheej rau sab nraub qaum, ua rau koj ua nws mus txog thaum kawg! Tawm tswv yim hauv qab no yog tias koj xav tau kev pab nrog ib qho ntawm cov kauj ruam qhia

Pom zoo: