Cov txheej txheem:

Laser Tripwire Siv ARM Cortex-M4: 4 Cov Kauj Ruam
Laser Tripwire Siv ARM Cortex-M4: 4 Cov Kauj Ruam

Video: Laser Tripwire Siv ARM Cortex-M4: 4 Cov Kauj Ruam

Video: Laser Tripwire Siv ARM Cortex-M4: 4 Cov Kauj Ruam
Video: moje lego ramie 2024, Kaum ib hlis
Anonim
Laser Tripwire Siv ARM Cortex-M4
Laser Tripwire Siv ARM Cortex-M4

Qhov no yog qhov phiaj xwm phiaj xwm uas siv ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) los ua Laser Tripwire system. Lub kaw lus ua haujlwm nrog lub suab nrov, sab nraud monochromatic lub teeb pom kev zoo hauv daim ntawv tsom mus rau lub teeb, LDR thiab NPN transistor.

BC547 siv los ua NPN transistor los tswj cov txiaj ntsig tau los ntawm LDR rau ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL). Qhov kev nkag siab ntawm lub kaw lus tuaj yeem hloov kho los ntawm kev hloov kho ntawm BJT.

Cov zis tuaj yeem tau txais ntawm Serial Monitor of Energia IDE, Tera Team, Keil uVision lossis lwm yam software davhlau ya nyob twg. Tag nrho cov Circuit Court yog siv los ntawm +5V (VBUS) thiab +3.3V ntawm EK-TM4C123GXL.

.bin cov ntaub ntawv ntawm c99 code tau txuas nrog qhov muab txuas ntawm qhov kawg ntawm qhov kev qhia no..bin cov ntaub ntawv tuaj yeem xa mus rau lub microcontroller siv LM Flash Programmer.

Kauj ruam 1: Yuav tsum tau ua

Cov hauv qab no yuav tsum ua kom tiav txoj haujlwm no:

1- Texas Instruments EK-TM4C123GXL 2- Monochromatic Light Source

3- Lub suab nrov

4- LDR

5- NPN BJT (BC547)

6- LM Flash Programmer (software ntawm PC)

7- Virtual Terminal (software ntawm PC)

=> Yog tias koj tsis paub siv thiab teeb tsa LM Flash Programmer, tom qab ntawv thov txheeb xyuas kuv li Kev Qhia Ua Ntej dhau los, lossis nyem rau ntawm qhov txuas hauv qab no:

Rub tawm LM Flash Programmer

Upload.bin lossis.hex Cov Ntaub Ntawv Siv LM Flash Programmer

Kauj Ruam 2: Pin-outs & thaiv

Pin-outs & Txuas
Pin-outs & Txuas

Tus Pin-outs & Wiring ntawm ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) thiab lwm yam khoom siv txuas nrog cov kauj ruam no thiab tseem muab cov hauv qab no:

==================== TM4C123GXL => Buzzer

====================

PB0 => VCC

GND => GND

====================

TM4C123GXL => BC547

====================

+5V => Tus neeg sau khoom

PB5 => Emitter

============

BC547 => LDR

============

Base => Pin-1

==================

TM4C123GXL => LDR

==================

+5V => Pin-2

Kauj ruam 3: Upload cov ntaub ntawv.bin

Upload cov ntaub ntawv.bin
Upload cov ntaub ntawv.bin
Upload cov ntaub ntawv.bin
Upload cov ntaub ntawv.bin

Xa cov ntawv.bin txuas nrog cov kauj ruam no rau ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) siv LM Flash Programmer.

Kauj Ruam 4: Tau Koj Cov Zis

Tau Koj Cov Zis
Tau Koj Cov Zis
Tau Koj Cov Zis
Tau Koj Cov Zis

Tom qab xa cov ntaub ntawv.bin rau ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL), koj tuaj yeem tau txais koj lub suab nrov lossis ib qho ntawm koj lub davhlau ya nyob twg xav tau. Energia IDE Serial Monitor, Keil uVision thiab Tera Team Virtual Terminal thiab lwm yam lossis ob qho tib si.

Pom zoo: