Laboratoriya ishi №13. Yetti segmentli bitta raqamli ko‘rsatkich. Laboratoriya ishining maqsadi



Download 253,4 Kb.
bet2/11
Sana01.06.2023
Hajmi253,4 Kb.
#947346
1   2   3   4   5   6   7   8   9   10   11
Laboratoriyaning amaliy qismi.
Modelni yig‘ish uchun bizga kerak:

    • Arduino Uno / Arduino Nano / Arduino Mega platasi;

    • bir xonali yetti segmentli indikator 5161as / hdsp 7503;

    • teginish tugmasi;

    • rezistorlar 220 Ohm;

    • panel;

    • papa-papa simlari.






Ushbu model uchun quyidagi dastur mos keladi:
KOD QISMI:
// C++ code
//

int pinA = 2;


int pinB = 3;
int pinC = 4;
int pinD = 5;
int pinE = 6;
int pinF = 7;
int pinG = 8;
void setup()
{
pinMode (pinA,OUTPUT);
pinMode (pinB,OUTPUT);
pinMode (pinC,OUTPUT);
pinMode (pinD,OUTPUT);
pinMode (pinE,OUTPUT);
pinMode (pinF,OUTPUT);
pinMode (pinG,OUTPUT);
}

void loop()


{
digitalWrite (pinA, LOW);
digitalWrite (pinB, LOW);
digitalWrite (pinC, LOW);
digitalWrite (pinD, LOW);
digitalWrite (pinE, LOW);
digitalWrite (pinF, LOW);
digitalWrite (pinG, HIGH);
delay(1000);
digitalWrite (pinA, HIGH);
digitalWrite (pinB, LOW);
digitalWrite (pinC, LOW);
digitalWrite (pinD, HIGH);
digitalWrite (pinE, HIGH);
digitalWrite (pinF, HIGH);
digitalWrite (pinG, HIGH);
delay(1000);
digitalWrite (pinA, LOW);
digitalWrite (pinB, LOW);
digitalWrite (pinC, HIGH);
digitalWrite (pinD, LOW);
digitalWrite (pinE, LOW);
digitalWrite (pinF, HIGH);
digitalWrite (pinG, LOW);
delay(1000);
digitalWrite (pinA, LOW);
digitalWrite (pinB, LOW);
digitalWrite (pinC, LOW);
digitalWrite (pinD, LOW);
digitalWrite (pinE, HIGH);
digitalWrite (pinF, HIGH);
digitalWrite (pinG, LOW);
delay(1000);
digitalWrite (pinA, HIGH);
digitalWrite (pinB, LOW);
digitalWrite (pinC, LOW);
digitalWrite (pinD, HIGH);
digitalWrite (pinE, HIGH);
digitalWrite (pinF, LOW);
digitalWrite (pinG, LOW);
delay(1000);
digitalWrite (pinA, LOW);
digitalWrite (pinB, HIGH);
digitalWrite (pinC, LOW);
digitalWrite (pinD, LOW);
digitalWrite (pinE, HIGH);
digitalWrite (pinF, LOW);
digitalWrite (pinG, LOW);
delay(1000);
digitalWrite (pinA, LOW);
digitalWrite (pinB, HIGH);
digitalWrite (pinC, LOW);
digitalWrite (pinD, LOW);
digitalWrite (pinE, LOW);
digitalWrite (pinF, LOW);
digitalWrite (pinG, LOW);
delay(1000);
}

Xulosa;
Men bu laboratoriya ishini bajarish davomida Yetti segmentli bir xonali ko‘rsatkich bilan tanishish va uni loyihalarda qo‘llashni o’rgandim.



Download 253,4 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   11




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish