A quick course in Binary


project #16: creating an led Binary number display



Download 2,72 Mb.
bet5/17
Sana03.07.2022
Hajmi2,72 Mb.
#736533
1   2   3   4   5   6   7   8   9   ...   17
Bog'liq
6 bo`lim

project #16: creating an led Binary number display


In this project, we’ll use eight LEDs to display binary numbers from 0 to 255. Our sketch will use a for loop to count from 0 to 255 and will send each value to the shift register, which will use LEDs to display the binary equivalent of each number.

The Hardware


The following hardware is required:

Connecting the 74HC595


Figure 6-5 shows the schematic symbol for the 74HC595.

74HC595



Figure 6-5: 74HC595 schematic symbol
There are 16 pins on our shift register:

  • Pins 15 and 1 to 7 are the eight output pins that we control (labeled Q0 to Q7, respectively).

  • Q7 outputs the first bit sent to the shift register, down to Q0, which outputs the last.

  • Pin 8 connects to GND.

  • Pin 9 is “data out” and is used to send data to another shift register if one is present.

  • Pin 10 is always connected to 5 V (for example, the 5 V connector on the Arduino).

  • Pins 11 and 12 are called clock and latch.

  • Pin 13 is called output enable and is usually connected to GND.

  • Pin 14 is for incoming bit data sent from the Arduino.

  • Pin 16 is used for power: 5 V from the Arduino.

To give you a sense of the way pins are oriented, the semicircular notch on the left end of the body of the shift register IC shown in Figure 6-4 lies between pins 1 and 16.
The pins are numbered sequentially around the body in a counterclockwise direction, as shown in Figure 6-6, the schematic for our LED binary number display.

note Once you have finished with this example circuit, keep it assembled. We’ll use it again with the forthcoming project.

Download 2,72 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   17




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.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