Cov txheej txheem:

Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging - Proteus Simulation - Fritzing - Liono Maker: 5 Kauj Ruam
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging - Proteus Simulation - Fritzing - Liono Maker: 5 Kauj Ruam

Video: Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging - Proteus Simulation - Fritzing - Liono Maker: 5 Kauj Ruam

Video: Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging - Proteus Simulation - Fritzing - Liono Maker: 5 Kauj Ruam
Video: yuav coj li cas kom luag nyiam 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging | Proteus Simulation | Fritzing | Liono txiag
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging | Proteus Simulation | Fritzing | Liono txiag
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging | Proteus Simulation | Fritzing | Liono txiag
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging | Proteus Simulation | Fritzing | Liono txiag
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging | Proteus Simulation | Fritzing | Liono txiag
Yuav Ua Li Cas Kub thiab Teeb Pom Kev Logging | Proteus Simulation | Fritzing | Liono txiag

Nyob zoo qhov no yog Liono Maker, Nov yog kuv li YouTube Channel raug cai. Nov yog qhib Source YouTube Channel.

Nov yog Qhov Txuas: Liono Maker YouTube Channel

Nov yog daim vis dis aus txuas: Temp & light Intensity Logging

Hauv qhov kev qhia no peb yuav kawm paub yuav Ua Li Cas Ua Kom Kub thiab Teeb Pom Kev Logging nrog Arduino UNO thiab Micro SD-Card Module. Lub hauv paus tseem ceeb yog LDR uas yog siv los ntsuas kev siv lub teeb thiab lwm qhov yog LM35 uas yog siv los ntsuas kub. Ob lub teeb liab sib piv no raug xa mus rau Arduino tus pin Ao thiab A1. SD Card tab tom ua txoj haujlwm tseem ceeb hauv txoj haujlwm no uas tau nkag mus. kev sau cov ntaub ntawv lossis cov ntaub ntawv kaw tseg yog txheej txheem uas peb sau peb cov ntaub ntawv hauv peb cov ntaub ntawv ces peb pom kab kab hauv Excel. Cov lus qhia ua ntu zus xav tau txhua lub sijhawm los sau rau hauv daim npav SD yog;

1_SD.open ("filename", FILE_WRITE);

2_file.println (cov ntaub ntawv);

3_file.close ();

Cov ntaub ntawv ntawm daim npav SD tuaj yeem nyeem tau thiab cov ncauj lus nthuav tawm ntawm tus saib xyuas. Serial.print () thiab Serial.write () yog siv los tso saib cov ntsiab lus ntawm cov ntaub ntawv.

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_LM35:-

LM35 yog precession Integrated Circuit Kub sensor, nws qhov hluav taws xob tso tawm txawv, raws li qhov ntsuas kub nyob ib puag ncig nws. Nws yog IC me me thiab pheej yig uas tuaj yeem siv los ntsuas qhov kub nyob qhov twg ntawm -55 ° C txog 150 ° C.

Muaj peb ceg ntawm Lm35;

1-Vcw

2-tawm

3 -nug

Lm35 yog qhov ntsuas kub tshwj xeeb, siv los ntsuas qhov kub thiab txias. Nws thawj lub davhlau ya nyob twg txuas nrog VCC mus rau 5volt Arduino tus pin thiab lub davhlau ya nyob twg thib ob yog Tawm txuas nrog Analog tus pin, uas yog txhais hauv coding. Lub davhlau ya nyob twg thib peb txuas nrog Gnd, uas yog Gnd.

3_LDR:-

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 4.7k resistor. Qhov thib ob kawg ntawm 4.7k 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. Cov davhlau ya nyob twg feem ntau txuas nrog analog pin ntawm Arduino (tus pin# tau hais tseg hauv coding). Kuv tab tom qhia cov duab.

Kauj ruam 2:

Duab
Duab
Duab
Duab
Duab
Duab
Duab
Duab

Proteus Simulations:-

Hauv qhov kev qhia no peb siv Proteus Software, uas yog siv los sim peb qhov project (Temp & Light Intensity logging). Ua ntej tshaj, qhib koj li Proteus software siv cov khoom siv thiab khoom siv los ua koj daim duab kos duab. Tom qab ua tiav Circuit Court peb yuav tsum simulate nws. rau lub hom phiaj no peb xav tau upload Arduino coding hex file hauv Arduino Property. Txoj cai nyem rau ntawm Arduino thiab mus rau Arduino Cov cuab yeej theej & paste hex cov ntaub ntawv qhov chaw lossis ncaj qha xaiv koj cov ntawv tom qab ntawd upload nws. qhov thib ob yog txhawm rau xa daim npav SD daim ntawv, rau lub hom phiaj no xaiv 32 GB thiab mus rau qhov chaw cov ntaub ntawv thiab tom qab ntawd theej thiab muab cov ntawv no lossis tso ncaj qha los ntawm kev xaiv los ntawm cov ntawv sib txawv. hauv qab no yog txoj hauv kev los upload koj cov ntaub ntawv: Luam & Muab tshuaj txhuam SD daim npav qhov chaw / Cov ntaub ntawv npe.

tom qab ua tiav ob txoj haujlwm no koj yuav tsum tau txheeb xyuas qhov Circuit uas koj tau ua yog tias muaj qhov yuam kev no hauv koj thov kho nws ua ntej simulation.

Muaj khawm ua si nyob rau sab laug ntawm Proteus software schematic page. nias nws thiab koj Simulation tau pib.

/* Cov hauv qab no yog cov lus qhia rau SD daim npav los sau cov ntaub ntawv ntawm cov ntawv.

Cov lus qhia ua ntu zus xav tau txhua lub sijhawm los sau rau hauv daim npav SD yog;

1_SD.open ("filename", FILE_WRITE);

2_file.println (cov ntaub ntawv);

3_file.close (); */

tom qab cov lus qhia no Arduino code siv sijhawm qeeb (5000); tom qab ntawv sau cov ntawv nyeem tshiab thiab ntxiv rau cov txheej txheem no mus. lub davhlau ya nyob twg virtual qhia cov txiaj ntsig raws li hauv qab no.

SD Card OK

cov ntaub ntawv1

cov ntaub ntawv 2

cov ntaub ntawv 3

cov ntaub ntawv 4

cov ntaub ntawv 5

koj tuaj yeem hloov koj cov lus teb qeeb los sau koj cov ntaub ntawv hauv lub sijhawm luv. koj tuaj yeem pom cov lus teb no ntawm cov ntaub ntawv cov ntaub ntawv.

Kauj ruam 3:

Duab
Duab
Duab
Duab
Duab
Duab

Cov Sijhawm Sijhawm Cov Ntaub Ntawv Kab Kab hauv EXCEL:-

Microsoft Excel tau siv los ua kab kab ntawm cov ntaub ntawv ntsuas kub thiab cov ntaub ntawv siv qhov sib xws hauv qhov haujlwm no.

Ua ntej tshaj, peb yuav tsum qhib Excel thiab txhaj (mus rau Cov Ntaub Ntawv thiab xaiv koj cov ntawv txt) koj cov ntaub ntawv hauv Excel. cais koj qhov kub thiab lub teeb siv cov ntaub ntawv kab. mus rau qhov ntxig thiab ntxig kab kab. Kuv tab tom qhia kuv cov ntaub ntawv ua tiav kuj yog Excel cov ntaub ntawv thiab Cov Sijhawm Sijhawm cov ntaub ntawv Kab kab thiab cov ntaub ntawv.

cov kab lus no qhia peb raws li qhov ntsuas kub hloov pauv thiab tom qab ntawd cov tshuaj tiv thaiv duab-resistor (LDR) kuj hloov pauv.

Kauj ruam 4:

Ua tiav Cov Ntaub Ntawv siv hauv txoj haujlwm no: -

Nov yog kuv qhov YouTube txuas, qhov no yog qhov qhib qhov channel. peb tab tom muab txhua yam cuam tshuam nrog peb txoj haujlwm thiab khoom siv hauv peb tes num, cov ntaub ntawv txheeb ze thiab lwm yam.

Kuv tab tom qhia kuv cov ntaub ntawv tiav & duab hauv zip file, uas muaj;

1_Fritzing cov ntaub ntawv

2_proteus simulation cov ntaub ntawv

3_Arduino coding ntaub ntawv

4_Arduino coding HEX cov ntaub ntawv

5_SD daim npav ntawv

6_data cov ntaub ntawv

7_Excel cov ntaub ntawv suav nrog kab kab, lwm yam

Pom zoo: