(Dr. Öğr. Üyesi Deniz Dal)

Slides:



Advertisements
Benzer bir sunumlar
Hazırlayan ve Sunan Ali Yasin Çakılcı HUNROBOTX
Advertisements

    SiMETRi SiMETRi.
ORT – 104 Hoş Geldiniz.
ARDUINO İLE ANALOG ÇIKIŞ VERMEK
Logical Design Farid Rajabli.
S 2/e C D A Computer Systems Design and Architecture Second Edition© 2004 Prentice Hall Chapter 6 Overview Number Systems and Radix Conversion Fixed point.
ARDUINO RÖLE KONTROLÜ.
Bir Problemin Programa Dönüştürülme Süreci
Hareket halindeki insanlara ulaşın.Mobil Arama Ağı Reklamları Reach customers with Mobile Search Network.
Python Aslı Ergün.
Bölüm 7 - Diziler İçerik 7.1 Giriş 7.2 Diziler 7.3 Dizileri Tanımlama 7.4 Dizileri Kullanan Örnekler 7.5 Referanslar ve Referans Parametreler.
NOUN CLAUSES (İSİM CÜMLECİKLERİ).
COMPANY Veritabanı Örneği (Gereksinimler)
Kampanyanızı optimize edin. Görüntülü Reklam Kampanyası Optimize Edici'yi Kullanma Display Ads Campaign Optimizer. Let Google technology manage your diplay.
SÜLEYMAN DEM İ REL PRIMARY AND SECONDARY SCHOOL. GENERAL INTRODUCTION SCHOOL DIRECTORY, TEACHERS AND OTHER STAFF CLASSROOMS PARTS OF THE SCHOOL GALLERY.
COSTUMES KILIKLAR (KOSTÜMLER)
BM-305 Mikrodenetleyiciler Güz 2015 (6. Sunu) (Yrd. Doç. Dr. Deniz Dal)
AB’15 Arduino ile sensörler dersi
S ÜLEYMAN Ş AH ÜN İ VERS İ TES İ DERS KAYIT İŞ LEMLER İ / COURSE REGISTRATION PROCESS.
TEOG SINAVINA BU KELİMELERİ BİLMEDEN GİRMEYİN UNIT 4.
GPIO Burhan Baraklı.
Sensorler Ders4 Aslı Ergün.
We just want to have the peace for our world Dünyamız için sadece barış istiyoruz.
What is lost in translation?
Searching Thy Lover, To Be One Looking at the sky.. Behind every cloud and over the wings of the birds.. I always dreamt of you. You were looking for.
Improvement to Rankine cycle
Practice your writing skills
HAPPY EASTER! MUTLU PASKALYALAR ! Hepinizin Paskalya Bayramını kutluyoruz. Paskalya bizim kültürümüzde kutlanan bir bayram değil ama aynı dönemde bizim.
CHILD PORNOGRAPHY IŞIK ÜNİVERSİTESİ
Students social life and join the social clubs. BARIŞ KILIÇ - EGE DÖVENCİ IŞIK ÜNİVERSİTESİ
GAZİ ÜNİVERSİTESİ TEKNOLOJİ FAKÜLTESİ BİLGİSAYAR MÜHENDİSLİĞİ BÖLÜMÜ
PWM (Pulse Width Modulation- Sinyal Genişlik Modülasyonu)
ADA BİYOCOĞRAFYASI.
Self-Registration on the Coats Supplier Portal
Motor Sürücü Devresi ile Kontrol
ARDUİNO Arduino Eğitimleri Bölüm 6 Analog Giriş – Çıkış İşlemleri
BM-305 Mikrodenetleyiciler Güz 2016 (7. Sunu)
Mekatronik Mühendisliği
GÜÇ ELEKTRONİĞİ II Anahtarlamalı Mod DC-AC Inverterler
Doğu Akdeniz Üniversitesi Bilgisayar Ve Teknoloji Yüksek Okulu
Transforming Signals in Time-Domain into Signals in Frequency-Domain
TURKISH 1 (UHF1271) İŞARET ZAMİRLERİ DEMONSTRATIVE PRONOUNS
Bir Problemin Programa Dönüştürülme Süreci
UNIT 6 DEDECTİVE STORİES
Future: I will/shall & I am going to. Structure: Subject+will/shall+verb(base form)+object.
GAZİ ÜNİVERSİTESİ TEKNOLOJİ FAKÜLTESİ BİLGİSAYAR MÜHENDİSLİĞİ BÖLÜMÜ
ARDUİNO Arduino Eğitimleri Bölüm 6 Analog Giriş – Çıkış İşlemleri
ETwinning Nedir?. Türkiye’de 81 ilin katılımıyla yürütülen 1.Projemiz.
Arduino Eğitimleri Bölüm 5 Dijital Giriş – Çıkış İşlemleri
Döngüler ve Shift Register
Cues for higher added-value ideas
NİŞANTAŞI ÜNİVERSİTESİ
Turkish cuisine is very popular around the world. It has a very wide options for everyone. The variety of the recipes and the ingredients which are grown.
NİŞANTAŞI ÜNİVERSİTESİ
The Need for Program Design
“Differentiation for making a positive Difference!!!!”
NİŞANTAŞI ÜNİVERSİTESİ
NİŞANTAŞI ÜNİVERSİTESİ
NİŞANTAŞI ÜNİVERSİTESİ
Imagine that you are a teacher and you are taking your 20 students to England for the summer school.
THE MYSTERIOUS ISLAND JULES VERNE. INFORMATION ABOUT THE BOOK  Name of the book: The Mysterious Island  Author: Jules Verne  Type: Adventure  Number.
PREPARED BY: 9-B STUDENTS. Sumerians, who laid the foundations of great civilizations and the world cultural heritage, emerged to the st The Sumerians.
Marmara Üniversitesi Mekatronik Tezli YL Programı
DÜZLEMSEL MEKANİZMALARIN
“8. SINIFLAR” MASTERMIND UNIT 4 On the phone Wopenglish GURURLA SUNAR…
ELİF SU KÜÇÜKKAVRUK. plants When you touch this plant, it can be like the photograph. When you let go, it becomes normal.
People with an entrepreneurial mindset are always brave.
pnpn Yapılı Elektronik Elemanlar ve Diğerleri
Examples: In the Figure, the three points and coordinates are given that is obtained with CAD program. If these three points are represented by the curve.
Sunum transkripti:

(Dr. Öğr. Üyesi Deniz Dal) BM-305 Mikrodenetleyiciler Güz 2018 (3. Sunu) (Dr. Öğr. Üyesi Deniz Dal)

Analog Çıkış ve Darbe Genişlik Modülasyonu (Pulse Width Modulation – PWM) Arduinos and other microcontrollers provide analog to digital (ADC) conversion to convert an input voltage to a digital value. You might think that they also provide the converse which is digital to analog (DAC) conversion. This is not the case. Instead they provide pulse-width modulated (PWM) outputs. The Arduino library provides this functionality with a function called analogWrite(). The name seems to imply DAC functionality, but it just controls the PWM output. For many applications, such as the case of motor control, PWM is sufficient.

Analog Çıkış ve Darbe Genişlik Modülasyonu (Pulse Width Modulation – PWM) Pulse Width Modulation, or PWM, is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between full on (5 Volts) and off (0 Volts) by changing the portion of the time the signal spends on versus the time that the signal spends off. The duration of "on time" is called the pulse width. To get varying analog values, you change, or modulate, that pulse width. If you repeat this on-off pattern fast enough with an LED for example, the result is as if the signal is a steady voltage between 0 and 5v controlling the brightness of the LED.

Görev Çevrimi (Duty Cycle) A duty cycle is the percentage of one period in which a signal is active. A period is the time it takes for a signal to complete an on-and-off cycle. A 60% duty cycle means that the signal is on 60% of the time but off 40% of the time. The "on time" for a 60% duty cycle could be a fraction of a second, a day, or even a week, depending on the length of the period.

Analog Çıkış ve Darbe Genişlik Modülasyonu (Pulse Width Modulation – PWM) In the graphic next, the green lines represent a regular time period. This duration or period is the inverse of the PWM frequency. In other words, with Arduino's PWM frequency at about 500Hz, the green lines would measure 2 milliseconds each. A call to analogWrite() is on a scale of 0 - 255, such that analogWrite(255) requests a 100% duty cycle (always on), and analogWrite(127) is a 50% duty cycle (on half the time) for example.

analogWrite Fonksiyonu ve Arduino UNO PWM Çıkış Pinleri Writes an analog value (PWM wave) to a pin. Can be used to light a LED at varying brightnesses or drive a motor at various speeds. After a call to analogWrite(), the pin will generate a steady square wave of the specified duty cycle until the next call to analogWrite() (or a call to digitalRead() or digitalWrite() on the same pin). The frequency of the PWM signal on most pins is approximately 490 Hz. On the Uno, this function works on pins 3, 5, 6, 9, 10, and 11. Those pins are marked with a tilde ~ symbol and output a variable duty cycle from 0 to 255 (0 to 100%). You do not need to call pinMode() to set the pin as an output before calling analogWrite(). The analogWrite function has nothing to do with the analog pins or the analogRead function. Syntax: analogWrite(pin, value) Parameters: pin: the pin to write to. value: the duty cycle: between 0 (always off) and 255 (always on).

PWM ile LED Parlaklığının Kontrolü

PWM ile LED Parlaklığının Kontrolü (Sketch)

PWM ile LED Parlaklığının Kontrolü (Bağlantı)

Dijital Giriş ve digitalRead Fonksiyonu digitalRead() reads the value from a specified digital pin, either HIGH or LOW. Syntax: digitalRead(pin) Parameters: pin: the number of the digital pin you want to read (int) Returns: HIGH or LOW

Geçici Anahtar ile LED Kontrolü

Geçici Anahtar ile LED Kontrolü (Sketch)

Geçici Anahtar ile LED Kontrolü (Bağlantı) Yukarıdaki devreyi kalıcı bir anahtarla da (dip switch) gerçekleyiniz.

Analog Giriş ve analogRead Fonksiyonu analogRead() reads the value from the specified analog pin. The Arduino UNO board contains a 6-channel, 10-bit analog to digital converter (ADC). This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using analogReference(). Syntax: analogRead(pin) Parameters: pin: the number of the analog input pin to read from (0 to 5) Returns: int (0 to 1023)

Potansiyometre Çıkış Geriliminin Analog Giriş Olarak Kullanılması

Seri Monitör penceresindeki bağlantı hızı da bu olmalı.!!! Potansiyometre Çıkış Geriliminin Analog Giriş Olarak Kullanılması (Sketch) Seri Monitör penceresindeki bağlantı hızı da bu olmalı.!!!

Potansiyometre Çıkış Geriliminin Analog Giriş Olarak Kullanılması (Bağlantı)