Cov txheej txheem:
- Kauj Ruam 1: Sib sau ua ke MKR1000 thiab 8x8 Zaub rau Mini Bread Board
- Kauj ruam 2: Tsim Koj Tus Huab Cua Api Account
- Kauj Ruam 3: Flash lossis Program Koj MKR1000
- Kauj ruam 4: Ua tiav
Video: Yuav Ua Li Cas Thiaj Li Pom Zoo Huab Cua Hauv Zos: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Txog txoj haujlwm
Microcontroller tuaj yeem ua kev lom zem thiab lom zem tib lub sijhawm, ntxiv qee qhov txuas hauv internet rau Internet tiag ntawm yam! Cia kuv qhia koj li cas kuv tau tswj los tsim cov xwm txheej huab cua me me siv 8x8 matrix zaub thiab ntxim hlub tab sis lub zog puv MKR1000.
Kuv yuav siv Genuino MKR1000 txhawm rau nqa qhov ntsuas kub, av noo thiab huab cua ntawm thaj chaw xaiv.
Qhia cov xwm txheej los tso tawm hauv cov duab swb cov qauv.
Kev sib tw
Siv lub zog ntawm koj lub microcontroller thiab nce qib rau Internet tiag ntawm Yam!
Txij li 8x8 Matrix yog qhov tseem ceeb ntawm cov LEDs, Kuv yuav xav tau program nws los qhia cov ntawv thiab cov tsiaj ntawv cuam tshuam
Hauv qhov haujlwm no koj tseem yuav kawm paub yuav ua li cas
- siv so qhov kev pabcuam web api
- yuav siv lub zog ntawm koj lub microcontroller li cas
- siv internet txuas rau IOT
- yuav ua li cas cais cov ntaub ntawv Json
- yuav siv xov thiab Wifi tsev qiv ntawv hauv Arduino li cas
Kauj Ruam 1: Sib sau ua ke MKR1000 thiab 8x8 Zaub rau Mini Bread Board
Kev teeb tsa yog yooj yim zoo nkauj, peb tsuas yog yuav tsum tau xa cov 8x8 matrix zaub rau peb lub microcontroller.
Yuav tsum muaj
- 16pcs Txiv neej rau Poj Niam dhia
- Mini Cij Board
- Microcontroller
- 8x8 Matrix Zaub '
Los Ua Ke Zaub
Faib koj cov neeg dhia mus rau pawg ntawm 8pcs.
Nco ntsoov tias cov xov hlau jumper tau ua tiav zoo.
Txuas 8 tus poj niam dhia mus rau thawj 8 tus pin ntawm matrix zaub.
Txuas lwm 8 tus poj niam dhia mus rau tus thib 8 8 tus pin ntawm matrix zaub.
Txuas rau microcontroller
Txuas lub microcontroller mus rau lub khob cij mini
Siv qhov kawg txiv neej tus pin ntawm cov xov hlau jumper, ntxig rau ntawm thawj 8 qhov uas microcontoller pins txuas (5-A5).
Ntxig qhov seem ntawm lwm qhov 8 qhov uas microcontoller pins txuas (6-13).
Kho qhov 8x8 Matrix Display yog li nws tau tig rau pem hauv ntej thaum koj tso nws rau ntawm lub rooj.
Kauj ruam 2: Tsim Koj Tus Huab Cua Api Account
Txhawm rau kom raug hu ua Internet of Things, peb yuav tsum nqa qee cov ntaub ntawv los ntawm is taws nem.
Kuv siv APIXU API los nqa cov ntaub ntawv huab cua los ntawm kuv qhov chaw xaiv.
Sau npe rau tus as khauj ntawm no https://www.apixu.com/login.aspx thiab tau txais koj tus lej API tus lej.
Ua siab dawb siv kuv tus kheej tus lej api
Txoj hlua apiKey = "8f0ff191defb4a20b5583518171203"; // koj tus lej apixu api
Kauj Ruam 3: Flash lossis Program Koj MKR1000
Ntxiv qhov txuas HexFont.h txuas rau koj lub tsev qiv ntawv Arduino.
Siv txuas yooj yim_weather_display.ino los nyem koj lub microcontroller.
Ntawm qhov no ntawm txoj cai:
Hloov nrog koj qhov chaw teeb tsa WiFi
char ssid = ""; // koj lub network SSID (lub npe) char pass = ""; // koj tus password network (siv rau WPA, lossis siv tus yuam sij rau WEP)
Hloov nrog koj tus Apixu Api Key thiab qhov chaw tswj hwm
Txoj hlua apiKey = "8f0ff191defb4a20b5583518171203"; // koj tus lej apixu api
Txoj hlua tswj = "14.3335591, 120.9758737"; // koj qhov chaw tswj hwm
Koj kuj tseem tuaj yeem hloov pauv cov ntaub ntawv twg los ua kom pom ntawm ntu no ntawm cov cai
// hloov kho cov ntawv nyeem rau huab cua tshiab
lus = ""; // tau txais qhov xwm txheej tam sim no String condition = result ["current"] ["condition"] ["text"]; appendMessage (xwm txheej); appendMessage (""); Txoj hlua temp_c = tshwm sim ["tam sim no"] ["temp_c"]; appendMessage (temp_c); appendMessage ("C"); appendMessage (""); String humidity = tshwm sim ["tam sim no"] ["av noo"]; appendMessage (av noo); appendMessage ("H"); appendMessage ("");
Piv txwv li yog tias koj xav ntxiv cua_mph los ntawm apixu api qhov tshwm sim:
String wind_mph = result ["current"] ["wind_mph"];
appendMessage (cua_mph); appendMessage ("Cua mph"); appendMessage ("");
Kauj ruam 4: Ua tiav
Thaum flashed nws yuav sim txuas rau koj li WiFI thiab yuav nqa koj cov huab cua, kub thiab av noo!
Nco ntsoov tias koj muaj internet txuas.
Xav Tau Kev Pab?
Xav tias dawb los tawm tswv yim ntawm no.
Txhawb nqa txoj haujlwm ntawm kuv Github repo
github.com/imjeffparedes/iot-simple-weath…
Tsis tas li Thov thov thov pov npav rau kuv hauv Microcontroller Contest.:)
Pom zoo:
Kev Tshawb Nrhiav Huab Cua Pollution + Kev Pom Huab Cua: 4 Cov Kauj Ruam
Kev Tshawb Nrhiav Huab Cua Pollution + Kev Pom Cua: Cov tub ntxhais kawm (Aristobulus Lam, Victor Sim, Nathan Rosenzweig thiab Declan Loges) ntawm German Swiss International School tau ua haujlwm nrog cov neeg ua haujlwm ntawm MakerBay los tsim kev sib xyaw ua ke ntawm kev ntsuas huab cua thiab ua kom pom huab cua zoo. Qhov no
Huab cua-chaw nres tsheb Nrog Arduino, BME280 & Zaub rau Pom Kev Pom Zoo Hauv 1-2 Hnub Xeem: 3 Kauj Ruam (nrog Duab)
Huab cua-chaw nres tsheb Nrog Arduino, BME280 & Zaub rau Pom Kev Pom Zoo Hauv 1-2 Hnub Xeem: Nyob Zoo! Ntawm no ntawm cov lus qhia qhia txog huab cua tau twb tau qhia lawm. Lawv qhia txog huab cua tam sim no, qhov kub thiab txias. Dab tsi lawv tsis muaj txog tam sim no yog kev nthuav qhia ntawm chav kawm hauv 1-2 hnub dhau los. Cov txheej txheem no yuav muaj lub
Huab Cua Huab Cua Huab Cua: 11 Kauj Ruam (nrog Duab)
Huab Cua Huab Cua Huab Cua: Txoj haujlwm no ua rau huab cua huab siv Raspberry Pi Zero W. Nws txuas rau Yahoo Huab Cua API thiab nyob ntawm qhov kev kwv yees rau hnub tom ntej hloov xim. Kuv tau tshoov siab los ntawm Wisconsin Gas Building uas muaj nplaim taws ntawm lub ru tsev uas hloov pauv
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Huab Cua Huab Cua: 7 Cov Kauj Ruam (nrog Duab)
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Air Economizer: HRV Arduino Tus Tswj Nrog Air Economizer Yog li kuv keeb kwm nrog txoj haujlwm no yog kuv nyob hauv Minnesota thiab kuv lub rooj tsav xwm hluav taws xob kib ntawm kuv LifeBreath 155Max HRV. Kuv tsis xav them $ 200 rau qhov tshiab Kuv ib txwm xav tau qee yam nrog kev lag luam huab cua kev ua txhaum
Pom Qhov Pom Pom Pom Pom Lub Koob Yees Duab (TfCD): 15 Kauj Ruam (nrog Duab)
Pom Qhov Pom Pom Pom Pom Lub Koob Yees Duab (TfCD): Cov kev pabcuam paub uas tuaj yeem paub txog kev xav, ntsej muag ntawm tib neeg lossis cov khoom yooj yim tam sim no tseem nyob rau theem pib ntawm kev txhim kho, tab sis nrog kev kawm tshuab, thev naus laus zis no tau nce zuj zus. Peb tuaj yeem cia siab tias yuav pom ntau ntxiv ntawm cov khawv koob no hauv