This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <IRremote.h> | |
IRrecv irrecv(7); //IR alıcının data pini | |
decode_results results; | |
int Role=8; | |
#define PowerTUS 0x1CE3F00F | |
#define MuteTUS 0x1CE332CD | |
void setup() { | |
irrecv.enableIRIn(); //Aktif ediyoruz | |
pinMode(Role,OUTPUT); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int BuzzerPin=9; | |
int Led=8; | |
int LDR_Deger=0; | |
void setup(){ | |
pinMode(BuzzerPin,OUTPUT); | |
pinMode(Led,OUTPUT); | |
pinMode(A0,INPUT); | |
} | |
void loop(){ | |
LDR_Deger=analogRead(A0);//LDR Değer Okuduk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <IRremote.h> | |
int BuzzerPin=9,Led1=8; | |
int Led2=7,Buton=6,control=0; | |
IRrecv irrecv(4); | |
decode_results results; | |
#define PowerTUS 0x1CE3F00F | |
void setup(){ | |
irrecv.enableIRIn(); | |
pinMode(BuzzerPin,OUTPUT); | |
pinMode(Led1,OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LedPin=7; | |
int PirPin=8; | |
int Hareket; | |
void setup() { | |
pinMode(LedPin,OUTPUT); //Led Çıkış | |
pinMode(PirPin,INPUT);//Sensör Giriş | |
} | |
void loop() { | |
Hareket = digitalRead(PirPin); //Oku | |
if(Hareket==HIGH){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LedPin=7,PirPin=8; | |
int BuzzerPin=9,Hareket; | |
void setup() { | |
pinMode(BuzzerPin,OUTPUT); | |
pinMode(LedPin,OUTPUT); | |
pinMode(PirPin,INPUT); | |
} | |
void loop() { | |
Hareket = digitalRead(PirPin); //Değer Okuduk | |
if(Hareket==HIGH){ //Hareket Var ise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define Dok 264//Kalın Do | |
#define Re 297 | |
#define Mi 330 | |
#define Fa 352 | |
#define Sol 396 | |
#define La 440 | |
#define Si 495 | |
#define Doi 528//İnce Do | |
const int ButonDok =2; | |
const int ButonRe =3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int echoPin = 6,trigPin = 7; //HC-SR04 Pinleri | |
int maksimum=100,minumum =3; //3-100 cm Arası Ölçüm | |
void setup() { | |
pinMode(trigPin, OUTPUT); //Çıkış Tanımladık | |
pinMode(echoPin, INPUT); //Giriş Tanımladık | |
Serial.begin(9600); // Haberleşme Başlattık | |
} | |
void loop() { | |
digitalWrite(trigPin,HIGH); //Enerji Verdik | |
delayMicroseconds(10);//10 Mikrosaniye Bekledik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int echoPin = 6; | |
int trigPin = 7; | |
int maksimum=20; //Max 20 Cm Ayarladım | |
int mesafe; //Değiştirebilirsiniz | |
int led1=8; | |
int led2=9; | |
int buzzerPin=10; | |
void setup() { | |
pinMode(trigPin, OUTPUT); | |
pinMode(echoPin, INPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
#define DiziUzunluk 13 | |
char dizi[DiziUzunluk]={'@','b','l','u','e','g','r','a','y','s','.','p','y'}; | |
void setup() { | |
lcd.begin(16, 2); //LCD'miz 16x2'lik | |
lcd.setCursor(0,0); //0.satır 0.sütun | |
lcd.print(" Bekleyiniz "); | |
delay(3000); //3sn bekledik | |
lcd.clear(); //Ekranı Temizledik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
void setup() { | |
lcd.begin(16, 2); | |
} | |
void loop() { | |
Yazdir("BLUEGRAYS",800);//Metin ve süre | |
} | |
void Yazdir(String msg,int sure){ | |
int size = msg.length(); |