BM-305 Mikrodenetleyiciler Güz 2016 (7. Sunu) (Yrd. Doç. Dr. Deniz Dal)
ARDUINO İÇİN C++ KÜTÜPHANESİ (LIBRARY) GELİŞTİRİLMESİ
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.
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ü. https://www.arduino.cc/en/Hacking/LibraryTutorial
LM35DZ.h
LM35DZ.cpp
tab keywords.txt tab
LM35DZTest.ino
Sketch - > Include Library - > LM35DZ File - > Examples - > LM35DZTest
ORTAK KATOTLU/ANOTLU TEK DİJİT 7 PARÇALI GÖSTERGENİN SÜRÜLMESİ
Tek Dijit 7 Parçalı Gösterge
Tek Dijit 7 Parçalı Gösterge
Ortak Katotlu Tek Dijit 7 Parçalı Gösterge
Ortak Katotlu Tek Dijit 7 Parçalı Göstergenin Pinout Diyagramı
Ortak Katotlu Tek Dijit 7 Parçalı Göstergenin Testi
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.
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ü.
SSD.h
SSD.cpp
SSD.cpp
SSD.cpp
SSD.cpp
SSD.cpp
tab keywords.txt tab
SSDTest.ino
Sketch - > Include Library - > SSD File - > Examples - > SSDTest
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.
ORTAK KATOTLU/ANOTLU 4 DİJİT 7 PARÇALI GÖSTERGENİN SÜRÜLMESİ
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). http://www.digilentinc.com/classroom/Electronics101/p1.cfm
An NPN Transistor as a Switch
Görüntünün Sürekliliği (Persistence of Vision) Teorisi http://www.engineersgarage.com/microcontroller/8051projects/seven-segment-multiplexing-AT89C51-circuit 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. http://www.youtube.com/watch?v=IpFqXNPH1NU
Ç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. http://www.instructables.com/id/Arduino-7-segment-countdown-timer/step2/What-is-multiplexing/
4 Dijit 7 Parçalı Gösterge
Ortak Katotlu 4 Dijit 7 Parçalı Göstergenin Pinout Diyagramı
Ortak Katotlu 4 Dijit 7 Parçalı Göstergenin Testi
Ortak Katotlu 4 Dijit 7 Parçalı Göstergenin Sürülmesi