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 deger; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
deger = analogRead(A0); | |
Serial.print("Değer:"); | |
Serial.println(deger); | |
delay(500); | |
} |
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 deger; | |
void setup() { | |
pinMode(13,OUTPUT); | |
} | |
void loop() { | |
deger = analogRead(A0); | |
if(deger<50) | |
digitalWrite(13,HIGH); | |
else | |
digitalWrite(13,LOW); |
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 Frekans = 400; | |
int BuzzerPin=7; | |
void setup() { | |
} | |
void loop() { | |
tone(BuzzerPin,Frekans); | |
delay(300); | |
noTone(BuzzerPin); | |
delay(300); |
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=8; | |
int b_ac =7; | |
int b_kapat=6; | |
int b_ekle =5; | |
int b_azalt=4; | |
int Frekans= 300; | |
int durum=0; | |
void setup() { | |
pinMode(b_ac,INPUT); | |
pinMode(b_kapat,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
//Türkiye Cumhuriyeti İstiklal Marşı | |
//Söz : Mehmet Akif Ersoy | |
//Beste : Osman Zeki Üngör | |
int ButonPin=7,buzzer = 8; | |
int a=440,ad=466,b=494,c=523,cd=554,d=587,dd=622,e=659,f=698; | |
int fd=740,g=784,gd=830,a2=880,ad2=932,b2=988,c2=1046,cd2=1108; | |
int d2=1174,dd2=1244,e2=1318,f2=1396,fd2=1480,g2=1568,gd2=1660; | |
int a3 = 1760; // Notalar ve karşılık gerek frekans değerleri | |
// NOTALAR c=do , cd=do diyez , d=re , dd=re diyez , e=mi , f=fa | |
// fd=fa diyez , g=sol , gd=sol diyez , a=la , ad=la diyez , b= si |
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
//Kütüphane indirmediyseniz internetten indirebilirsiniz. | |
#include <IRremote.h> | |
//Taslak->library ekle->IRremote tıklayın | |
IRrecv irrecv(8); //IR alıcının data pini | |
decode_results results; | |
void setup() { | |
irrecv.enableIRIn(); //Aktif ediyoruz | |
Serial.begin(9600); //Seri Haberleşme | |
} | |
void loop() { |
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(8); //IR alıcının data pini | |
decode_results results; | |
int Led1=11,Led2=12,Led3=13; | |
// 0x HEX KOD | |
#define TUS1 0x1CE36897 | |
#define TUS2 0x1CE3A25D | |
#define TUS3 0x1CE36A95 | |
#define TUS4 0x1CE3EA15 | |
#define TUS5 0x1CE30AF5 |
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(8); //IR alıcının data pini | |
decode_results results; | |
int BuzzerPin = 2; //Buzzer'ın pin nosu | |
#define TUS1 0x1CE36897 | |
#define TUS2 0x1CE3A25D | |
#define TUS3 0x1CE36A95 | |
void setup() { | |
irrecv.enableIRIn(); //Aktif ediyoruz | |
pinMode(BuzzerPin,OUTPUT);//Buzzer Çıkış |
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 Buton = 7; | |
int Role = 8; | |
void setup() { | |
pinMode(Buton,INPUT); | |
pinMode(Role,OUTPUT); | |
} | |
void loop() { | |
if(digitalRead(Buton)==HIGH){ //Butona basınca | |
digitalWrite(Role,HIGH);//Röle Aç | |
} |
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 Buton=7; | |
int Role=8; | |
int RoleDurum=0; //Röle Kapalı Olarak Tanımladık | |
void setup() { | |
pinMode(Role,OUTPUT); | |
pinMode(Buton,INPUT); | |
} | |
void loop() { | |
if(digitalRead(Buton)==1){ //Butona basınca | |
RoleDurum = !RoleDurum; //RoleDurum tersi olsun |