Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Khoom Kho Vajtse thiab Khoom Siv
- Kauj Ruam 2: Txuas (Sensonr -> Breadboard)
- Kauj Ruam 3: Arduino IDE
- Kauj ruam 4: Teeb Koj Li Code
- Kauj Ruam 5: Adafruit IO
- Kauj Ruam 6: Blynk
- Kauj Ruam 7: Txuas Adafruit rau Google Cov Ntawv Siv IFTTT
- Kauj Ruam 8: Txoj Haujlwm Flow
- Kauj Ruam 9: Cov txiaj ntsig
Video: Ntse Hauv: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
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
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)
Breadboard) "src =" https://content.instructables.com/ORIG/F8F/3G24/K7JG443O/F8F3G24K7JG443O-p.webp
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
- Arduino IDE - Ua raws li phau ntawv qhia no rub tawm
- 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
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
- Mus rau Adafruit IO lub vev xaib
- Nkag mus - Yog tias koj tseem tsis tau muaj tus account, sau npe. Yog tias koj muaj, thov nkag mus.
- Txau - Mus rau txau, thiab tsim 3 qhov kev pub ntxiv tshiab: Lub peev xwm hauv, Bin hnov tsw, thiab hais lus
- Dashboard Mus rau dashboard thiab tsim lub dashboard tshiab "Kuv lub ntse ntse"
- 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.
- 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
- Rub tawm Blynk app rau koj lub xov tooj los ntawm App Store / Google play.
- 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.
- 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.
- Xaiv Koj Cov Khoos Phis Tawj - Xaiv cov qauv kho vajtse uas koj yuav siv. ntawm peb tes num, peb siv ESP8266.
- 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).
- Ntxiv Widget - Koj cov phiaj xwm phiaj xwm tsis muaj dab tsi, mus rau Widget Box thiab ntxiv khawm, ceeb toom, thiab Email.
- 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.
- Koj Txoj Haujlwm Blynk tau npaj tiav. TAB SIS ua ntej koj nyem ua si, ua raws cov theem tom ntej.
- Yog xav paub ntxiv thov mus rau Blynk phau ntawv qhia hauv no.
Kauj Ruam 7: 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:
Yuav Ua Li Cas Tsim Lub Ntiaj Teb Ntse Hauv Ntiaj Teb hauv 10 Hnub: 12 Kauj Ruam
Yuav Tsim Li Cas Lub Ntiaj Teb Ntse Hauv Ntiaj Teb hauv 10 Hnub: Kuv tab tom ua haujlwm uas coj cov tub ntxhais kawm los ntawm Tuam Tshoj, Philippines thiab Asmeskas ua ke ntawm pab pawg los sib tw hauv World Robot Olympiad hauv Long Beach, California. Lub ntsiab lus ntawm xyoo no yog Lub Nroog Ntse. Yog li peb tab tom tsim Lub Nroog Ntse los ntawm Ju
Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)
Lub Hnab Ntse Hnab Ntse Ntse Computer: Qhov no yog "hnab looj tes ntse" nas lub computer uas tuaj yeem siv nrog ib lub PC, Mac, lossis Linux computer. Nws tau tsim los siv Binho Nova ntau tus txheej txheem USB host adapter, uas tso cai rau koj txuas cov ntsuas thiab lwm yam khoom siv rau koj lub khoos phis tawj thiab tom qab ntawd txuas ntxiv
Tig Koj Lub Qhov Rooj Hauv Qhov Rooj Mus Rau Hauv Qhov Rooj Ntse Nrog Lub Tsev Pabcuam: 6 Kauj Ruam
Tig Koj Lub Qhov Rooj Qhov Rooj Mus Rau Hauv Qhov Rooj Ntse Nrog Tus Pab Hauv Tsev: Hloov koj lub qhov rooj uas twb muaj lawm mus rau hauv lub qhov rooj ntse. Tau txais kev ceeb toom rau koj lub xov tooj lossis ua ke nrog koj lub koob yees duab lub qhov rooj uas twb muaj lawm kom tau txais daim duab lossis video ceeb toom txhua lub sijhawm ib tus neeg hu koj lub tswb
Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
Ntse Suab Nkauj hauv chav pw thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: Niaj hnub no peb xav muab ob qho piv txwv txog yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau hauv tsev automation: hauv chav dej thiab chav pw . Ob txoj haujlwm zoo ib yam nyob hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los
Ntse Daim iav Siv Lub Hauv Paus Hauv Tablet: 5 Cov Kauj Ruam (nrog Duab)
Daim iav Ntse Siv Siv Lub Hauv Paus Hauv Android: Ib pliag dhau los kuv tau poob kuv lub ntsiav tshuaj Android ntawm nws lub ntsej muag. Cov iav tawg, tab sis qhov seem tseem ua haujlwm tau zoo. Ntawm qhov pheej hmoo raug hu los ntawm kuv tus khub ib zaug ntxiv, kuv muab tso rau hauv qhov kos, vam tias kuv yuav pom qhov siv rau nws qee hnub. Tias