Cov txheej txheem:

Yuav Nkag Li Cas Cov Ntaub Ntawv Huab Cua Chaw Nres Tsheb - Liono Maker: 5 Kauj Ruam
Yuav Nkag Li Cas Cov Ntaub Ntawv Huab Cua Chaw Nres Tsheb - Liono Maker: 5 Kauj Ruam

Video: Yuav Nkag Li Cas Cov Ntaub Ntawv Huab Cua Chaw Nres Tsheb - Liono Maker: 5 Kauj Ruam

Video: Yuav Nkag Li Cas Cov Ntaub Ntawv Huab Cua Chaw Nres Tsheb - 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 Nkag Li Cas Cov Ntaub Ntawv Huab Cua Chaw Nres Tsheb | Liono txiag
Yuav Nkag Li Cas Cov Ntaub Ntawv Huab Cua Chaw Nres Tsheb | Liono txiag

Taw qhia:

Nyob zoo, qhov no yog #LionoMaker. Nov yog kuv qhov chaw qhib thiab raug cai hauv YouTube channel.

Nov yog qhov txuas: Liono Maker / YOUTUBE CHANNEL

Hauv txoj haujlwm no peb yuav kawm paub yuav ua li cas "Logging Weather Station Data". qhov no yog qhov nthuav heev. Hauv qhov haujlwm no kuv tab tom siv Micro SD Card, DS3231 module, DHT 11, GPS module, LDR thiab Arduino UNO. Cov Ntaub Ntawv Chaw Tiv Thaiv Huab Cua txhais tau tias nws yuav txheeb xyuas cov av noo, qhov kub, Lub teeb, Hnub & Sijhawm, Ntev thiab Kab Tsuag.

NCO TSEG:

1) Hauv Fritzing Schematics Kuv siv tus pin6 & pin7 los sib tham GPS Module thiab tus pin 4 los sib tham DHT11. 2) Hauv Proteus Schematics Kuv siv tus pin3 & tus pin 4 los sib txuas lus GPS Module thiab tus pin6 los sib tham DHT11. 3) Txwv tsis pub ob qho kev sib txuas raug, tsuas yog peb xav tau txhais tus lej# hauv Arduino coding raws li Cov Qauv.

//*******************************************************

Kauj ruam 1:

Duab
Duab
Duab
Duab
Duab
Duab

1_SD-Card:-

Daim npav SD (Ruaj Ntseg Digital) tuaj yeem siv rau khaws cov ntaub ntawv thiab txiav cov ntaub ntawv. Piv txwv suav nrog khaws cov ntaub ntawv ntawm lub koob yees duab digital lossis lub xov tooj ntawm tes thiab cov ntaub ntawv nkag mus kaw cov ntaub ntawv los ntawm cov ntsuas. Micro SD daim npav tuaj yeem khaws 2GB ntawm cov ntaub ntawv thiab yuav tsum tau muab ua raws li FAT32 (Cov Ntaub Ntawv Tso Npe). Daim npav micro SD ua haujlwm ntawm 3.3V, yog li tsuas yog daim npav micro SD daim npav nrog 5V txog 3.3V qib hluav taws xob hloov pauv nti thiab 3.3V tus tswj hluav taws xob tuaj yeem txuas nrog Arduino 5V cov khoom. Micro SD module sib tham nrog Arduino siv Serial Peripheral Interface (SPI). SPI txuas cov pins ntawm micro SD module suav nrog MOSI, MISO, SCK pins thiab SS tus lej qhia tus lej xaiv (CS), uas txuas nrog Arduino pins 11, 12, 13, thiab 10, feem.

SD-Card cuam tshuam nrog Arduino UNO:

GND ------ NCO

5 Volt ------- VCC

Pin 12 -------- MISO

Pin 11 -------- MOSI

Pin 13 ------- SCK

Pin 10 -------- SCS

Cov ntaub ntawv tsuas yog sau rau hauv daim ntawv hauv SD daim ntawv raws li cov ntawv file.close () qhia; yog li ntawd, txhua qhov file.println (cov ntaub ntawv) kev qhia yuav tsum ua raws los ntawm file.close () kev qhia thiab ua ntej los ntawm SD.open ("filename", FILE_WRITE) cov lus qhia. SD.open () muaj nuj nqi teeb tsa ntawm FILE_READ, yog li qhov xaiv FILE_WRITEis xav tau los sau rau hauv cov ntawv. Cov lus qhia ua ntu zus xav tau txhua lub sijhawm los sau rau hauv daim npav SD yog SD.open ("filename", FILE_WRITE); file.println (cov ntaub ntawv); file.close (); cov.

2) LWD:-

Cov duab tiv thaiv kab mob (cov ntawv luv LDR rau Lub Teeb Txo Kev Tiv Thaiv, lossis lub teeb nyob ntawm tus tiv thaiv, lossis lub xov tooj ntawm tes) yog qhov tsis tiv thaiv uas txo qis kev ua haujlwm nrog kev hwm kom tau txais lub teeb ci (lub teeb) ntawm cov khoom siv tiv thaiv nto. Qhov tsis kam ntawm tus yees duab resistor txo nrog kev nce hauv qhov teeb meem teeb pom kev zoo; hauv lwm lo lus, nws nthuav tawm photoconductivity.

LDR cuam tshuam nrog Arduino UNO:

Nws ib lub davhlau ya nyob twg txuas nrog 5volt thiab lub davhlau ya nyob twg thib ob txuas nrog 1k resistor. Qhov thib ob kawg ntawm 1k resistor yog hauv av. LDR nws tus kheej yog tus tiv thaiv thiab hom kev teeb tsa no yog siv los ntsuas & ntsuas hluav taws xob, qhov no yog cov txheej txheem faib hluav taws xob. Lub davhlau ya nyob twg txuas nrog txuas tus pin# A3 ntawm Arduino UNO.

3) 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 tw:

1) Serial moos (SCL)

&

2) Cov ntaub ntawv tseem ceeb (SDA)

NCO TSEG: >>> DS3231 txuas nrog Arduino UNO xws li;

DS3231: Arduino UNO:

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

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

SDA -------------------- tus pin# A4

SCL -------------------- tus pin#A5

4) DHT11:-

DHT11 yog tus nqi qis digital sensor rau pom qhov kub thiab txias. Qhov ntsuas no tuaj yeem yooj yim cuam tshuam nrog ib tus tswj hwm micro xws li Arduino, Raspberry Pi thiab lwm yam … txhawm rau ntsuas cov av noo thiab ntsuas kub sai. DHT11 cov av noo thiab qhov ntsuas kub muaj raws li lub ntsuas thiab ua qauv. Qhov sib txawv ntawm qhov ntsuas no thiab tus qauv yog rub tawm tus tiv thaiv thiab lub zog-ntawm LED. DHT11 yog qhov ntsuas qhov txheeb ze txheeb ze. Txhawm rau ntsuas cov huab cua ib puag ncig no lub ntsuas cua siv lub ntsuas cua sov thiab lub peev xwm ntsuas cov av noo.

Txuas DHT 11 Sensor nrog Arduino UNO:

DHT11 Arduino UNO

GND ------------------------------ GND

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

Cov Ntaub Ntawv (Teeb Meem) ------------------ tus pin#6

5) GPS Module:-

GPS (Txheej Txheem Thoob Ntiaj Teb Thoob Ntiaj Teb) tus qauv thiab tau siv rau kev qhia. Tus qauv tsuas txheeb xyuas nws qhov chaw nyob hauv ntiaj teb thiab muab cov ntaub ntawv tso tawm uas yog ntev thiab latitude ntawm nws txoj haujlwm.

Muaj ntau hom GPS qauv sib txawv thiab siv los nrhiav qhov tseem ceeb ntawm qhov sib txawv sib txawv. xws li;

//**********************************************************************************************************************

NCO TSEG:- NTAWV NTAWV NTXIV Koj tuaj yeem hu qhov haujlwm no;

gps.getDataGPRMC (sijhawm, xwm txheej, latitud, latitudHemisphere, longitud, longitudMeridiano, speedKnots, trackAngle, hnub tim, sib nqusVariation, magneticVariationOrientation);

Serial.println (sijhawm); Serial.println (xwm txheej);

Serial.println (latitud);

Serial.println (latitudHemisphere);

Serial.println (qhov ntev);

Serial.println (longitudMeridiano);

Serial.println (speedKnots);

Serial.println (trackAngle);

Serial.println (hnub tim);

Serial.println (Sib nqus sib txawv);

Serial.println (sib nqusVariationOrientation);

//******************************************************************************************************************

lwm qhov piv txwv yog siv los tsim qhov txuas rau GPS module. xws li;

gps. Google (txuas);

//*******************************************************************************************************************

&&&

NCO TSEG:- Yog tias koj tsis tau txais cov ntaub ntawv ntau ntxiv, koj tuaj yeem hu qhov haujlwm no;

gps.getDataGPRMC

latitud, latitudHemisphere, longitudinal, longitudinal Meridiano

; Serial.println (latitud);

Serial.println (latitudHemisphere);

Serial.println (qhov ntev);

Serial.println (longitudMeridiano);

//******************************************************************************************************************

Kuv tau siv cov kab no kom tau LONGITUDEE & LATITUDE.

Longi = (gps.location.lng (), 54.01125); Lati = (gps.location.lat (), 1.95949);

//******************************************************************************************************************

ceeb toom:

koj tuaj yeem siv cov lej saum toj no kom tau txais cov ntaub ntawv ntau ntxiv los ntawm koj li GPS Module. Kuv tsuas yog siv kom tau txais Longitude thiab latitude.

//******************************************************************************************************************

Ua raws li yog txoj hauv kev txhawm rau txuas lub GPS QAUV nrog ARDUINO UNO:

GPS Module: Arduino UNO:

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

Vcc ------------------------------ 5volt

RX ------------------------------- tus pin#3

TX ------------------------------ pin#4

//********************************************************************************************************************

Kauj ruam 2:

Duab
Duab
Duab
Duab

YUAV TSUM TAU "DATA. CSV" FILE WHILE PROTEUS SIMULATIONS:-

NCO TSEG:

> Ua ntej, Ua kom ntseeg tau tias koj lub Circuit raug thiab tsis muaj qhov yuam kev.

> koj tau xa cov ntawv hex hauv Arduino UNO.

> koj tau muab daim SD Card tso rau ntawm SD- daim npav.

> pib koj simulation tom qab nias lub pob ua si ntawm kaum sab laug hauv qab ntawm Proteus.

> koj lub davhlau ya nyob twg virtual tau qhib thiab koj cov ntaub ntawv raug kaw tom qab ncua (1000);

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Yog

koj yuav pom lub cim xeeb cov ntsiab lus qhov rai, ntawm no yog cov ntaub ntawv.csv muaj. Export nws hauv koj lub computer.

Kauj ruam 3:

Duab
Duab

EXCEL Ua Haujlwm:-

Qhib Excel thiab txhaj koj cov ntaub ntawv data.csv hauv nws. cov ntaub ntawv yuav qhia hauv kab nrog lub npe thiab coj kab kab.

Kauj ruam 4:

Pom zoo: