Cov txheej txheem:

Yuav Ua Li Cas Hnab Tsho IoT Qhov Chaw Huab Cua: 7 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Hnab Tsho IoT Qhov Chaw Huab Cua: 7 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Hnab Tsho IoT Qhov Chaw Huab Cua: 7 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Hnab Tsho IoT Qhov Chaw Huab Cua: 7 Kauj Ruam (nrog Duab)
Video: Txiv Neej Cov Kab Menyuam Nyob Ntev Li Cas Hauv Chaw Mos 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Hnab Tsho IoT Chaw Nres Tsheb Huab Cua
Yuav Ua Li Cas Hnab Tsho IoT Chaw Nres Tsheb Huab Cua

Nyob zoo nyeem ntawv!

Hauv cov lus qhia no koj yuav kawm paub yuav ua li cas Huab Cua Cube me me siv D1 mini (ESP8266) uas txuas nrog koj lub tsev WiFi, yog li koj tuaj yeem saib nws tawm ntawm txhua qhov chaw hauv ntiaj teb, tau kawg tsuav koj muaj internet txuas. Zuag qhia tag nrho ua txoj haujlwm no tsis nyuaj thiab tsis muaj peev txheej hnyav, yog li nws yuav zoo meej li koj thawj qhov haujlwm IoT. Yog li cia peb pib.

PS: Nco ntsoov tias qhov no yog kuv thawj Phau Ntawv Qhia yog li tsis yog txhua yam yuav zoo tag nrho.:)

Kauj Ruam 1: Cov peev txheej

Raws li kuv tau hais hauv cov lus qhia, txoj haujlwm no yooj yim heev rau kev tsim thiab tsis xav tau cov khoom siv ntau dhau. Nov yog cov npe ntu:

Cov Khoom Siv Hluav Taws Xob:

WeMos D1mini

NPE 280

I2C OLED Zaub (128x64)

1.5mm Brass Qws lossis Hlau Qws

NCO TSEG: Yog tias koj xav tau cov ntaub ntawv ntau ntxiv txog theese ntu rau ex. qhov twg tau txais lawv, koj tuaj yeem saib mus rau Kauj Ruam 7

Cov cuab yeej rau prototyping thiab kuaj lub Circuit Court:

Cov qhob cij

Jumper xov hlau

USB hlau - Micro USB Hom B rau USB Hom A

Cov Cuab Yeej:

Soldering hlau

Lub rooj zaum thib ob - tsis tas yuav tsum tau ua

Rauj me me - tsis tas yuav tsum tau ua

Kauj Ruam 2: Kev Tshaj Tawm ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Mus Rau Txoj Cai thiab Sib Dhos)

Kev tsim qauv ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Rau Txoj Cai thiab Kev Sib Dhos)
Kev tsim qauv ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Rau Txoj Cai thiab Kev Sib Dhos)
Kev tsim qauv ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Rau Txoj Cai thiab Kev Sib Dhos)
Kev tsim qauv ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Rau Txoj Cai thiab Kev Sib Dhos)
Kev tsim qauv ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Rau Txoj Cai thiab Kev Sib Dhos)
Kev tsim qauv ntawm Breadboard (Hla mus rau Kauj Ruam 3 Yog tias Koj Xav Mus Ncaj Rau Txoj Cai thiab Kev Sib Dhos)

Yog tias koj tsis muaj koj tus pin txuas ntawm koj D1mini/OLED/BME280, tam sim no yog lub sijhawm los ua nws

Ua ntej tshaj plaws tso tag nrho peb cov khoom siv rau ntawm daim ntawv qhia zaub mov. Peb yuav pib los ntawm kev tso D1mini ntawm 2 txoj kab sib cais (daim duab no. 1). Tom qab ntawd peb yuav tso BME280 ncaj ncees nrug ntawm nws (daim duab no. 2). Thiab thaum kawg peb yuav tso OLED rau sab nraud ntawm BME280 (daim duab no. 3). Tam sim no, cia peb txuas lawv ua ke.

Nov yog txhua qhov kev sib txuas:

D1 tus pin rau SCL/SCKpin ntawm OLED thiab SCL/SCK tus pin ntawm BME280

D2 tus pin rau SDA tus pin ntawm OLED thiab SDA tus pin ntawm BME280

G tus pin rau GND tus pin ntawm ob qho tib si, OLED thiab BME280

3.3V tus pin rau BME280 VCC tus pin

Thiab thaum kawg 5V tus pin rau OLED VCC

Txheeb xyuas koj cov kev sib txuas ua ntej txuas nws rau koj lub khoos phis tawj thiab xa cov lej rau nws! Koj tsis xav hlawv dab tsi

Kauj Ruam 3: Tshooj IoT

IoT Tshooj
IoT Tshooj
IoT Tshooj
IoT Tshooj
IoT Tshooj
IoT Tshooj

Qhov no yog qhov yooj yim heev. Ua ntej tshaj plaws, mus rau AppStore thiab rub tawm Blynk app. Tom qab ntawd, qhib nws thiab sau npe. Tom ntej no tsim txoj haujlwm tshiab. Kuv hu kuv li WeatherStation tab sis koj tuaj yeem sau nws txhua yam koj xav tau. Tom qab ntawd, teeb tsa lub cuab yeej xaiv rau ESP8266 thiab txuas hom rau WiFi (daim duab no. 1). Tom ntej no coj mus rhaub tsim qhov project. Koj yuav tsum tau txais email nrog koj tus lej cim pov thawj. Tam sim no dhia mus rau hauv txoj cai (rub tawm txuas hauv qab no) thiab hloov qhov tseem ceeb. Tom qab ntawd, dhia rov qab mus rau Blynk app qhov haujlwm ua haujlwm, coj mus rhaub ntawm qhov screen qhib lub thawv widget (daim duab no. 2). Tam sim no tso 3 lub thawv ntawv tus nqi los ntawm kev coj mus rhaub rau lawv (daim duab no. 3). Txhawm rau teeb tsa lawv, coj mus rhaub rau thawj tus thiab teeb nws lub npe. Kuv hu nws qhov ntsuas kub (qhov no tsis yog yuav tsum tau tab sis nws ua rau txhua yam yooj yim dua thiab koom nrog ntau dua). Raws li cov lus xaiv xaiv tus lej pin 1 thiab hauv daim ntawv lo ib feem "° C" (daim duab no. 4). Tom qab ntawd koj tuaj yeem mus thiab teeb tsa lwm qhov cim npe.

Nov yog daim ntawv me me:

Daim ntawv lo tus nqi no.2:

Lub Npe: Vaum

Cov tswv yim: Tus pin virtual V2

Cov ntawv lo: "%"

Daim ntawv lo tus nqi no.3:

Lub Npe: Qhov siab lossis siab - nyob ntawm qhov chaws koj xaiv

Cov tswv yim: Tus pin virtual V3

Daim ntawv lo: Qhov siab lossis siab - nyob ntawm tus lej

Yog tias koj tau ua txhua yam kom raug, xa koj cov cai rau D1mini, tos me ntsis thiab tom qab ntawd qhov txiaj ntsig yuav tsum tshwm ntawm OLED thiab hauv koj li Blynk app (daim duab 5) (koj yuav tsum nias lub pob ua si nyob rau sab xis saum toj) kaum ntawm qhov screen). Yog tias tsis muaj dab tsi tshwm sim, mus rau ntu kev daws teeb meem.

Kauj Ruam 4: Hloov kho Circuit Court

Freeforming Circuit Court
Freeforming Circuit Court
Freeforming Circuit Court
Freeforming Circuit Court

Okay, qhov no yuav yog qhov nyuaj tshaj plaws yog li npaj tau. Npaj koj cov pas nrig tooj dag/pas nrig hlau (Kuv yuav siv tooj dag lo hlau sib txuas vim kuv nrhiav tsis tau tooj dag tsuas yog pas nrig) thiab ua kom sov koj cov hlau txuas. Tam sim no koj tuaj yeem tsim nws rau hauv txhua yam koj xav tau! Kuv yuav tsim nws mus rau hauv lub voos xwmfab yooj yim. Cov txheej txheem no xav tau kev ua siab ntev thiab sijhawm, yog li tsis txhob maj yog tias koj tsis xav ua txhaum koj li kev sib tw. Koj tuaj yeem pom daim duab tiav hauv daim duab no. 2 Kuv txiav txim siab siv 1, 5mm pas nrig sab nraud, tab sis cov pas nrig nyias nyob hauv qhov nkag (1mm) kom yooj yim rau kev tswj hwm.

CEEB TOOM: Cov laug tsuas yog nyob hauv qhov chaw muaj cua nkag tau zoo, siv tau tuaj yeem tso tawm cov pa phem

Tswv yim:

Rau txoj hlua khoov siv lub rooj zaum zaum thiab tus rauj me me - yog tias koj tsis muaj lub rooj zaum sib tw, tsis yog rauj, pliers thiab tes liab qab yuav txaus

Siv daim kab xev lossis pab txhais tes tuav cov pas nrig ua ke thaum koj muab lawv pov rau hauv. Nws yooj yim dua.

LOS YOG yog tias koj siv cov pas hlau zoo li kuv, koj tuaj yeem siv 2 lub hlau nplaum muaj zog los tuav lawv hauv qhov chaw (daim duab no. 1).

Yog tias koj cov pob qij txha tsis tuav ua ke, tshem lawv tawm thiab ua kom lawv nrog cov ntawv xuab zeb.

Yog tias koj lub tshuab ziab khaub ncaws tsis ntws mus rau qhov khoob, siv cov khoom siv me me los yog ua kom sov sib koom me ntsis ntxiv.

Kauj ruam 5: Qhov kawg

Thaum kawg
Thaum kawg

Tam sim no tsuas yog ib qho uas yuav tsum tau ua yog txuas nws mus rau 5V 1A PSU. Yog tias koj tau ua txhua yam kom raug, nws yuav tsum ua haujlwm zoo (tsis txhob hnov qab xa koj cov cai yog tias koj tsis tau ua dua). Yog tias tsis muaj dab tsi tshwm sim lossis qee yam tsis raug, dhia mus rau ntu kev daws teeb meem.

Kauj ruam 6: Troubleshooting

Teeb meem
Teeb meem

Zaub qhia nan: Txheeb xyuas koj cov thaiv! Koj lub sensor tsis txuas nrog txuas ntxiv.

BME280 tso tawm 0.0: Txheeb xyuas koj cov thaiv! Koj lub sensor tsis txuas nrog txuas ntxiv.

Cov zaub dub/cov ntaub ntawv ntsuas tsis pom: Txheeb xyuas koj li I2C chaw nyob uas siv I2C lub tshuab luam ntawv lossis tshawb xyuas.

Ntaus tsis tau hauv app: Txheeb xyuas yog tias koj nkag mus rau koj lub Token/WiFi lub npe/WiFi lo lus zais raug. Yog tias yog, xyuas koj lub teeb liab wifi. Nws yuav tsis muaj zog lossis koj tsis muaj internet txuas.

Tseem muaj teeb meem lossis koj pom yuam kev hauv cov lus qhia no? Sau rau hauv cov lus thiab kuv yuav teb koj ASAP.:)

Kauj Ruam 7: Qhov Twg Tau Txais Qhov Chaw?

Puas yog koj tshiab hauv tshuab hluav taws xob? Tsis muaj teeb meem! Nov yog cov lus piav qhia luv luv ntawm qee qhov ntawm lub cev, lawv ua haujlwm li cas thiab yuav ua li cas kom tau txais lawv qhov pheej yig tshaj:

1. Kuv yuav tau txais txhua qhov khoom siv hluav taws xob li cas?

Aliexpress. Los ntawm kuv, Aliexpress yog qhov chaw zoo tshaj plaws, nyob deb kom tau txais txhua qhov ntawm qhov chaw rau tus nqi pheej yig. Qhov tsis zoo tsuas yog qhov yooj yim thauj khoom feem ntau siv sijhawm ntau (Txhua qhov chaw los ntawm 2 Lub lis piam mus rau 1, 5 Hlis).

2. BME280 yog dab tsi?

BME280 yog lub ntsuas ntsuas uas tuaj yeem ntsuas Kub, Txheeb Ze Cov Huab Cua thiab Huab Cua Zoo. Nws yog qhov yooj yim heev los siv hauv theese daim ntawv me-cov ntawv thov zoo li lub hnab ntim khoom siv hluav taws xob. Xav paub ntau ntxiv txog ntawm no.

NCO TSEG: D1mini, BME280 thiab OLED zaub tau txhua qhov xaj los ntawm AliExpress

Pocket Sized Contest
Pocket Sized Contest
Pocket Sized Contest
Pocket Sized Contest

Thawj qhov khoom plig hauv kev sib tw Pocket Sized

Pom zoo: