0% found this document useful (0 votes)
7 views2 pages

Arduino Full

Uploaded by

ripkatana01
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Arduino Full

Uploaded by

ripkatana01
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1) Arduino Temelleri

• UNO, NANO, MEGA


• Dijital pinler: HIGH/LOW
• Analog pinler: 0–1023
• PWM: 3,5,6,9,10,11
• 5V çıkışı / VIN girişi
• I2C: A4 (SDA), A5 (SCL)
• SPI: 10–11–12–13

2) Temel Fonksiyonlar
pinMode(pin, INPUT/OUTPUT);
digitalWrite(pin, HIGH/LOW);
int x = digitalRead(pin);
int d = analogRead(A0);
analogWrite(pin, 0–255);
delay(ms);
millis(); // zaman sayacı

Serial Fonksiyonları
[Link](9600);
[Link]();
[Link]();

3) PWM – Detay
• 0–255 arası PWM
• Pin 5/6: 980Hz
• Diğer PWM pinleri: 490Hz

4) ADC – Detay
• 10 bit: 0–1023
• 1 adım = 4.88mV

5) Bit/Byte
• Bit, Byte, int (16 bit)
• Operatörler: &, |, ^, ~, <<, >>
Örnek: x = x | (1 << 5);

6) İletişim Protokolleri
UART – RX/TX
I2C – SDA/SCL
SPI – MOSI, MISO, SCK, SS

SPI Pinleri (UNO)


MOSI → 11
MISO → 12
SCK → 13
SS → 10 (varsayılan)
• SS = cihaz seçme pini
• MOSI ≠ SS (karıştırma!)

7) Kütüphaneler
Servo, Wire (I2C), SPI, LiquidCrystal, SoftwareSerial, Adafruit sensör
kütüphaneleri

8) Sınav Soruları
• Kutuplu kondansatör → Elektrolitik / Tantalum
• PWM bit → 8 bit
• ADC bit → 10 bit
• Diyot yönü → Anot → Katot
• Motor neden pin’e bağlanmaz? → Akım yüksek
• analogWrite neden analog değil? → PWM

You might also like