Arduino ile birlikte kullanılabilen Isı ve nem sensörü diye geçen DHT11 ve DHT22 sensörlerini inceliyoruz.
Arduino ile hava istasyonu, kuluçka makinesi, sera iklimlendirmesi vb. projeler yapmak isterseniz bu sensörleri kullanabilirsiniz. Aynı anda hem Sıcaklığı hem de Nem’i tek bir sensör ile anlık olarak ölçebilir ve istediğiniz değerlerde arduinoya işler yaptırabilirsiniz. Kullanacağınız projenin ortamına göre dilediğiniz sensörlerden birini tercih edebilirsiniz. Şimdi sizlerle bu sensörlerin teknik yapılarına ve kullanım şekline göz atalım.
HDT11
.
Bu sensörün 4 adet bacağı bulunmaktadır. Bu bacakların biri besleme ucu, biri GND eksi ucu ve iki tanesi DATA ucudur. Arduino ile birlikte kullanırken DİJİTAL pinlere bağlanarak veri çekilebilir. Arduino ile birlikte kullanırken bacak yapısı 4 ten 3 iner. Data ucunun biriyle VCC ucu arasına 4K7 direnç kullanılır.Bu sayede arduinonun tekbir dijital pini kullanılmış olur.
Bu sensörin teknik özellikleri:
Çalışma Voltajı: 3.5V to 5.5V Çalışma Akımı: 0.3mA (measuring) 60uA (standby) Output: Serial data Ölçebileceği Sıcaklık aralığı: 0°C to 50°C Ölçebileceği Nem aralığı: 20% to 90% Resolution: Temperature and Humidity both are 16-bit Sapma Değeri: ±1°C and ±1%
Bu sensörü herhangi bir projenizde kullanmak isterseniz yukarıdaki teknik değerleri gözönünde bulundurmayı unutmayınız.
//Kerim Arı Youtube kanalı DHT11 - kullanımı örnek Kodları
4
5
6
7
#include <dht11.h>
8
9
int DhtPin = 2;
10
dht11 dht_sensor;
11
12
void setup() {
13
14
Serial.begin(9600);
15
}
16
17
void loop() {
18
19
int chk = dht_sensor.read(DhtPin);
20
21
Serial.print("NeM :");
22
Serial.print((float)dht_sensor.humidity, 2);
23
24
Serial.print(" \t");
25
26
Serial.print("ISI :");
27
Serial.print((float)dht_sensor.temperature, 2);
28
29
Serial.print(" \t");
30
31
Serial.print("Cig Olusma :");
32
Serial.println((float)dht_sensor.dewPoint(), 2);
33
34
delay(1000);
35
36
}
DHT22
Bu sensörün 4 adet bacağı bulunmaktadır. Bu bacakların biri besleme ucu, biri GND eksi ucu ve iki tanesi DATA ucudur. Arduino ile birlikte kullanırken DİJİTAL pinlere bağlanarak veri çekilebilir. Arduino ile birlikte kullanırken bacak yapısı 4 ten 3 iner. Data ucunun biriyle VCC ucu arasına 4K7 direnç kullanılır. Bu sayede arduinonun tekbir dijital pini kullanılmış olur.
Bu sensörin teknik özellikleri:
Çalışma Voltajı: 3.5V – 5.5V Çalışma akımı: 0,3mA (ölçüm) 60uA (bekleme) Çıktı: Seri veri Sıcaklık Aralığı: -40°C ila 80°C Nem Aralığı: %0 ila %100 Çözünürlük: Sıcaklık ve Nem her ikisi de 16 bit Doğruluk: ±0.5°C ve ±1%
Bu sensörü herhangi bir projenizde kullanmak isterseniz yukarıdaki teknik değerleri gözönünde bulundurmayı unutmayınız.
Tercihlerinizi ve tekrar ziyaretlerinizi hatırlayarak size en alakalı deneyimi sunmak için web sitemizde çerezler kullanıyoruz. "Kabul Et" seçeneğine tıklayarak, TÜM çerezlerin kullanımına izin vermiş olursunuz.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the ...
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Çerez
Süre
Açıklama
cookielawinfo-checbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.