Notes
![]() ![]() Notes - notes.io |
#include <DallasTemperature.h> // DallasTemperature kütüphane dosyası çağrıldı
// kullanılacak arduino dijital pini seçiliyor ne oneWire adlı bir nesne oluşturuluyor
OneWire oneWire(3);
DallasTemperature DS18B20(&oneWire);
DeviceAddress DS18B20adres;
float santigrat, fahrenheit;
int ayar_pin =A0;
int ayar=0;
int ref=0;
#define mavi 5
#define yesil 2
#define kirmizi 7
#define role 4
#include <LiquidCrystal.h>
// lcd(RS, E, d4, d5, d6, d7)
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
void setup(void)
{
// seri haberleşme başlatıldı
pinMode(6, OUTPUT);
digitalWrite(6, HIGH);
Serial.begin(9600);
lcd.begin(16, 2);
pinMode(mavi, OUTPUT);
pinMode(yesil, OUTPUT);
pinMode(kirmizi, OUTPUT);
pinMode(role, OUTPUT);
digitalWrite(role, HIGH);
digitalWrite(mavi, HIGH);
DS18B20.begin();
DS18B20.getAddress(DS18B20adres, 0);
DS18B20.setResolution(DS18B20adres, 12);
}
void loop(void)
{
ayar = analogRead(ayar_pin);
ref = map(abs(ayar), 0, 1024, 0, 100);
DS18B20.requestTemperatures();
santigrat = DS18B20.getTempC(DS18B20adres);
fahrenheit = DS18B20.toFahrenheit(santigrat);
lcd.setCursor (0,0);
lcd.print("SICAKLIK : ");
lcd.print(santigrat);
lcd.print(" ");
lcd.setCursor (0,1);
lcd.print("ISTENEN ISI :");
lcd.print(ref);
lcd.print(" ");
if(santigrat < -10)
{
loop();
}
if (santigrat < ref )
{
digitalWrite(yesil, LOW);
digitalWrite(kirmizi, HIGH);
digitalWrite(role, LOW);
}
else
{
digitalWrite(yesil, HIGH);
digitalWrite(kirmizi, LOW);
digitalWrite(role, HIGH);
}
Serial.print(santigrat);
Serial.print(" C -- ");
Serial.print(fahrenheit);
Serial.println(" F");
delay(100);
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team