Cov txheej txheem:

IOT Huab Huab - Siv OpenWeatherMaps: 11 Cov Kauj Ruam (nrog Duab)
IOT Huab Huab - Siv OpenWeatherMaps: 11 Cov Kauj Ruam (nrog Duab)

Video: IOT Huab Huab - Siv OpenWeatherMaps: 11 Cov Kauj Ruam (nrog Duab)

Video: IOT Huab Huab - Siv OpenWeatherMaps: 11 Cov Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Image
Image

Nov yog huab uas dai ntawm lub qab nthab ntawm chav tsev thiab ua qee yam qauv raws li qhov tshwm sim rov qab los ntawm internet. Nws khaws cov ntaub ntawv huab cua los ntawm OpenWeatherMaps. Nws tuaj yeem tswj hwm tus kheej los ntawm lub vev xaib sib txuas lossis txiav raws li cov ntaub ntawv tau txais los ntawm OpenWeatherMaps.

Kuv kuj tau teeb tsa nws kom yog tias koj ib txwm xav hloov kho software rau huab (piv txwv li yog tias muaj cov qauv tshiab tau ntxiv lossis kho qhov teeb meem ua tiav) koj tuaj yeem hloov kho software dhau WiFi yam tsis tas yuav ntsaws rau hauv koj lub computer. Tsuas yog qhib huab thiab txuas rau nws los ntawm Arduino software. Nias lub pob upload thiab sau tus password thiab nws ua tiav.

Muaj kaum tus qauv:

  • Ntshiab huab
  • Hnub Caij Nplooj Ntoos Zeeg
  • Hnub poob
  • Hnub tuaj
  • Pos huab
  • Los nag
  • Daus
  • Cua daj cua dub
  • Zaj sawv
  • Hom Seizure (qhov no yog qhov tso dag uas yog kab laum kuv txiav txim siab khaws ntawm kuv cov phooj ywg cov lus qhia)

Kauj Ruam 1: Cov Khoom thiab Cov Cuab Yeej

Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej

Cov ntaub ntawv:

Hluav taws xob:

  • Wemos D1 Mini ESP8266 microcontroller
  • Wemos D1 Mini poj niam thiab txiv neej lub taub hau
  • Wemos D1 Mini protoboard daim thaiv
  • WS2812B RGB LED sawb (5 metres ntawm 60 LED's ib 'meter' sib txawv)
  • 3 tus pin JST txuas (1 khub)
  • 2 tus pin JST txuas (2 khub)
  • XT-60 txuas (1 khub)
  • 2.5 x 5.5 mm DC chim jack
  • 5V 4A phab ntsa-wart style fais fab mov
  • 10K tiv thaiv
  • pushbutton nrog coj
  • 1000uf 25V polarized capacitor
  • txoj cai kaum tus pin headers
  • 4 tus pin poj niam dupont txuas cable
  • 4 tus pin.96 "OLED zaub rau Arduino SPI
  • 2 tub ntxhais LED hlau (16 AWG yog qhov kuv xav qhia)

Lwm yam:

  • Dawb PLA 3D tshuab luam ntawv ntsiabteeb (yog 1.75mm lossis 3mm nyob ntawm lub tshuab luam ntawv koj siv)
  • Ntawv dawb teeb ntawm ntau qhov ntau thiab tsawg
  • Polyester stuffing rau hauv ncoo
  • Kab nuv ntses
  • Qhov muag nuv
  • Cable thauj tog rau nkoj
  • Zip kev sib txuas

Cov Cuab Yeej:

  • Kub kua nplaum phom
  • Kub kua nplaum (ntau ntawm nws)
  • Soldering hlau
  • 60/40 Lead flux core solder wire
  • Riam
  • Txiab
  • Hlau txiav
  • Pliers
  • 3D Tshuab Luam Ntawv

Kauj Ruam 2: Ua Cov Duab Zoo Li Tus Ncej

Ua Huab Zoo Li Tus Ncej
Ua Huab Zoo Li Tus Ncej
Ua Huab Zoo Li Tus Ncej
Ua Huab Zoo Li Tus Ncej
Ua Huab Zoo Li Tus Ncej
Ua Huab Zoo Li Tus Ncej

Ntsaws koj rab phom nplaum kub thiab tshem tawm cov ntawv teeb. Teem txog 10 lossis ntau qhov sib txawv me me rau hauv cov duab zoo ib yam li huab huab. Kub nplaum nws txhua qhov ua ke kom ntseeg tau tias nws muaj peev xwm xaim cov hlua LED txawm tias lub teeb tsis tas yuav muaj nab ntau dhau rau sab nraud. Siv ntau cov kua nplaum kub ntawm no. Qhov zoo dua vim tias nws yuav tuav ua ke zoo dua.

Kauj Ruam 3: Muab tso rau hauv Teeb

Muab tso rau hauv Teeb
Muab tso rau hauv Teeb
Muab tso rau hauv Teeb
Muab tso rau hauv Teeb
Muab tso rau hauv Teeb
Muab tso rau hauv Teeb

Txoj hlua teeb thoob plaws hauv "huab". Koj tsis xav tau ntau lub LED nyob hauv txhua lub teeb. Koj tsuas yog xav tau cov strands txaus kom pom nws. Kuv muaj nws yog li nws tau nkag los thiab tig ncig hauv qab, tawm mus rau lwm qhov ntawm huab. Nco ntsoov rub cov hlua LED nruj kom koj tsuas muaj qhov ntev me ntsis ntxiv los ua lub teeb ci. Nws yuav siv sijhawm me ntsis los txiav txim seb koj xav hlua hlua teeb li cas. Tsis yog txhua lub teeb xav tau teeb hauv nws

Kauj Ruam 4: 3D Sau Cov Ntaub Ntawv rau Microcontroller

3D Luam Cov Case rau Microcontroller
3D Luam Cov Case rau Microcontroller

Luam cov ntaub ntawv rau rooj plaub rau lub microcontroller. Cov ntaub ntawv no yuav tuav D1 Mini, daim npog tiv thaiv protoboard, zaub, khawm, thiab dc jack. Sib sau ua ke tom qab thaum cov khoom siv hluav taws xob tiav. Qhov teeb tsa nkaus xwb uas tseem ceeb rau qhov luam tawm no yog tias koj luam tawm nws tsuas yog daim tiab lossis lub npoo, tsis txhob siv lub nkoj. Kuv pom tias.2mm txheej qhov siab ua haujlwm zoo rau kuv.

Kauj Ruam 5: Sib sau ua ke thiab teeb tsa cov khoom siv hluav taws xob

Sib sau ua ke thiab teeb tsa Electronics
Sib sau ua ke thiab teeb tsa Electronics
Sib sau ua ke thiab teeb tsa Electronics
Sib sau ua ke thiab teeb tsa Electronics
Sib sau ua ke thiab teeb tsa Electronics
Sib sau ua ke thiab teeb tsa Electronics

Sib sau cov khoom siv hluav taws xob raws li qhia hauv cov duab saum toj no. Ua tib zoo saib xyuas kom tsis txhob luv tus pin thiab nco ntsoov tias txhua yam tau txuas txuas kom raug ua ntej ntsaws nws. Thaum txuas lub teeb rau lub rooj tswj hwm kom ntseeg tau tias lub teeb muaj kev sib txuas ncaj qha rau lub zog siv hluav taws xob tuab tuab los tuav lub siab dua tam sim no uas lawv xav tau (zoo li yam txuas nrog XT60 txuas hauv daim duab). Muab cov khoom siv hluav taws xob tso rau hauv rooj plaub thiab ntsia hlau kaw nrog M3 ntsia hlau.

Kauj Ruam 6: Tshaj Tawm Txoj Cai

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Txuas D1 Mini rau hauv koj lub computer thiab qhib Arduino software. Nco ntsoov tias koj tau xaiv D1 Mini board (yog tias nws tsis tau teeb tsa ntxiv los ntawm tus thawj tswj hwm pawg thawj coj). Xaiv cov teeb tsa hauv qab no raws li tau hais los saum toj no hauv daim duab thiab tom qab ntawd xa cov cai rau D1 Mini. Qhov no yuav siv sijhawm me ntsis raws li cov cai yuav siv sijhawm ib ntus los ua ke.

  • Pawg thawj coj: Wemos D1 R2 & mini
  • Upload Ceev: 115200
  • CPU Zaus: 80Mhz
  • Flash Loj: 4M (1M SPIFFS)
  • Debug Port: xiam oob qhab
  • Qib Debug: tsis muaj
  • IwP Variant: v2 Txo Nco
  • Lwv Flash: tag nrho cov ntsiab lus

Kauj Ruam 7: Dai Up Huab

Hang Up Huab
Hang Up Huab
Hang Up Huab
Hang Up Huab
Hang Up Huab
Hang Up Huab

Txuas kab nuv ntses mus rau ob lossis peb lub ntsiab lus ntawm huab, hom phiaj sib nrug ntawm ob sab, Muab lub qhov muag ntsia rau hauv qab nthab qhov uas koj npaj yuav nce nws thiab dai cov huab los ntawm qhov muag uas siv kab nuv ntses. Nws yog lub tswv yim zoo kom muaj txoj kab hluav taws xob tau npaj ua ntej ua qhov no vim tias koj yuav xav tau qee txoj hauv kev los ntsaws huab rau hauv thiab ua kom lub zog.

Thaum teeb tsa lub cable kom paub tseeb tias txhawm rau txiav lub dc jack tawm ntawm koj lub zog siv thiab muab nws txuas rau qhov kawg ntawm txoj hlua siv los ua kom huab. Muab lwm qhov kawg ntawm kab ntawv no rau lub hwj chim qhov twg koj txiav tawm dc jack. Nco ntsoov xyuas txhua qhov kev sib txawv kom koj tsis txhob ntsaws nws tsis raug thiab tua cov LED lossis pawg thawj coj.

Txhawm rau dai lub thawv tswj hauv huab txuas tus zip-khi rau lub nplhaib nyob rau sab saum toj thiab dai nws tawm ntawm sab hauv ntawm ib qho ntawm cov teeb uas LED kab pib.

Kauj Ruam 8: Ua Kom Huab Pom Zoo "Huab"

Ua Huab Cua Saib Ntau
Ua Huab Cua Saib Ntau
Ua Huab Cua Saib Ntau
Ua Huab Cua Saib Ntau

Npog cov huab hauv cov khoom siv polyester. Nws yog qhov yooj yim dua los npog huab nrog lub teeb sab hauv nws tau qhib, yog li pom qhov twg yuav tsum tau ntxiv ntau ntxiv los npog huab. Siv cov kua nplaum kub ntau, Kuv tej zaum siv ib puag ncig 50 lo lus kub kub txuas cov khoom ntim rau lub teeb. Siv cov khoom ntim ntau, thiab yog tias nws zoo li nws tawm koj tuaj yeem rub nws tawm yooj yim heev.

Kauj Ruam 9: Teeb Huab

Teeb Huab
Teeb Huab
Teeb Huab
Teeb Huab
Teeb Huab
Teeb Huab

Thaum txhawb nqa huab nws yuav tsim WiFi network hu ua, IOT-WEATHER-CLOUD. Txuas rau nws, thiab nws yuav xa koj mus rau nplooj ntawv teeb tsa. Yog tias nws tsis hloov koj mus rau nplooj ntawv web ntawm 192.168.4.1

Nias lub khawm teeb tsa WiFi thiab nkag mus rau huab hauv koj li WiFi network. Cov huab yuav ncaws koj tawm ntawm lub portal thaum nws tau teeb tsa thiab qhia koj kom nkag mus rau nplooj ntawv tswj hwm. Tom qab nkag mus rau hauv koj lub network, nkag koj lub khoos phis tawj mus rau tib lub network zoo li huab.

Kauj ruam 10: Lub Vev Xaib

Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib

Txhawm rau nkag mus rau nplooj ntawv tswj hwm huab, nkag mus rau tib lub network WiFi zoo li huab. Nias lub pob ntawm lub npov tswj kom qhib lub vijtsam thiab qhia tus IP chaw nyob. Nkag mus rau tus IP chaw no rau hauv kab ntawv tshawb nrhiav nkag mus rau lub vev xaib. (Koj tus IP chaw nyob rau huab feem ntau yuav txawv dua li kuv). Txhawm rau kom lub vijtsam tso saib tus IP chaw yooj yim nias lub pob. Kuv suav nrog qhov no kom lub vijtsam yuav tsis nyob txhua lub sijhawm thiab raug kev kub hnyiab.

Lub vev xaib muaj peb nplooj ntawv:

  • Lub tsev nplooj ntawv uas qhia tus qauv tam sim no, thiab yog nplooj ntawv tsaws rau thaum koj thawj zaug nkag rau
  • Nplooj ntawv tswj hwm tso cai rau koj hloov tus qauv lossis tso huab rau hauv hom tsis siv neeg, uas ua qauv raws cov ntaub ntawv huab cua
  • Nplooj ntawv teeb tsa tso cai rau koj hloov chaw, tus neeg siv lub npe, tus lej zais, thiab OpenWeatherMap API tus yuam sij

Txhawm rau nkag mus rau kev tswj hwm lossis teeb tsa nplooj ntawv koj yuav tsum nkag mus rau tus password thiab lub npe siv nyob rau hauv qhov pop up uas tshwm thaum koj nyem rau ntawm qhov txuas mus rau ib nplooj ntawv. Lub npe siv tsis raug yog: admin thiab tus password tsis yog: password. Cov no tuaj yeem hloov pauv tom qab yog tias koj xav tau

Txhawm rau pab kom tsis siv neeg hom koj yuav tsum nkag mus rau hauv koj lub nroog tus lej thiab tseem tsim thiab nkag mus rau hauv OpenWeatherMap API tus yuam sij. Lub nroog daim ntawv teev npe tuaj yeem pom ntawm no: https://raw.githubusercontent.com/ZGoode/IOT-Cloud… Teem huab mus rau hom tsis siv neeg ntawm nplooj ntawv tswj kom pab tau nws. (Kuv xav kom rub tawm cov ntawv kab ntawv rau lub nroog ID daim ntawv. Nws yog qhov loj heev thiab yuav poob koj lub browser)

Kauj Ruam 11: Hloov Kho Software Tshaj WiFi

Hloov kho Software Tshaj WiFi
Hloov kho Software Tshaj WiFi

Qhib huab thiab xyuas kom nws txuas nrog tib lub network zoo li koj lub khoos phis tawj. Xyuas kom tseeb tias koj tau nruab sej 2.7. Koj tuaj yeem rub nws ntawm no yog tias koj tsis muaj nws. Nov yog qhov ua rau OTA ua haujlwm rau Arduino. Yog tsis muaj OTA yuav tsis ua haujlwm. OTA yog Tshaj Tawm Huab Cua (lub ntsiab lus xa cov lej hla WiFi). Qhov no txhais tau tias koj yuav tsis tau tshem ESP8266 los ntawm koj cov huab kom hloov kho software.

Txhawm rau hloov kho huab qhib Arduino software nrog txoj haujlwm, thiab hauv qab chaw nres nkoj xaiv lub network chaw nres nkoj. Tom qab qhov no tau xaiv koj tuaj yeem xa cov cai los ntawm nias lub pob upload zoo li koj ib txwm xav tau. Qhov ntawd yog txhua yam muaj rau OTA.

Pom zoo: