Cov txheej txheem:

Nplaim Logger: 7 Kauj Ruam
Nplaim Logger: 7 Kauj Ruam

Video: Nplaim Logger: 7 Kauj Ruam

Video: Nplaim Logger: 7 Kauj Ruam
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Hlis ntuj nqeg
Anonim
Nplaim Logger
Nplaim Logger

Nov yog qhov haujlwm yooj yim; los ua lub nplaim taws thiab muaj cov ntaub ntawv xov xwm nkag mus. Kuv xav nqes ib yam dab tsi rau kuv lub rhaub dej txhawm rau teev lub sijhawm nplaim taws qhib. Txij li lub rhaub dej kub loj dua, qhov no zoo li yog txoj hauv kev yooj yim tshaj plaws

Kuv tsis tau pom ib yam dab tsi zoo li no online (yog li tsis yooj yim sua) muaj ntau DataLogging rau Lub Sijhawm Temp thiab lwm yam tab sis tsis muaj dab tsi rau kaw cov nplaim taws lossis ntau ntau ntxiv.

Khoom siv

Arduino UAS

Nplaim Sensor

HiLetgi Mini Logging Recorder, Cov ntaub ntawv logger Module Shield V1.0 Expansion Shield

jumper cov xov hlau

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov
Qhov
Qhov

Tsis hais ntau ntawm no- txhua ntu muaj nyob ntawm amazon

Elegoo EL-CB-001 UNO R3 Board ATmega328P ATMEGA16U2 nrog USB Cable rau Arduino $ 12

HiLetgo Mini Logging Recorder Data Logger Module Shield V1.0 Rau Arduino UNO SD Card $ 7

Jumper xov hlau- Tsawg dua $ 10

IR Nplaim Sensor Module Ntes Smartsense Rau Kev Ntsuas Kub Ua Tau Zoo Tshaj Nrog Arduino los ntawm Atomic Market $ 7

Kuv muaj qee yam khoom no vim qee qhov teeb tsa uas kuv yuav.

Kauj ruam 2: Nplaim Sensor

Nplaim Sensor
Nplaim Sensor

Feem ntau cov nplaim taws uas tau teeb tsa los txuas rau Arduino muaj plaub qhov sib txuas

1 VCC - qhov hluav taws xob

2 GND - Hauv av

3 A0- Analog Out

4 D0- Digital Tawm

Qee tus Sensors tsuas yog ua (digital outs)

Kauj Ruam 3: Arduino UNO

Arduino UAS
Arduino UAS

Muaj ntau cov ntaub ntawv ntawm kab Arduino uas kuv yuav tsis tham txog qhov siab ntawm no

YouTube "Arduino" thiab koj yuav muaj txhua cov ntaub ntawv koj xav tau.

Kauj ruam 4: Cov Ntaub Ntawv Logger

Cov Ntaub Ntawv Logger
Cov Ntaub Ntawv Logger

Qhov tshwj xeeb Cov Ntaub Ntawv Logger muaj RTC (Lub Sijhawm Tuav Sijhawm) txuas nrog nws, nws siv thiab xav tau CR1202 saib lub roj teeb kom kaw yog tias Arduino poob lub zog.

Tseem ceeb heev

Cov Ntaub Ntawv Logger's ChipSelect tau teeb tsa rau Pin10- (peb yuav tau txais qhov no- tab sis tseem ceeb)

Txij li qhov no yog Shield txhua yam koj yuav tsum tau ua yog ntsaws rau hauv Arduino- yog li txhua yam koj yuav tsum ua tus nuv nplaim taws mus rau lub rooj nthuav dav.

Kauj Ruam 5: Teeb Kho Vajtse

Yooj Yim heev

1 coj mus rau Arduino thiab txuas lub rooj nthuav dav mus rau Arduino

2 Nqa tus Nplaim Sensor, VCC = 5v Pin, GND- GND.

3 Tom qab teeb tsa tus nplaim taws Sensor tus pin- yog tias koj xaiv Digital, (D0) tom qab ntawd txuas nws mus rau sab digital ntawm Arduino, yog tias koj xaiv sab sib piv ces txuas tus nplaim taws mus rau A0.

Kauj Ruam 6: QHIA CODE

LUS CODE
LUS CODE

**** Yog li kuv tsis ua CODE, Qhov no yog kuv thawj tus ******

Yog tias koj pom txoj hauv kev los kho lossis kho qhov no thov ua siab dawb.

1. suav nrog cov tsev qiv ntawv servo

2. suav nrog SPI

const int- (qhov no yog qhov chipSelect tseem ceeb) Cov ntaub ntawv logger xav tau los tham nrog Arduino- kuv nkag siab yog tias tus lej PIN no tham nrog Arduino.

Teeb Meem Teeb-

(qhov no yog ib feem ntawm tsab ntawv uas sau ib zaug; uas tsim tsab ntawv)

Serial.begin- qhov no tsim kom muaj cov saib txuas (tham nrog lub khoos phis tawj)

Thaum ua haujlwm - tos rau qhov chaw nres nkoj txuas

Serial Print = Yooj yim qhia ntawm Serial monitor

yog <- qhov no qhib ntu pib-

yeej qhov no tsim daim npav

Kauj Ruam 7: Hauv Xaus

Kuv yuav tsum sau qhov seem ntawm qhov ua txhaum ntawm cov cai, tab sis qhov no yog thawj cov lus qhia kuv tau sau yog li yooj yim

Pom zoo: