Cov txheej txheem:
- Kauj Ruam 1: Tau Txais Txhua Qhov
- Kauj Ruam 2: Txuas Txhua Qhov Ua Ke
- Kauj Ruam 3: Sau Txoj Cai
- Kauj ruam 4: Siv Koj Arduino
Video: Arduino Data Logger Shield Small Project: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hav guys Hnub no Kuv tabtom nthuav qhia koj ib qho piv txwv yooj yim nrog Arduino Data logger shield. Nov yog txoj haujlwm yooj yim heev los ua thiab koj tsis xav tau ntau qhov los ua nws.
Txoj haujlwm yog hais txog ntsuas kub thiab av noo nrog dht sensor. Txoj haujlwm no tso cai rau koj kom taug qab qhov ntsuas kub ntawm qee lub sijhawm, thiab qhov kub thiab txias yuav muab khaws cia rau hauv daim npav sd uas kuv txuas nrog koj li ntaub thaiv npog ntaub ntawv. Yog li vim tias txoj haujlwm no yooj yim heev los ua thiab nkag siab Kuv yuav pib kuv cov kauj ruam tam sim no.
Kauj Ruam 1: Tau Txais Txhua Qhov
Txoj haujlwm no tuaj yeem ua nrog ob peb ntu. Cov npe ntawm ib feem hauv txoj haujlwm:
- Arduino uno rev3
- Arduino Cov ntaub ntawv logger ntaub thaiv npog
- SD daim npav nco
- LCD 1602 zaub ntsuab nrog I2C
- DHT22 (koj tuaj yeem siv lwm lub dht sensor)
- Ob peb jumper cables
- Cov qhob cij
- Roj teeb 9v
Nco ntsoov tias koj tuaj yeem siv lwm yam Arduino rau txoj haujlwm no. Koj kuj tseem tuaj yeem hloov pauv hom zaub uas koj muaj, thiab koj tuaj yeem siv lwm lub ntsuas (Cov av noo noo sensor, lwm yam dht sensor, lossis txawm tias lub ntsuas cua uas koj tuaj yeem ntsuas qhov nrug ntawm qee lub sijhawm). Kuv txiav txim siab siv DHT sensor lub sijhawm no vim tias txoj haujlwm no tuaj yeem muaj txiaj ntsig zoo yog tias koj xav ntsuas qhov kub nyob hauv nruab nrab ntawm ib hnub ntawm qee qhov chaw thiab ua raws li nws hloov pauv li cas.
Kauj Ruam 2: Txuas Txhua Qhov Ua Ke
Qhov no yog qhov yooj yim heev los txuas. Tsuas yog muab Cov Ntaub Ntawv Logger thaiv rau saum Arduino. Nws yuav siv txhua tus pin los ntawm Arduino, tab sis tsis txhob txhawj xeeb koj tseem yuav muaj cov pins uas nyob ntawm Cov Ntaub Ntawv Logger daim ntaub thaiv. Koj tuaj yeem siv cov pins zoo ib yam li Arduino pins.
Hauv qib no koj tuaj yeem pom cov txheej txheem kuv tau ua nrog fritzing. Kuv tseem yuav sau yuav ua li cas txuas lub sensor thiab LCD yog li leej twg yog tus tshiab rau qhov no tuaj yeem nkag siab nws. Raws li koj pom peb yuav siv 5V thiab GND los ntawm Arduino (Cov ntaub ntawv logger thaiv) kom muaj zog rau lub rooj mov ci.
LCD:
- VCC rau 5V (+ ib feem ntawm daim ntawv qhia zaub mov)
- GND rau gnd (-part on breadboard)
- SDA rau tus pin analog A4
- SCL rau tus pin analog A5
TXH 22:
Kuv siv dht nrog lub rooj tsavxwm uas muaj peb tus pin los siv:
- + rau 5V
- - rau GND
- tawm mus rau tus lej digital 7
Kauj Ruam 3: Sau Txoj Cai
Kuv yuav piav qhia cov cai hauv ob peb ntu ntawm no. Ib feem zoo ntawm cov cai tau hais tawm yog li qee tus neeg siv nws tuaj yeem nkag siab txoj cai yooj yim.
1. Thawj qhov yuav tsum nco ntsoov tias cov cai no yuav xav tau ob peb lub tsev qiv ntawv nruab rau hauv koj lub PC. Cov no yog: Sijhawm (TimeLib), Hlau, LiquidCrystal, DHT, OneWire, SPI, SD, RTClib. Tej zaum koj tuaj yeem siv qee lub tsev qiv ntawv tab sis cov tsev qiv ntawv no ua haujlwm rau kuv.
2. Tom qab ntawd peb tau txiav txim siab txhua yam uas xav tau rau txoj haujlwm no. DHT sensor yog ib qho yooj yim los txhais, koj tsuas yog xav hais tus pin uas yog lub cim txuas nrog thiab hom sensor. Tom qab ntawd koj yuav tsum txhais qee tus pin uas yuav siv rau SD daim npav thiab RTC tus pin. Thiab tom qab ntawd koj tuaj yeem pom cov kev hloov pauv siv rau txoj haujlwm no.
3. Txoj haujlwm siv ob peb txoj hauv kev thiab txhua yam ntawm lawv yog rau kev ua haujlwm nrog DHT sensor. Yog tias koj tab tom ua haujlwm nrog txoj haujlwm nrog hom ntsuas no koj tuaj yeem siv nws. Cov txheej txheem no yog getTemperature (), getHumidity (), readSensorData (), printLcdTemperature (), printHumidity.
4. Hauv kev teeb tsa muaj qee yam uas xav tau kom tiav.
Ua ntej tshaj plaws koj yuav tsum tau txhais lub sijhawm. Vim tias peb tab tom siv RTC ntawm no peb xav kom muaj sijhawm zoo thaum peb Arduino khaws cov ntaub ntawv los ntawm lub ntsuas. Qhov ntawd yuav raug hais tawm hauv cov cai. Yog tias koj tsis txaus siab //RTC.adjust(DateTime(_DATE_, _TIME_)); kab koj tuaj yeem teem sijhawm rau koj qhov project. Tom qab koj teem sijhawm kom raug koj tuaj yeem tawm tswv yim ib feem ntxiv, thiab koj tuaj yeem siv koj li arduino yam tsis muaj computer. Qhov no txias heev vim tias koj tuaj yeem siv koj lub ntsuas cua sov hauv qee chav thiab khaws qhov ntsuas kub tsis tas yuav siv koj lub khoos phis tawj. Qhov thib ob uas yuav tsum ua yog siv koj daim npav SD uas yuav muaj cov ntaub ntawv khaws cia. Shield yuav sim saib seb puas muaj daim npav thiab pib ua nws. Yog tias tsis muaj cov lus yuam kev yuav raug qhia hauv Serial screen ntawm Arduino lub tswv yim.
ntu kawg ntawm kev teeb tsa yog pib lcd, thiab dht sensor.
5. Qhov kawg yog ntu ntu lossis ntu tseem ceeb ntawm txoj haujlwm. Nws yog qhov yooj yim heev. Thaum pib ntawm lub voj Arduino yuav nyeem cov ntaub ntawv los ntawm lub ntsuas cua. Tom qab ntawd RTC yuav tshuaj xyuas lub sijhawm twg. Kuv tab tom siv kuv li RTC rau txhua 10 feeb lub sijhawm no vim tias nws zoo saib li cas Cov Ntaub Ntawv Logger ntaub thaiv npog ua haujlwm. Koj tuaj yeem hloov pauv feeb ntawm txoj cai yog tias koj xav kom koj cov ntaub ntawv khaws tseg hauv 5 feeb, 15, 30 lossis txawm tias teev. Xav tias dawb los hloov nws. Yog tias feeb txawm tias yog 10 lossis 20 cov ntaub ntawv yuav raug cawm ntawm daim npav SD. Ib feem kawg ntawm txoj haujlwm tab tom ntsuas qhov ntsuas kub tam sim no ntawm LCD.
Kuv tseem yuav muab daim duab ntawm kuv txt cov ntaub ntawv ntawm SD daim npav kom koj tuaj yeem pom qhov ntsuas kub li cas ntawm no.
Kauj ruam 4: Siv Koj Arduino
Tag nrho cov ntsiab lus ntawm txoj haujlwm no yog pom yuav ua li cas cov ntaub ntawv logger ntaub thaiv npog ua haujlwm nrog arduino. Qhov zoo tshaj plaws nrog daim ntaub thaiv no yog tias nws muaj SD daim npav qhov uas tuaj yeem siv rau khaws cov ntaub ntawv thiab nyeem cov ntaub ntawv los ntawm daim npav. Tsis tas li lwm qhov yog tias nws muaj RTC module uas tau siv yog li koj tuaj yeem ua qee yam ntawm qee lub sijhawm. Qhov zoo tshaj plaws txog RTC tus qauv yog nws siv ib lub roj teeb 3V me me thiab nws tuaj yeem khaws hnub thiab sijhawm khaws cia kom nyob ntsiag to ntev. Lub ntsiab lus tseem ceeb rau txoj haujlwm no yog tias nws tuaj yeem nqa tau. Cia peb hais tias koj xav paub tias qhov kub hloov pauv li cas thaum koj mus pw hav zoov. Koj tsis tas yuav nqa koj lub laptop rau qhov no, lossis koj tsis tas yuav txheeb xyuas qhov ntsuas kub hauv internet. Koj tuaj yeem muaj qhov no, thiab koj tsis tas yuav txhawj xeeb tias koj yuav hnov qab qhov kub thiab txias thaum nws yuav khaws cia. Nov yog qhov piv txwv xwb. Ua tsaug rau koj nyeem rau txoj haujlwm no ntawm Instructables. Kuv vam tias nws yuav pab qee leej. Ua Tsaug.
Hais txog Sebastian
Pom zoo:
Data Logger - Logging Computer Module: 5 Kauj Ruam
Data Logger - Logging Computer Module: Ethernet data logger for HTTP based data collection from Sensor Bridges uas hloov I2C cuam tshuam sensor mus rau Ethernet sensor
OpenLogger: Kev daws teeb meem siab, Wi-nkaus Enabled, Qhib Qhov Chaw, Portable Logger Logger: 7 Kauj Ruam
OpenLogger: Kev daws teeb meem siab, Wi-nkaus Enabled, Open Source, Portable Data Logger: OpenLogger yog lub tshuab nqa tau, qhib qhov chaw, tus nqi qis, daws teeb meem cov ntaub ntawv logger tsim los muab kev ntsuas zoo uas tsis tas yuav siv software kim lossis sau software. los ntawm kos. Yog tias koj yog tus kws tshaj lij, kws tshawb fawb, lossis tus neeg txaus siab uas tsis yog
Nest Thermostat History Logger Logger: 6 Cov Kauj Ruam (nrog Duab)
Nest Thermostat Keeb Kwm Cov Ntaub Ntawv Logger: Zes thermostat ntsuas qhov ntsuas kub, av noo thiab cua sov/siv AC thiab cov neeg siv tuaj yeem pom cov ntaub ntawv keeb kwm tsuas yog 10 hnub. Kuv xav sau cov ntaub ntawv keeb kwm (> 10 hnub) thiab tuaj hla google spreadheets tsab ntawv uas pings zes txhua lub sijhawm
Cardio Data Logger: 7 Kauj Ruam (nrog Duab)
Cardio Data Logger: Txawm hais tias niaj hnub no muaj ntau yam khoom siv tau yooj yim (smartbands, smartwatches, smartphones, …) muaj nyob uas tuaj yeem txheeb xyuas Lub Plawv Tus Nqi (HR) thiab ua qhov kev tshuaj xyuas kab, hauv pluaj lub hauv siab siv txoj siv sia (zoo li ib qho nyob rau sab saud) ntawm daim duab) yog st
Wireless GPS Data Logger rau Cov Tsiaj Qus: 9 Kauj Ruam (nrog Duab)
Wireless GPS Data Logger rau Cov Tsiaj Qus: Hauv cov lus qhia no, peb yuav qhia koj yuav ua li cas thiaj ua tau me me thiab pheej yig Arduino raws GPS cov ntaub ntawv logger, nrog lub peev xwm siv tau! Nws tuaj yeem qhia koj qhov twg