Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom thiab Cov Khoom
- Kauj Ruam 2: Kev Tsim Hluav Taws Xob
- Kauj Ruam 3: Kev Tsim Kho Tshuab
- Kauj Ruam 4: Cov Rooj Sib Tham: Lub ntsej muag & Lub hauv paus
- Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob & Sensor
- Kauj ruam 6: Twitter Configuration
- Kauj Ruam 7: Software & Kho Kho
- Kauj Ruam 8: Pab txhawb rau Sensor Repository
Video: Tweeting Weather Station: 8 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Puas xav los saib xyuas koj lub nroog Cov Huab Cua Tam Sim No, Cov Hneev Taw Carbon, Lub suab nrov thiab cov pa phem ntau npaum li cas? Koj puas xav ua Kev Nyab Xeeb Hloov Crusader lossis teeb tsa koj tus kheej Chaw Tweeting Weather Station thiab qhia koj cov xwm txheej huab cua hauv ntiaj teb nrog rau ntiaj teb?
Ntsib Tweeting Huab Cua IoT Station aka TWIST - ib qho DIY, Qhib -Qhov Chaw Saib Xyuas Ib puag ncig thiab Kev Tshawb Fawb Txog Huab Cua. Lub hom phiaj ntawm TWIST yog kom cov tib neeg thiab cov zej zog tuaj yeem khaws cov ntaub ntawv ntawm qhov tshwm sim tiag tiag hauv lawv ib puag ncig thiab sib qhia cov ntaub ntawv no hauv social media xws li Twitter.
- TWIST yog Internet ntawm Yam (IoT) siv lub platform.
- Lub hlwb ntawm TWIST yog Intel Board Edison.
- TWIST tau sib xws nrog ntau yam kev ntsuas.
- Txhua txoj cai, tsim cov ntaub ntawv (duab qhia & PCB txheej txheem) yog Qhib-Qhov Chaw. Qhov no txhais tau tias txhua tus tuaj yeem pab txhawb rau TWIST lub platform los ntawm kev sib qhia cov lej thiab cov lej rau cov ntsuas sib txawv.
TWIST muaj peb txheej txheej thev naus laus zis:
Thawj txheej yog lub rooj tsav xwm kho vajtse uas suav nrog txhua yam huab cua thiab ib puag ncig lub ntsej muag hu ua 'Sensor Board'. Raws li lub npe qhia, nws nqa cov ntsuas uas ntsuas kev sib xyaw, ntsuas kub, av noo, nag. Cov cuab yeej sib piv zoo sib xws, UV ntsuas, ntsuas ntsuas siab, siab, siab (lux), qib suab, cua nrawm & kev taw qhia, thiab lwm yam tuaj yeem ntxiv tau. Thaum nws tau teeb tsa, Lub Rooj Tswjhwm Saib Sensor tuaj yeem xa cov ntaub ntawv ntsuas los ntawm cov ntsuas mus rau txheej thib ob. Cov txheej thib ob yog Intel Edison Board uas tau txais cov ntaub ntawv los ntawm Sensor Board, txheej txheem nws thiab xa nws mus rau txheej tom ntej. Cov txheej thib peb txuas koj lub Rooj Tswjhwm Saib Edison rau Is Taws Nem hla Wi-nkaus siv lub wireless wireless ntawm Edison board thiab Tweet Cov Huab Cua Tam Sim No & Ib puag ncig Ib puag ncig.
Lub zog rau lub cuab yeej tuaj yeem muab los ntawm lub hnub ci vaj huam sib luag lossis AC Adapter.
Version tswj cov chaw cia khoom
Tag nrho peb txheej txheej thev naus laus zis ntawm TWIST yog Qhib-Qhov Chaw, thiab yog li txhua cov ntaub ntawv peb siv rau tus lej, PCB kev txhim kho, kev tsim kho tshuab, thiab lwm yam tau npaj tau yooj yim ntawm peb Github chaw cia khoom.
Kev sib tw nkag
Intel IoT Caw
Kuv xav ua tsaug Intel+Cov Lus Qhia rau muab kuv nrog Intel Edison Board. Kuv npaj yuav ua ntau yam ntxiv IoT cuam tshuam Cov Lus Qhia siv Edison board.
#iotweatherstn
Yog tias koj ua TWIST, tsis txhob hnov qab tweet huab cua siv #iotweatherstn. #iotweatherstn tuaj yeem yog hashtag siv los ntawm txhua IoT powered Tweeting Weather Stations.
Kauj Ruam 1: Cov Khoom thiab Cov Khoom
QuantityPartDetails 1
Intel Edison
nrog Arduino Breakout Board
1
MQ2 Cov Hluav Taws Xob Hluav Taws Xob
1
YL-83
Los nag Sensor
1
SL-HS-220
Kub & Vaum Sensor
1
Resistor
32K
4.7k ib
3 Hlau Standoff 1inch
1
Resistor
32K
4.7k ib
2
Ntoo Ntawv A4 Loj
Tom qab tuaj yeem txiav qhov loj me
3
Hlau Standoff
1 ntus
Kauj Ruam 2: Kev Tsim Hluav Taws Xob
Fais fab
Tag nrho cov kab ke tau siv los ntawm 5V 1A fais fab mov. Cov ntsuas (Kub, Vaum, Los nag, Roj) kos kwv yees li 200 mA, Edison ib puag ncig 500 mA, Txij li tam sim no tag nrho qhov xav tau tsawg dua 1amp, 1 amp khoom siv yuav tsum ua haujlwm zoo xwb. LED inbuilt ntsuab ntawm tus lej digital 13 ntawm Edison Board tau siv los qhia qhov xwm txheej zoo.
ControlAn Intel Edison ua yeeb yam rau TWIST. Edison tau teeb tsa ntawm Arduino breakout board, uas ua rau nws yooj yim nyeem cov digital & analog teeb liab los ntawm cov ntsuas. Edison txuas nrog 5V kev tsheb nqaj hlau ntawm micro USB cable. Lub Edison muaj lub xov tooj cua Wi-nkaus ua, uas tso cai rau nws txuas rau Twitter yam tsis tas yuav muaj kho vajtse ntxiv.
Sijhawm Tiag (RTC)
Txij li lub sijhawm-stamping tau ua tiav los ntawm Twitter rau txhua qhov tweet muaj qhov kev daws teeb meem txwv rau cov hnub tag nrho txij li lub sijhawm Tweeting, lub sijhawm tiag tiag tau siv los txheeb lub sijhawm kom raug lub hnub thiab sijhawm hauv Teev-feeb- Hom thib ob. Lub sijhawm tiag tiag siv hauv TWIST platform yog DS-1307 RTC module.
Kev teeb tsa yooj yim tshaj plaws ntawm cov kab ke no muaj plaub lub ntsuas (Kub, Vaum, Los nag, Roj) uas txuas rau Edison. Cov ntsuas hluav taws xob ntxiv tuaj yeem ntxiv xws li Lub Suab nrov, Cua, thiab lwm yam. Txhua lub ntsuas hluav taws xob tau ncaj qha los ntawm 5V txoj kev tsheb nqaj hlau thiab muaj nws cov cim teeb liab txuas nrog rau tus pin analog A0 txog A2 thiab tus pin digital 2 ntawm Edison breakout board. Cov sensors kuj txhua tus muaj qhov hloov pauv hloov pauv hloov pauv tau zoo ntawm txhua lub rooj tsav xwm sensor; MQ-2 yog lub ntsuas hluav taws xob sib nqus (cov kua roj liquefied, propane, hydrogen, thiab methane) uas tso tawm cov hluav taws xob sib piv sib piv rau qhov sib xyaw ntawm cov pa hauv ib lab. SL-HS-220 muaj cov thermistor uas muab qhov ntsuas kub. Txij li qhov tso tawm ntawm lub thermistor tsis yog-kab, cov lus kub sib xws tau muab rau hauv lub chaw tso khoom sensor. Tus thermistor xav tau qhov hluav taws xob faib hluav taws xob thaum txuas nrog rau Edison Board raws li qhia hauv daim duab kab hluav taws xob. SL-HS-220 kuj tseem muaj qhov ntsuas qhov ntsuas uas ntsuas cov av noo thiab tso tawm qhov ntsuas hluav taws xob sib piv uas sib haum rau cov av noo ruaj khov. Cov av noo-qhov ntsuas hluav taws xob kuj tau muab rau hauv cov chaw khaws khoom. Ib qho kev hloov pauv rau SL-HS-220 yog DHT11 sensor. Lub ntsuas dej nag/dej ntsuas dej muaj lub zog ntsuas uas tau hloov kho kom tso tawm digital rau qee qhov dej nag uas nws qhov kev nkag siab tuaj yeem hloov kho los ntawm tus neeg siv.
Huab cua Chaw Nres Tsheb.fzz
Kauj Ruam 3: Kev Tsim Kho Tshuab
Lub TWIST lub cev yog tsim los ntawm ob daim hlau ntawm cov ntawv ntoo. Txawm hais tias kuv siv 1/4 "plywood, kev tsim qauv tuaj yeem sib sau ua ke ntawm cov ntaub ntawv raws li qhov sib nrug (tswj los ntawm 1" aluminium standoffs) tsuas yog lub hauv paus tseem ceeb. Kuv tau txuas cov ntaub ntawv vector rau rub tawm saum toj no.
Laser Txiav
Rau txhua tus neeg uas xav kom laser txiav ob daim hlau, kuv tau txuas cov ntaub ntawv laser txiav rau rub hauv qab no. Nws kuj suav nrog qhov ntsuas huab cua zoo ntxiv hauv nws cov qauv. Yog li koj tuaj yeem siv MQ2 sensor module lossis huab cua ntsuas qhov ntsuas zoo nyob ntawm koj xaiv.
Kauj Ruam 4: Cov Rooj Sib Tham: Lub ntsej muag & Lub hauv paus
Lub ntsej muag
Cov Sensors haum rau hauv lawv qhov sib dhos thiab txiav tawm thiab tuaj yeem kho tau siv cov ntsia hlau lossis kua nplaum.
Lub hauv paus phaj
Qhov kev sawv ntawm Edison lub rooj tsavxwm raug ntsia rau ntawm Baseplate. Lub analog-rau-digital hloov pauv (ADC) uas txuas nrog lub ntsuas cua los nag kuj tseem tuaj yeem ntsia mus rau hauv Baseplate.
Cheebtsam ntxiv xws li buzzers lossis cov tswj hluav taws xob hluav taws xob rau lub hnub ci tawm tswv yim kuj tseem tuaj yeem ntsia mus rau hauv Baseplate.
Lub hauv paus thiab lub ntsej muag ob leeg sib cais los ntawm 1 kev sawv ntsug.
Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob & Sensor
Fais fab
Lub zog rau lub kaw lus yog muab los ntawm cov khoom siv phab ntsa nrog tus qauv thoob lub thoob uas txuas ncaj qha mus rau Edison's Barrel txuas. Lub kaw lus tseem tuaj yeem siv tau los ntawm USB chaw nres nkoj ntawm Edison board. Koj kuj tseem tuaj yeem siv lub rooj tsavxwm los ntawm lub hnub ci sab nrauv.
Sensors
Cov ntsuas tau txuas nrog cov laug cam tawg nrog txiv neej lub taub hau thiab yog li lawv tuaj yeem txuas ncaj qha rau Edison ntawm tus txiv neej-rau-poj niam jumper xov hlau.
Kauj ruam 6: Twitter Configuration
Inorder rau Tweet, peb tab tom siv tus thib peb app tsim los ntawm NeoCat uas tau txais Twitter token koj yuav xav tau Tweet nrog koj pawg thawj coj Edison. Tokens kuj tseem tuaj yeem tau los ntawm Twitter Cov Tsim Kho lub vev xaib.
Yog li, txhawm rau pib, mus ntsib NeoCat lub vev xaib, ua raws nws cov ntawv qhia kom tau txais lub tsev qiv ntawv twitter thiab koj li twitter token. Raws li NeoCat hais txog ntawm lawv lub xaib, thov tsis txhob ua phem rau cov kev pabcuam. Khaws koj cov tweets me ntsis. Yog tias koj xav tau qee yam uas tweets txhua 6 vib nas this, koj yuav tsum teeb tsa koj tus kheej lub server thiab twitter app thiab yog li cov cai uas kuv tau sau ua kom ntseeg tau tias NeoCat tus neeg rau zaub mov tsis dhau (TWIST tweets txhua 6 teev).
Lub tsev qiv ntawv siv NeoCat lub vev xaib no ua tus sawv cev rau OAuth cov khoom. Koj qhov tweet yuav tsis raug siv thaum kho lub NeoCat lub vev xaib no. Twitter zoo li tsis lees paub rov ua dua nrog cov ntsiab lus qub (rov ua yuam kev 403).
Twitter Token
Arduino Tweet Library
Kauj Ruam 7: Software & Kho Kho
Ua raws Intel cov txheej txheem teeb tsa rau Intel Edsion ua ntej koj pib coding.
Txoj haujlwm yog Arduino kos duab ua haujlwm ntawm Edison. Kuv tau piav qhia txhua qhov tseem ceeb ntawm cov cai hauv qab no.
Txoj cai suav nrog qee qhov kev txiav txim siab ua ntej, cov ntawv tshaj tawm tus pin thiab ob peb nqe lus luam tawm uas tau pab daws teeb meem.
Tweet qeeb
Txij li Twitter lim tawm tweets uas muaj cov ntsiab lus zoo ib yam thiab tau tshaj tawm hauv lub sijhawm luv ntawm ob ntawm lawv, tus qauv 3 teev (10800000 milli thib ob) ncua ntawm txhua qhov tweet tau teeb tsa.
tweetMessage ();
ncua (10800000);
Hom Casting
Ntau qhov kev nyeem peb tau txais los ntawm cov ntsuas tau nyob hauv 'int' lossis 'float' datatype. Tab sis txij li peb tab tom tweeting cov txiaj ntsig no, peb yuav tsum hloov lawv mus rau hauv 'String' datatype. Rau qhov no peb siv tshwj xeeb Hom-casting txheej txheem.
char *dtostrf (ob npaug tus nqi, kos npe dav dav, tsis tau kos npe ua ntej, char *sab qab teb) {
char fmt [100]; sprintf (fmt, "%%% d.%df", dav, ua ntej); sprintf (sab qab teb, fmt, val); rov qab sab qab teb; }
Twitter Token
Twitter token yog tsim ntawm NeoCat lub vev xaib thiab yuav tsum tau muab tso rau hauv qhov chaw token ntawm no.
void tweetMessage () {
Twitter twitter ("ENTER TWITTER TOKEN NTAWM NO");
Tweeting Sensor Qhov Tseem Ceeb
Txhawm rau tweet tus nqi sensor peb xub suav nrog hom Sensor; Piv txwv: "Vaum". Qhov no ua raws los ntawm kev tshaj tawm tus cwj pwm thiab kab kab ntawv xav tau rau kev ntaus suab paj nruag. Tom ntej no peb ntxiv nqe lus rau chav ntsuas; Piv txwv: "%RH". Peb tuaj yeem khaws qhov ntxiv qhov tseem ceeb ntawm lwm qhov ntsuas ib yam nkaus.
av noo (); ntub dej ntub;
// Twitter lus StringMsg = "Vaum:"; char tmp [10]; dtostrf (ntub, 1, 2, tmp); stringMsg += tmp; stringMsg += "%RH";
Huab Cua Chaw Nyob Qhov Chaw & Tagging
Tom ntej no peb tag qhov chaw (Lub Nroog, Zos, thiab lwm yam) thiab lwm cov cim zoo li #iotweatherstn.
stringMsg += "#Mumbai #Bandra #iotweatherstn";
Sijhawm Tiag (RTC)
Raws li tau piav ua ntej TWIST tseem tuaj yeem Tweet Cov Sijhawm Sijhawm Tiag. Hauv qab no yog qhov piv txwv ntawm 'hnub' qhov ntsuas qhov ntsuas ntawm cov cai ntawm RTC. Lub sijhawm tiag tiag lub sijhawm tshwj xeeb yog xaiv tau hauv TWIST platform txij li cov qauv tuaj sib cais. Vim li no muaj cov ceg cais cais tsim hauv TWIST chaw cia rau cov cai thiab cov lej ntawm Lub Sijhawm Sijhawm Tiag.
TwistDateTime (); Hnub tim tam sim no = rtc.now (); int twistday, twistmonth, twistyear, twisthour, twistmin, twistsec; Txoj hlua stringMsg = ""; char ds1307 hnub [10]; dtostrf (twistday, 1, 0ds1307 hnub); stringMsg += ds1307 hnub; stringMsg += "/";
140 Cim Txwv
Qhov thaiv ntawm txoj cai no npog cov hlua kab rau 140 tus cim kab ntawv npaj rau tweet.
lus msg [140];
stringMsg.toCharArray (msg, 140);
Xov & Kev Sib Txuas Teeb Meem
Qhov thaiv kab ntawv no luam tawm ob peb kab ntawm cov ntawv hauv Serial Monitor los pab tus neeg siv tshuaj xyuas cov lus thiab tweet xwm txheej.
// Tweet tus sucker!
yog (twitter.post (msg)) {int xwm txheej = twitter.wait (); yog (xwm txheej == 200) {Serial.println ("OK."); Serial.println ("Xov Xwm Tweeted"); } lwm tus {// Kev Ntsuas Kev Sib Txuas Serial.print ("ua tsis tiav: chaws"); Serial.println ("Xov tsis tweeted"); Serial.println (xwm txheej); }} lwm {Serial.println ("txuas tsis tau."); Serial.println ("Xov tsis tweeted"); }
Txhua lwm qhov ntawm cov lej yooj yim hloov pauv qhov sib piv lossis kev nyeem digital los ntawm lub ntsuas cua rau hauv cov ntaub ntawv siv tau.
Cov cai tuaj yeem rub tawm los ntawm no lossis los ntawm lub chaw cia khoom loj:
Huab cua Station.ino
Kauj Ruam 8: Pab txhawb rau Sensor Repository
Koj puas yog tus programmer, engineer lossis designer uas muaj lub tswv yim zoo rau qhov tshiab hauv TWIST? Tej zaum koj muaj lub tswv yim zoo rau kev kho kab laum? Xav tias dawb los lob peb cov cai, kos duab & CAD cov ntaub ntawv los ntawm Github thiab tinker nrog nws.
TWIST GitHub
Qhov khoom plig thib ob hauv Intel® IoT Invitational
Pom zoo:
Hanging Gear Weather Station: 7 Kauj Ruam (nrog Duab)
Hanging Gear Weather Station: Hauv Phau Ntawv Qhia no, kuv yuav los qhia koj yuav tsim koj tus kheej li cas qhov chaw dai khaub ncaws huab cua, uas yog tsim los ntawm CNC laser txiav MDF qhov chaw. Stepper lub cev muaj zog tsav txhua lub iav thiab Arduino ntsuas qhov ntsuas kub thiab av noo siv DHT
Arduino WiFi Wireless Weather Weather Station Wunderground: 10 Kauj Ruam (nrog Duab)
Arduino WiFi Wireless Weather Weather Station Wunderground: Hauv Phau Ntawv Qhia no kuv yuav qhia koj yuav tsim lub chaw nres tsheb huab cua tus kheej li cas siv ArduinoA Chaw nres tsheb huab cua yog lub cuab yeej uas khaws cov ntaub ntawv cuam tshuam nrog huab cua thiab ib puag ncig siv ntau yam sib txawv. Peb tuaj yeem ntsuas ntau yam
Ua tiav DIY Raspberry Pi Weather Station Nrog Software: 7 Kauj Ruam (nrog Duab)
Ua tiav DIY Raspberry Pi Huab Cua Chaw Nres Tsheb Nrog Software: Rov qab rau lub Ob Hlis lig Kuv pom cov ntawv no ntawm Raspberry Pi site. http://www.raspberrypi.org/school-weather-station-.. Lawv tau tsim Raspberry Pi Weather Stations for Schools. Kuv lig xav tau ib qho! Tab sis lub sijhawm ntawd (thiab kuv tseem ntseeg raws li sau ntawv
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv