Cov txheej txheem:

Ntse Hauv: 9 Kauj Ruam
Ntse Hauv: 9 Kauj Ruam

Video: Ntse Hauv: 9 Kauj Ruam

Video: Ntse Hauv: 9 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Hlis ntuj nqeg
Anonim
Ntse Hauv
Ntse Hauv
Ntse Hauv
Ntse Hauv

Vim Li Cas Ntse Hauv?

Txhua tus neeg muaj cov khib nyiab. Thiab feem ntau yuav yog, txhua tus tau ntsib qhov kev sib cav mob ntawm leej twg yuav tsum nqa cov thoob khib nyiab thiab thaum twg. Tsis ntev los no peb tau muaj kev sib cav hauv peb lub tsev, thiab txiav txim siab tias nws yog lub sijhawm los xaus qhov kev vwm no.

Peb tau tsim cov txheej txheem uas yuav ceeb toom peb thaum lub thoob tau puv lawm, lossis thaum nws mus txog qib cawv cawv uas xav tau hloov pauv (piv txwv li, nws muaj ntxhiab tsw phem). Peb siv ob lub ntsuas cua; ib qho uas txheeb xyuas cov thoob khib nyiab hauv lub thoob, thiab lwm qhov uas txheeb xyuas qib cawv hauv lub ntim cov khoom. Ob lub ntsuas hluav taws xob xa cov ntaub ntawv los ntawm kev xa ntawv ceeb toom rau peb lub xov tooj ntawm tes thiab email thaum qib mus txog qee yam.

Puas yog xav ua kom mob siab rau-ceeb toom koj tus phooj ywg/koom nrog ua lawv feem thiab tshem tawm cov thoob khib nyiab? Peb tau tsim qhov khoom xwb! Yog tias lawv nyob hauv tsev, koj tuaj yeem ceeb toom rau lawv tias lub thoob puv/tsw ntxhiab nrog nias lub pob ntawm koj lub xov tooj ntawm tes, uas yuav ua rau lub thoob hu nkauj me ntsis.

Cov qhob cij tiag tiag thiab butter ntawm qhov tsim no yog, tau kawg, cov ntxhiab tsw, vim tias ntxhiab tsw pom (txawm tias qee zaum nyuaj rau nco). Cov yam ntxwv no tau tsim los txhawm rau txhim kho koj li kev tshem tawm cov thoob khib nyiab, yog li koj yuav tsis muaj kev sib cav txog nws ntxiv lawm!

Peb yog leej twg?

Qhov haujlwm IoT no tau tsim los ntawm Udi Rahav thiab Ran Havaletzki. Peb yog Computer Science cov tub ntxhais kawm los ntawm Interdisciplinary Center (IDC), Herzliya, Israel. Peb tau los nrog lub tswv yim no ua peb qhov project IoT zaum kawg thiab peb txaus siab tiag tiag los qhia rau koj.

Hauv qab no koj yuav pom cov kauj ruam los ua txoj haujlwm no hauv txoj hauv kev yooj yim thiab ua phooj ywg yog li koj tseem tuaj yeem ua tus ntse hauv koj tus kheej. Txaus siab rau!

Khoom siv

Ib qho me me mus rau nruab nrab cov thoob khib nyiab uas muaj lossis tsis muaj lub hau

Daim npog qhov ncauj

Kauj Ruam 1: Khoom Kho Vajtse thiab Khoom Siv

Kev Kho Vajtse thiab Khoom Siv
Kev Kho Vajtse thiab Khoom Siv
Kev Kho Vajtse thiab Khoom Siv
Kev Kho Vajtse thiab Khoom Siv
Kev Kho Vajtse thiab Khoom Siv
Kev Kho Vajtse thiab Khoom Siv

Kho vajtse

Shield Rau NodeMcu - Hloov Breadboard kom yooj yim, tab sis koj tuaj yeem siv Breadboard ib yam

ESP8266 Wifi module

  • Hais lus
  • LM386 Amplifier - Siv los ua tus hais lus nrov dua.

Jumper Hlau

Sensors

HC-SR04 Ultrasonic Sensor

MQ3 Cawv Sensor

Software

  • Arduino IDE Cov
  • Blynk daim ntawv thov
  • Adafruit yog
  • IFTTT
  • Gmail
  • Google Drive
  • Google Ntawv

Kauj Ruam 2: Txuas (Sensonr -> Breadboard)

Arduino IDE Cov
Arduino IDE Cov

Breadboard) "src =" https://content.instructables.com/ORIG/F8F/3G24/K7JG443O/F8F3G24K7JG443O-p.webp

Teeb Koj Txoj Cai
Teeb Koj Txoj Cai

Breadboard) "src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">

HC-SR04 Ultrasonic Sensor

  • VCC -> V+
  • Qhov tseeb -> D5
  • Ncha -> D0
  • Nwg -> G (-)

mq3 cawv cawv

  • A0 -> A0
  • GND -> G (-)
  • VCC -> V+

Hais Lus - Txuas mus rau Amplifier

  • + -> GND
  • - -> TUG

LM386 Amplifier

  • GND -> G
  • GND -> G
  • IN -> V+
  • VCC -> D7

Kauj Ruam 3: Arduino IDE

Kev teeb tsa & teeb tsa

  1. Arduino IDE - Ua raws li phau ntawv qhia no rub tawm
  2. DRIVERS - Ua raws li phau ntawv qhia no thiab rub CH340 Tsav Tsheb, tom qab ntawv Ua raws li phau ntawv qhia no rau Txhim Kho ESP8266 Arduino Addon.

Kauj ruam 4: Teeb Koj Li Code

Teeb Koj Txoj Cai
Teeb Koj Txoj Cai

Tom qab koj rub tawm qhov haujlwm, koj yuav muaj 3 tabs.

Mus rau config.h cov ntaub ntawv

wifi_name - Lub npe wifi koj lub computer txuas nrog.

wifi_password - wifi npassword koj lub computer txuas nrog.

BLYNK_KEY - koj Blynk Token (los ntawm theem 4 theem 5).

AIO_USERNAME - Koj Adafruit IO tus neeg siv lub npe (los ntawm theem 3 theem 6).

AIO_KEY - Koj Adafruit IO qhov tseem ceeb (los ntawm theem 3 theem 6).

USER_EMAIL - sau koj tus email ntawm no kom tau txais cov lus ceeb toom.

Kauj Ruam 5: Adafruit IO

Adafruit IO
Adafruit IO
Adafruit IO
Adafruit IO
Adafruit IO
Adafruit IO
  1. Mus rau Adafruit IO lub vev xaib
  2. Nkag mus - Yog tias koj tseem tsis tau muaj tus account, sau npe. Yog tias koj muaj, thov nkag mus.
  3. Txau - Mus rau txau, thiab tsim 3 qhov kev pub ntxiv tshiab: Lub peev xwm hauv, Bin hnov tsw, thiab hais lus
  4. Dashboard Mus rau dashboard thiab tsim lub dashboard tshiab "Kuv lub ntse ntse"
  5. Thaiv - Tom qab koj tsim lub dashboard, nyem rau nws. Koj lub dashboard tsis muaj dab tsi, mus rau "Tsim lub block tshiab" (khawm xiav nrog [+] ntawm nws) thiab 3 kab ntawv, rau txhua kab teeb xaiv qhov sib txawv ntawm qib 3.
  6. KOJ AIO KEY - nyem rau ntawm "Koj AIO KEY" khawm (daj nrog tus yuam sij ntawm nws), lub qhov rai tshiab yuav qhib nrog koj lub npe siv, thiab Tus lej tseem ceeb. Thov sau lub npe siv thiab tus yuam sij nquag, peb yuav xav tau nws tom qab los sau cov cai.

Kauj Ruam 6: Blynk

Blynk
Blynk
Blynk
Blynk
Blynk
Blynk
  1. Rub tawm Blynk app rau koj lub xov tooj los ntawm App Store / Google play.
  2. Tsim Blynk Account - Tom qab koj rub tawm Blynk App, koj yuav tsum tsim tus lej Blynk tshiab. Tus lej no yog cais los ntawm tus as khauj siv rau Blynk Forums, yog tias koj twb muaj lawm.
  3. Tsim Txoj Haujlwm Tshiab - Tom qab koj ua tiav nkag mus rau hauv koj tus lej nyiaj, pib los ntawm kev tsim txoj haujlwm tshiab.
  4. Xaiv Koj Cov Khoos Phis Tawj - Xaiv cov qauv kho vajtse uas koj yuav siv. ntawm peb tes num, peb siv ESP8266.
  5. Auth Token - yog tus cim tshwj xeeb uas xav tau los txuas koj cov cuab yeej rau koj lub xov tooj. Txhua qhov haujlwm tshiab koj tsim yuav muaj nws tus kheej Auth Token. Koj yuav tau txais Auth Token txiav ntawm koj tus email tom qab tsim qhov project. Koj tseem tuaj yeem luam nws ntawm tus kheej. Nyem rau ntu khoom siv thiab xaiv cov cuab yeej xav tau, thiab koj yuav pom token (Thov sau nws, peb yuav xav tau nws tom qab ntawm tus lej).
  6. Ntxiv Widget - Koj cov phiaj xwm phiaj xwm tsis muaj dab tsi, mus rau Widget Box thiab ntxiv khawm, ceeb toom, thiab Email.
  7. Khawm teeb tsa - Qhov ntsuas tseem ceeb tshaj plaws rau teeb yog PIN. Cov npe ntawm cov pins qhia txog lub cev pins txhais los ntawm koj cov cuab yeej siv. Yog tias koj tus SPEAKER txuas nrog Digital Pin 7 - tom qab ntawd xaiv D7 (D - sawv rau Digital). Tsis tas li, thov xaiv PUSH MODE.
  8. Koj Txoj Haujlwm Blynk tau npaj tiav. TAB SIS ua ntej koj nyem ua si, ua raws cov theem tom ntej.
  9. Yog xav paub ntxiv thov mus rau Blynk phau ntawv qhia hauv no.

Kauj Ruam 7: Txuas Adafruit rau Google Cov Ntawv Siv IFTTT

Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
Txuas Adafruit rau Google Cov Ntawv Siv IFTTT

IFTTT

"Yog Qhov No Yog Li ntawd, tseem hu ua IFTTT, yog qhov kev pabcuam pub dawb hauv web uas tsim cov saw ntawm cov lus yooj yooj yim, hu ua applets. 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."

Peb yuav siv qhov kev pabcuam no los tsim applets, cuam tshuam los ntawm kev hloov pauv uas tshwm sim hauv Adafruit, thiab hloov kho Google Sheet siv ntau txoj haujlwm, piv txwv ntawm cov ntaub ntawv koj tuaj yeem sib sau nrog cov ntaub ntawv peb tau txais thiab los ntawm qhov uas tsim cov ntaub ntawv ntau ntxiv txog peb lub thoob khib nyiab niaj hnub

1. Mus rau IFTTT lub vev xaib thiab nyem txuas ntxiv nrog Google.

2. Nyob rau sab xis saum toj nyem rau ntawm "Tsim" khawm.

3. Xaiv qhov yog tias nqe lus los ntawm txhaj rau ntawm lub xwmfab dub nrog cov xim dawb ntxiv rau hauv nws.

4. Xaiv qhov kev pabcuam Adafruit.

5. Xaiv qhov "Txhua cov ntaub ntawv xwm txheej tshiab" txhais.

6. Xaiv Adafruit lub npe pub ("muaj peev xwm") - lub npe koj pub rau koj saib. thiab nyem "Tsim kom muaj txiaj ntsig".

7. Mov mus rau qhov "Tom Qab Ntawd" ntu, nyem rau ntawm lub xwmfab dub nrog lub ntsej muag dawb ntxiv rau hauv.

8. Xaiv Google Sheets kev pabcuam.

9. Xaiv qhov "Add row to spreadsheet" action.

10. Tom ntej no, hloov daim Spreadsheet lub npe kom suav nrog tsuas yog lub npe pub thiab nyem "Tsim kev".

11. Paub meej tias koj daim ntawv thov tshiab thiab nyem "Ua tiav".

Nrog koj zoo siab! koj nyuam qhuav tsim IFTTT applet.

Tam sim no koj tuaj yeem tsim lwm qhov rau "Hnov" pub los ntawm kev tsim tshiab applet thiab hauv qib 6 xaiv lwm Adafruit cov npe noj.

Google Drive

tom qab koj tsim koj li Adafruit dashboard thiab IFTTT's applets mus rau koj li Google Drive> adafruit> io

sab hauv koj yuav pom cov ntawv tais ceev tseg nrog Adafruit cov npe noj, sab hauv koj yuav muaj daim ntawv nthuav tawm.

Google Ntawv

Tom qab koj tsim tag nrho cov saum toj no koj tuaj yeem mus thiab pom cov ntaub ntawv pib ntws mus rau hauv koj Daim Ntawv Qhia.

Nov yog qee qhov piv txwv kev ua haujlwm peb tsim uas koj tuaj yeem luam rau hauv koj daim Spreadsheet txaus siab.

Hnub no ntau tshaj {{pub lub npe}}:

= QUERY ($ A: $ B, "xaiv max (A) qhov B muaj" "& CONCATENATE (SWITCH (MONTH (TODAY ())), 1," Lub Ib Hlis ", 2," February ", 3," March ", 4, "Plaub Hlis", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, " Kaum Ob Hlis ")," ", HNUB (TODAY ()),", ", YEAR (TODAY ())) &" '")

Nruab nrab hnub no {{npe npe}}:

= QUERY ($ A: $ B, "xaiv avg (A) qhov twg B muaj" "& CONCATENATE (SWITCH (MONTH (TODAY ())), 1," Lub Ib Hlis ", 2," February ", 3," March ", 4, "Plaub Hlis", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, " Kaum Ob Hlis ")," ", HNUB (TODAY ()),", ", YEAR (TODAY ())) &" '")

Lub hli siab tshaj {{pub lub npe}}:

= QUERY ($ A: $ B, "xaiv max (A) qhov B muaj" "& CONCATENATE (SWITCH (MONTH (TODAY ())), 1," Lub Ib Hlis ", 2," February ", 3," March ", 4, "Plaub Hlis", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, " Kaum Ob Hlis ")," "&" ""))

Lub hli nruab nrab {{pub lub npe}}:

= QUERY ($ A: $ B, "xaiv avg (A) qhov twg B muaj" "& CONCATENATE (SWITCH (MONTH (TODAY ())), 1," Lub Ib Hlis ", 2," February ", 3," March ", 4, "Plaub Hlis", 5, "May", 6, "June", 7, "July", 8, "August", 9, "September", 10, "October", 11, "November", 12, " Kaum Ob Hlis ")," "&" ""))

Kauj Ruam 8: Txoj Haujlwm Flow

Pom zoo: