Sunuyu indir
Sunum yükleniyor. Lütfen bekleyiniz
1
BM-305 Mikrodenetleyiciler Güz 2016 (7. Sunu)
(Yrd. Doç. Dr. Deniz Dal)
2
ARDUINO İÇİN C++ KÜTÜPHANESİ (LIBRARY) GELİŞTİRİLMESİ
3
LM35DZ Sıcaklık Sensörü LM35DZ temperature sensor gives an output of 10mV for every 1 degree Celcius. With aRef at 1.1V, the temperature range of the LM35 is limited to 0 to 110 degrees Celcius.
4
LM35DZ Kütüphanesi ve Arduino IDE Ortamına Entegrasyon
LM35DZ.h LM35DZ.cpp keywords.txt LM35DZTest LM35DZTest.ino Arduino klasörünün altındaki libraries klasörünün bir alt klasörü.
5
LM35DZ.h
6
LM35DZ.cpp
7
tab keywords.txt tab
8
LM35DZTest.ino
9
Sketch - > Include Library - > LM35DZ File - > Examples - > LM35DZTest
10
ORTAK KATOTLU/ANOTLU TEK DİJİT 7 PARÇALI GÖSTERGENİN SÜRÜLMESİ
11
Tek Dijit 7 Parçalı Gösterge
12
Tek Dijit 7 Parçalı Gösterge
13
Ortak Katotlu Tek Dijit 7 Parçalı Gösterge
14
Ortak Katotlu Tek Dijit 7 Parçalı Göstergenin Pinout Diyagramı
15
Ortak Katotlu Tek Dijit 7 Parçalı Göstergenin Testi
16
Ortak Katotlu Tek Dijit 7 Parçalı Göstergenin Desimal Sayıcı Olarak Sürülmesi
QUESTION: Instead of using 8 resistors, could you just add one kilo-ohm resistor to the common ground of the unit and have the equivalent circuit? ANSWER: Actually you would not get an equivalent circuit with the single-kilo-ohm resistor setup you propose. The reason why is that not all the segments on the 7-segment display is going to be on all the time. Displaying an "8" consumes more current as opposed to a "1". Because the current consumption varies, so will the voltage across the single resistor (remember Ohm's Law: V=IR), which causes the voltage across the LEDs to vary as well. So what you get is that the LED segments will vary in brightness depending on how many segments are on at once. With the parallel network of resistors, each LED will be the same brightness no matter how many segments are on at once.
17
SSD SSD.h SSD.cpp keywords.txt SSDTest SSDTest.ino
SSD (Seven Segment Display) Kütüphanesi ve Arduino IDE Ortamına Entegrasyon SSD SSD.h SSD.cpp keywords.txt SSDTest SSDTest.ino Arduino klasörünün altındaki libraries klasörünün bir alt klasörü.
18
SSD.h
19
SSD.cpp
20
SSD.cpp
21
SSD.cpp
22
SSD.cpp
23
SSD.cpp
24
tab keywords.txt tab
25
SSDTest.ino
26
Sketch - > Include Library - > SSD File - > Examples - > SSDTest
27
9’s Complement SSD 1 SSD 2 To obtain the 9’s complement of any number we have to subtract the number from (10n - 1), where n = number of digits in the number.
28
ORTAK KATOTLU/ANOTLU 4 DİJİT 7 PARÇALI GÖSTERGENİN SÜRÜLMESİ
29
PN2222 NPN Transistor (40 V, 0.6 A (600 mA), TO-92)
Bipolar Junction Transistors, BJTs, are three-terminal devices. The terminals of a BJT are called the base (B), the collector (C) and the emitter (E). The symbol used to represent an NPN type BJT is shown in Figure a. The physical appearance of a PN2222 BJT is shown in Figure b along with the relative locations of the base, collector and emitter for that BJT. If we apply a voltage to the base of the BJT, current is allowed to flow from the collector to the emitter of the BJT. Typically, the higher the voltage applied to the base of the BJT, the more current flows from the emitter. The BJT can act as a switch; low base voltages turn off the switch (the emitter current is zero) while high base voltages turn the switch on (the emitter current is non-zero).
30
An NPN Transistor as a Switch
31
Görüntünün Sürekliliği (Persistence of Vision) Teorisi
Human brain cannot differentiate between two events occurring at a time difference of less than 0.04 (1/25) sec. For example, if the individual digits of a 4 digit 7 seven segment display are displayed one after the other so fast, the human brain cannot detect the difference. Although only one digit is displayed at a time, it appears as a four digit number.
32
Çoğullama (Multiplexing)
Multiplexing is a technique to control more than one 7 segment displays with a few IO pins. It is based on having two or more 7 segment displays and connecting them together. (An example of what they would display is 00, 11, 22, 33, 44, 55, 66, 77, 88, 99.) But what we do in this case is control each GND (-) individually which turns it into a multiplexed display. We will switch displays every 0.5 ms which gives us control of each display. It is useful when you are building a project with lots of components and are short of IO pins. For example, without multiplexing, driving two 7 segment displays requires 14 IO pins to control the whole circuitry. On the other hand, we can control two 7 segment displays with 9 IO pins using multiplexing.
33
4 Dijit 7 Parçalı Gösterge
34
Ortak Katotlu 4 Dijit 7 Parçalı Göstergenin Pinout Diyagramı
35
Ortak Katotlu 4 Dijit 7 Parçalı Göstergenin Testi
36
Ortak Katotlu 4 Dijit 7 Parçalı Göstergenin Sürülmesi
Benzer bir sunumlar
© 2024 SlidePlayer.biz.tr Inc.
All rights reserved.