Cov txheej txheem:

RC Meter Siv Tiva Microcontroller: 7 Kauj Ruam
RC Meter Siv Tiva Microcontroller: 7 Kauj Ruam

Video: RC Meter Siv Tiva Microcontroller: 7 Kauj Ruam

Video: RC Meter Siv Tiva Microcontroller: 7 Kauj Ruam
Video: RC meter using Tiva microcontroller 2024, Kaum ib hlis
Anonim
RC Meter Siv Tiva Microcontroller
RC Meter Siv Tiva Microcontroller
RC Meter Siv Tiva Microcontroller
RC Meter Siv Tiva Microcontroller

Rau qhov haujlwm no micro-maub los raws lub ntsuas cua RC tau tsim thiab siv los ua kom nqa tau, raug, siv tau yooj yim thiab pheej yig rau tsim. Nws yog qhov yooj yim siv thiab tus neeg siv tuaj yeem xaiv hom 'meter' yooj yim xws li: tsis kam lossis muaj peev xwm.

RESISTANCE:

Qhov tsis kam ntawm cov khoom tsis paub tuaj yeem ntsuas siv txoj cai faib hluav taws xob qhov twg cov khoom tsis paub tau txuas nrog ua ntu nrog paub cov neeg tiv thaiv. Paub qhov hluav taws xob (Vcc) tau muab thiab qhov hluav taws xob poob qis nws ncaj qha rau nws qhov kev tiv thaiv. Rau qhov pib sib xws, 4 JFET cov khoom siv hluav taws xob tau siv uas sib piv qhov tsis paub qhov tsis muaj zog tiv thaiv thiab muab tus nqi zoo tshaj.

TSEEM CEEB:

Txog kev muaj peev xwm, lub sijhawm siv los them tus nqi hluav taws xob tawm mus rau 0.632 ntawm cov khoom siv hluav taws xob, VS; tau pom los ntawm lub txee hauv micro tswj thiab nws tau faib los ntawm tus nqi ntawm kev paub ua haujlwm piv txwv li 10k los muab lub peev xwm. Tus nqi ntsuas tau nthuav tawm ntawm LCD uas muab tus nqi taw tes ntab.

Kauj ruam 1: Kho vajtse thiab Cheebtsam

Kho vajtse thiab Cheebtsam
Kho vajtse thiab Cheebtsam
Kho vajtse thiab Cheebtsam
Kho vajtse thiab Cheebtsam
Kho vajtse thiab Cheebtsam
Kho vajtse thiab Cheebtsam

Peb yuav siv cov khoom siv hauv qab no:

1. Microcontroller TM4C123GH6PM

Cortex-M microcontroller xaiv rau kev tsim kho vajtse raws li kev cuam tshuam thiab kev cuam tshuam yog TM4C123 los ntawm Texas Instruments. Lub microcontroller no yog rau qhov ua tau zoo ARM Cortex-M4F raws cov qauv thiab muaj cov txheej txheej sab nrauv sib xyaw ua ke.

2. LCD

Cov kua siv lead ua kua (LCD) tab tom hloov qhov xya-ntu tso tawm vim nws cov nqi qis thiab ua ntau yam ntxiv rau tso cov cim lej. Ntau cov duab qhia tau zoo kuj tseem muaj tam sim no ntawm tus nqi nominal. Peb yuav siv 16x2 LCD.

3. 2N7000 MOSFET

2N7000 yog N-channel, txhim kho-hom MOSFETs siv rau kev hloov pauv qis-thov, nrog rau kev npaj cov hlau lead tuag thiab kev ntsuas tam sim no. Ntim hauv lub thawv TO-92, 2N7000 yog 60 V ntaus ntawv. Nws tuaj yeem hloov 200 mA.

4. Kuj

Kev tiv thaiv ntawm 100 ohm, 10kohm, 100kohm, 698kohm tab tom siv rau kev hloov pauv tus kheej hauv Kev ntsuas qhov ntsuas thiab 10k rau lub Circuit Court hauv Capacitance meter.

Kauj Ruam 2: Tus Kheej PIN

PIN CONFIGURATION
PIN CONFIGURATION

Qhov kev txiav txim uas peb yuav muab cov pins tso rau hauv daim duab:

Kauj Ruam 3: Ua haujlwm

Ua haujlwm
Ua haujlwm
Ua haujlwm
Ua haujlwm
Ua haujlwm
Ua haujlwm

R ntsuas

Txoj Cai

R 'meter' yog tsim los siv lub hauv paus ntsiab lus ntawm kev faib hluav taws xob. Nws hais tias Qhov hluav taws xob tau faib tawm ntawm ob qhov kev tawm tsam hauv qhov ncaj qha rau lawv qhov kev tiv thaiv.

Ua hauj lwm

Peb tau siv plaub lub voj voog MOSFETs uas muab kev hloov pauv. Thaum twg los xij uas tsis paub yuav tsum tau ntsuas, ua ntej ntawm txhua qhov hluav taws xob tau ntsuas hla qhov tsis paub tsis kam uas yog ib txwm rau txhua ntawm 4 qhov kev siv hluav taws xob faib txoj cai. Tam sim no ADC muab tus nqi ntawm qhov hluav taws xob hla txhua qhov kev paub tiv thaiv thiab qhia nws ntawm LCD. Daim duab hluav taws xob thiab PCB txheej txheem rau R meter tau qhia hauv daim duab.

Hauv peb qhov kev sib tw peb tab tom siv 5 tus pin tswj ntawm microcontroller piv txwv li PD2, PC7, PC6, PC5 thiab PC4. Cov pins no tau siv rau muab 0 lossis 3.3V rau cov kab lus sib xws. ADC tus pin piv txwv li PE2 ntsuas qhov hluav taws xob thiab LCD qhia nws ntawm qhov screen.

C ntsuas

Txoj Cai

Rau kev ntsuas C peb tab tom siv lub tswv yim ntawm lub sijhawm tas mus li.

Ua hauj lwm

Muaj ib qho yooj yim RC Circuit, cov tswv yim DC qhov hluav taws xob uas tau tswj hwm los ntawm peb piv txwv li yog siv tus pin PD3 ntawm tiv. Ntawm qhov peb muab 3.3Volts rau hauv Circuit Court. Sai li peb ua tus pin PD3 tso tawm, peb pib lub sijhawm ntsuas thiab tseem pib ntsuas qhov hluav taws xob hla lub capacitor siv Analog rau Digital hloov pauv, uas twb muaj tam sim no hauv tiva. rooj plaub yog 2.0856), peb nres lub sijhawm thiab peb tso tseg muab khoom rau peb cov khoom siv hluav taws xob. Tom qab ntawd peb ntsuas lub sijhawm siv tus nqi ntsuas thiab zaus. peb tab tom siv R ntawm kev paub tus nqi piv txwv li 10k, Yog li tam sim no peb muaj sijhawm thiab R peb tuaj yeem yooj yim thiab tus nqi ntawm lub peev xwm siv cov qauv hauv qab no:

t = RCA

Kauj ruam 4: CODING THIAB VIDEO

Image
Image

Nov yog Cov phiaj xwm phiaj xwm thiab cov ntaub ntawv teev tseg ntawm cov khoom siv.

Txoj haujlwm tau teev nyob hauv Keil Microvision 4. Koj tuaj yeem rub nws los ntawm lub vev xaib ntawm Keil 4. Rau cov ntsiab lus ntawm ntau kab ntawm cov lej, koj raug txhawb kom hla cov ntaub ntawv ntawm tiva micro-controller ntawm https:// www. ti.com/lit/gpn/tm4c123gh6pm

Kauj Ruam 5: RESULTS

XAUS
XAUS
XAUS
XAUS

Cov txiaj ntsig ntawm cov txiaj ntsig sib txawv ntawm cov resistors thiab capacitors tau raug qhia hauv daim ntawv ntawm cov ntxhuav thiab lawv qhov kev sib piv kuj tseem muaj nyob hauv daim duab.

Kauj Ruam 6: XAUS

KAWG
KAWG

Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog txhawm rau tsim lub microcontroller raws li LCR meter txhawm rau ntsuas Inductance, Capacitance thiab Resistance. Lub hom phiaj tau ua tiav raws li lub ntsuas ntsuas ua haujlwm thiab tuaj yeem pom qhov tseem ceeb rau tag nrho peb yam khoom thaum lub pob raug thawb thiab cov khoom tsis paub txuas nrog. Lub microcontroller yuav xa lub teeb liab thiab ntsuas cov lus teb ntawm cov khoom uas tau hloov pauv mus rau hauv daim ntawv digital thiab txheeb xyuas siv cov qauv txheej txheem hauv microcontroller kom muab tus nqi xav tau. Qhov txiaj ntsig tau xa mus rau LCD kom pom.

Kauj Ruam 7: Tshwj xeeb ua tsaug

Ua tsaug tshwj xeeb rau kuv cov tswv cuab thiab kuv tus Kws Qhia uas tau pab kuv dhau txoj haujlwm no. Kuv vam tias koj pom qhov kev qhia no nthuav. Nov yog Fatima Abbas los ntawm UET Kos Npe Tawm.

Vam tias yuav coj qee yam ntxiv rau koj sai sai no. Txog thaum ntawd saib xyuas:)

Pom zoo: