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

Arduino Sensor Kullanimi Guncel

Uploaded by

Zehra Yılmaz
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)
12 views2 pages

Arduino Sensor Kullanimi Guncel

Uploaded by

Zehra Yılmaz
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

Arduino ile Sensor Kullanimi

1. Giris

Arduino, cesitli sensorleri kullanarak ortamdan veri toplamak icin kullanilan acik kaynakli bir
mikrokontrolcu platformudur. Bu rehberde yaygin olarak kullanilan sensorleri inceleyecegiz.

2. Sensor Cesitleri
- LDR (Isik Sensoru)
- DHT11 (Sicaklik ve Nem Sensoru)
- HC-SR04 (Ultrasonik Mesafe Sensoru)
- MQ-2 (Gaz Sensoru)
- BMP180 (Basinc Sensoru)

3. Ornek Proje: LDR ile Isik Algilama

LDR sensoru, ortam isigini olcmek icin kullanilir. LDR'nin bir ucu GND'ye, diger ucu A0 pinine
baglanir.

Kod Ornegi:
```
int ldrPin = A0;

void setup() {
[Link](9600);
}

void loop() {
int deger = analogRead(ldrPin);
[Link]("Isik Degeri: ");
[Link](deger);
delay(500);
}
```
Bu kod, LDR'den gelen veriyi okuyarak Seri Monitorde gosterir.

You might also like