Cov txheej txheem:

Yuav Sau Hnub Tim thiab Sijhawm Li Cas - Liono Maker: 5 Kauj Ruam
Yuav Sau Hnub Tim thiab Sijhawm Li Cas - Liono Maker: 5 Kauj Ruam

Video: Yuav Sau Hnub Tim thiab Sijhawm Li Cas - Liono Maker: 5 Kauj Ruam

Video: Yuav Sau Hnub Tim thiab Sijhawm Li Cas - Liono Maker: 5 Kauj Ruam
Video: Zoo Siab Nrog Koj - Paj Tsua Thoj [ Official MV ] Nkauj Tawm Tshiab 2022 2024, Kaum ib hlis
Anonim
Yuav Sau Hnub Tim thiab Sijhawm Li Cas | Liono txiag
Yuav Sau Hnub Tim thiab Sijhawm Li Cas | Liono txiag
Yuav Sau Hnub Tim thiab Sijhawm Li Cas | Liono txiag
Yuav Sau Hnub Tim thiab Sijhawm Li Cas | Liono txiag

Taw qhia:-

Hauv qhov kev qhia no peb yuav kawm paub yuav sau Hnub thiab Sijhawm Nkag Li Cas nrog Arduino. Rau lub hom phiaj no kuv siv DS3231 & Micro SD Card Modules.

Tus qauv tseem ceeb uas siv rau lub sijhawm & hnub txiav txim yog DS3231. DS3231 yog RTC (lub sijhawm teev sijhawm) tus qauv. Lub sijhawm tiag tiag tuaj yeem muab cov ntaub ntawv vib nas this, feeb, teev, hnub, hnub, hli, thiab xyoo. DS3231 tuaj yeem siv nrog 3.3V lossis 5V thiab CR2032 lithium khawm-cell roj teeb lub zog RTC thaum tsis txuas nrog Arduino. DS3231 kuj tseem muaj qhov ntsuas kub hauv lub cev. DS3231 siv I2C kev sib txuas lus nrog ob txoj kab sib tw:

1_Serial moos (SCL)

2_Serial cov ntaub ntawv (SDA)

NCO TSEG:

Yog tias koj txaus siab los ua cov ntaub ntawv kaw lossis cov ntaub ntawv Logger ntawm lub ntsuas pa thiab sau nws cov ntaub ntawv hauv cov ntawv. ntawm no yog cov txuas hauv qab no: 1-Kev ntsuas kub thiab lub teeb siv cov ntaub ntawv nkag mus

www.youtube.com/embed/gd-a8Y5GF3A

2-DHT11 cov ntaub ntawv kaw nrog Arduino & micro SD Card

www.youtube.com/embed/gd-a8Y5GF3A

Facebook nplooj ntawv: Modal = admin_t …

Cov Ntaub Ntawv-Logger:

Cov ntaub ntawv logger (tseem yog cov ntaub ntawv-logger lossis cov ntaub ntawv kaw tseg) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm nrog lub cuab yeej lossis lub ntsuas hluav taws xob lossis los ntawm cov cuab yeej sab nraud thiab cov ntsuas hluav taws xob. Lawv feem ntau yog me me, siv roj teeb, txav tau yooj yim, thiab nruab nrog microprocessor, lub cim xeeb sab hauv rau khaws cov ntaub ntawv, thiab lub ntsuas cua. Qee cov ntaub ntawv loggers cuam tshuam nrog lub khoos phis tawj ntiag tug, thiab siv software los qhib cov ntaub ntawv logger thiab saib thiab txheeb xyuas cov ntaub ntawv khaws tseg, thaum lwm tus muaj lub cuab yeej sib cuam tshuam hauv cheeb tsam (keypad, LCD) thiab tuaj yeem siv ua khoom siv ib leeg. Hauv txoj haujlwm no, Kuv siv SD-Card khaws cov ntaub ntawv nrog kev pab ntawm Arduino.

DS3231:

Hnub thiab sijhawm ntawm kev ntsuas ntsuas lossis sau cov ntaub ntawv tuaj yeem suav nrog thaum sau cov ntaub ntawv mus rau SD daim npav siv lub sijhawm tiag (RTC) module, xws li DS3231. Lub sijhawm tiag tiag tuaj yeem muab cov ntaub ntawv vib nas this, feeb, teev, hnub, hnub, hli, thiab xyoo. DS3231 tuaj yeem siv nrog 3.3V lossis 5V thiab CR2032 lithium khawm-cell roj teeb lub zog RTC thaum tsis txuas nrog Arduino. DS3231 kuj tseem muaj qhov ntsuas kub hauv lub cev. DS3231 siv I2C kev sib txuas lus nrog ob txoj kab sib txuas: cov moos txuas (SCL) thiab cov ntaub ntawv txuas (SDA). Yuav ua li cas txuas nrog Arduino rau daim duab txuas no muaj.

Micro SD-Card Module:

Tus qauv (Micro SD-Card Adapter) yog Micro SD daim npav nyeem ntawv module, los ntawm cov ntaub ntawv kaw lus thiab SPI interface tsav tsheb, SCM system kom ua tiav cov ntawv nyeem thiab sau Micro SD-card. Cov neeg siv Arduino tuaj yeem siv ncaj qha Arduino IDE los nrog daim npav SD-daim npav lub tsev qiv ntawv kom ua tiav qhov pib thiab nyeem.

Kauj ruam 1:

Duab
Duab
Duab
Duab
Duab
Duab

Ua kom sov:-

Hauv qhov kev qhia no kuv siv Fritzing software los ua schem ntawm kuv qhov project.

ua ntej kuv yuav tsum qhib Fritzing thiab tom qab ntawd siv DS3231, Arduino UNO thiab Micro SD Card. peb yuav tsum txuas lawv ntawm cov xov hlau jumper.

hauv qab no yog cov tswv yim sib txuas:-

DS3231 kev sib txuas nrog Arduino UNO:

DS3231 _ Arduino UNO

Gnd ----------------------- Gn ib

VCC ----------------------- 5volt

SDA ----------------------- Pin A4

SCL ----------------------- Tus Pin A5

SD Card txuas nrog Arduino UNO:-

SD Card _ Arduino UNO

Gnd ------------------------------- Gn Ib

VCC -------------------------------- 5volt

MISO -------------------------------- pin 12

MOSI -------------------------------- pin 11

SCK ---------------------------------- pin 13

SCS ---------------------------------- pin 10

Kauj ruam 2:

Duab
Duab
Duab
Duab
Duab
Duab

Proteus Simulations:-

Hauv qhov haujlwm no Kuv tau siv Proteus Software rau Simulations.

Ua ntej tshaj, Kuv xav tau qhib lub tsev qiv ntawv kom coj cov khoom siv thiab khoom siv. Kuv noj DS3232 thiab SD daim npav thiab lub davhlau ya nyob twg virtual rau lub hom phiaj simulation. Vim tias peb xav tau Simulate sijhawm thiab hnub tim, thaum simulation ds3232 moos qhov rai tau qhib nyob rau lub sijhawm twg thiab hnub twg tab tom khiav. peb tuaj yeem teeb tsa pib cov ntsiab lus ntawm hnub thiab sijhawm hauv Arduino coding. Hauv qee qhov haujlwm thawb khawm tau siv los teeb hnub thiab sijhawm rau tus kheej rau lub hom phiaj no peb xav hloov Arduino coding raws li.

Kuv siv Arduino UNO rau qhov no peb xav tau Hex file. Ua Hex cov ntaub ntawv ntawm koj li Arduino coding (Kuv tab tom muab cov cai hauv qab no) hauv Arduino IDE. tom qab ntawd upload nws hauv Arduino Properties.

Kuv siv daim npav SD daim npav. Kuv tab tom muab daim npav SD daim ntawv, muab tso rau hauv koj qhov qauv (muab hauv qab no piav qhia). Hauv Proteus sab laug hauv qab lub ces kaum muaj lub pob ua si thawb nws thiab simulation yuav pib. thaum simulation pib ob lub qhov rais yuav qhib, lub davhlau ya nyob twg virtual thiab ds3232 moos.

> Virtual davhlau ya nyob twg yog qhia cov ntaub ntawv kaw tseg raws li;

SD Card OK

cov ntaub ntawv1

cov ntaub ntawv 2

cov ntaub ntawv 3

rov 4

cov ntaub ntawv 5

> lub qhov rooj ds3232 qhia lub sijhawm thiab hnub tim raws li.

> thaum simulation cov ntaub ntawv "Daim npav nco cov ntsiab lus" yuav qhib, cov ntawv no muaj cov ntaub ntawv data.csv Hauv cov ntaub ntawv no peb Lub Sijhawm thiab hnub tim, hli, hnub thiab xyoo cov ntaub ntawv. Txhua Lub Sij Hawm (1000); cov ntaub ntawv no yuav rov ua dua thiab cov ntaub ntawv yuav ntxiv nws hauv cov ntawv.

Kauj ruam 3:

Duab
Duab
Duab
Duab

EXCEL Ua Haujlwm:-

Qhib Excel thiab txhaj koj cov ntaub ntawv data.csv hauv nws. cov ntaub ntawv yuav qhia hauv kab thiab siv kab kab ntawm kab ntawv sijhawm.

Kauj ruam 4:

Pom zoo: