Mundarija:

ARM Cortex-M4 yordamida lazerli Tripwire: 4 qadam
ARM Cortex-M4 yordamida lazerli Tripwire: 4 qadam

Video: ARM Cortex-M4 yordamida lazerli Tripwire: 4 qadam

Video: ARM Cortex-M4 yordamida lazerli Tripwire: 4 qadam
Video: Laser distance measurement with M5Stack Core2 ESP32 and VL53L0X with Arduino - Robojax 2024, Noyabr
Anonim
ARM Cortex-M4 yordamida lazerli Tripwire
ARM Cortex-M4 yordamida lazerli Tripwire

Bu "LM Tripwire" tizimini yaratish uchun ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) dan foydalanadigan dastur.

BC547 NDR tranzistori sifatida LDRdan ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) ga chiqishni tartibga solish uchun ishlatiladi. Tizimning sezgirligini BJT konfiguratsiyasini o'zgartirish orqali o'zgartirish mumkin.

Chiqish Energia IDE, Tera Team, Keil uVision yoki boshqa terminal dasturiy ta'minotining Serial monitorida olinishi mumkin. Butun elektron +5V (VBUS) va +3.3V EK-TM4C123GXL bilan quvvatlanadi.

cbin kodining.bin fayli ushbu qo'llanmaning oxirida berilgan havola bilan biriktirilgan..bin faylini LM Flash Programmer yordamida mikrokontrollerga yuklash mumkin.

1 -qadam: talablar

Loyihani amalga oshirish uchun quyidagilar zarur:

1- Texas Instruments EK-TM4C123GXL 2- Monoxromatik yorug'lik manbai

3- Buzzer

4- LDR

5- NPN BJT (BC547)

6- LM Flash dasturchisi (kompyuterda dasturiy ta'minot)

7- Virtual terminal (kompyuterda dasturiy ta'minot)

=> Agar siz LM Flash Programmer dasturidan qanday foydalanishni va o'rnatishni bilmasangiz, iltimos, oldingi ko'rsatmalarni ko'rib chiqing yoki quyidagi havolalarni bosing:

LM Flash dasturchi yuklab olish

LM Flash Programmer yordamida.bin yoki.hex faylini yuklang

2-qadam: simlarni ulash va ulash

Chiqish va simlarni ulash
Chiqish va simlarni ulash

ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) va boshqa tashqi qurilmalarni ulash va ulash simlari ushbu qadam bilan biriktirilgan va ularga quyidagilar berilgan:

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

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

PB0 => VCC

GND => GND

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

TM4C123GXL => BC547

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

+5V => Kollektor

PB5 => Emitent

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

BC547 => LDR

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

Baza => Pin-1

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

TM4C123GXL => LDR

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

+5V => Pin-2

3 -qadam:.bin faylini yuklang

. Bin faylini yuklang
. Bin faylini yuklang
. Bin faylini yuklang
. Bin faylini yuklang

Bu qadam bilan biriktirilgan.bin faylini LM Flash Programmer yordamida ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) ga yuklang.

4 -qadam: Sizning natijangizni oling

O'z natijangizni oling
O'z natijangizni oling
O'z natijangizni oling
O'z natijangizni oling

. Bin faylini ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) ga yuklaganingizdan so'ng, siz qo'ng'iroq signalini yoki xohlagan terminalingizni olishingiz mumkin. Energia IDE Serial Monitor, Keil uVision va Tera Team Virtual Terminal va boshqalar.

Tavsiya: