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); | |
int trigPin=7; | |
int echoPin=6; | |
int mesafe; | |
void setup() { | |
lcd.begin(16, 2); //LCD'miz 16x2'lik | |
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_I2C.h> | |
#include <Wire.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); | |
void setup(){ | |
lcd.begin(); | |
} | |
void loop(){ | |
lcd.setCursor(0,0);//Satır 0 | |
lcd.print("Hello World!"); | |
delay(1000); |
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_I2C.h> | |
#include <Wire.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); | |
int trigPin = 10; | |
int echoPin = 9; | |
int butonKalibrasyon=7; | |
int butonOlcum=6; | |
int kalibrasyonYapildimi=0; | |
int olcumYapildimi=0; | |
int toplamMesafe; |
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 led1=7; | |
int led2=6; | |
byte veri; | |
void setup() { | |
Serial.begin(9600); //Haberleşme Başlatıyoruz | |
pinMode(led1,OUTPUT); | |
pinMode(led2,OUTPUT); | |
} | |
void loop() { | |
if(Serial.available()){ //Serial Kullanabilir İse |
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 <Servo.h> | |
int servoPin = 2; | |
Servo Servo1; | |
void setup() { | |
Servo1.attach(servoPin); | |
} | |
void loop() { | |
Servo1.write(0); //0 Derece Ayarla | |
delay(2000); //Bekle | |
Servo1.write(90); //90 Derece Ayarla |
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 <Servo.h> | |
int servoPin = 2; | |
int deger; | |
Servo Servo1; | |
void setup() { | |
Servo1.attach(servoPin); | |
} | |
void loop() { | |
deger = analogRead(A0);//Değer Okuduk | |
deger = map(deger,0,1023,0,180); |
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 reedRolePin = 2; | |
int deger; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(reedRolePin,INPUT); | |
} | |
void loop() { | |
deger = digitalRead(reedRolePin); | |
Serial.print("Değer:"); | |
Serial.println(deger); |
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 reedRolePin = 2; | |
int deger; | |
int led1 = 5; //Kırmızı | |
int led2 = 7; //Yeşil | |
void setup() { | |
pinMode(led1,OUTPUT); | |
pinMode(led2,OUTPUT); | |
pinMode(reedRolePin,INPUT); | |
} | |
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
int rgb_Kirmizi=11; | |
int rgb_Yesil=10; | |
int rgb_Mavi=9; | |
int sure = 500; | |
void setup() { | |
pinMode(rgb_Kirmizi,OUTPUT); | |
pinMode(rgb_Yesil,OUTPUT); | |
pinMode(rgb_Mavi,OUTPUT); | |
} | |
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
int rgb_Kirmizi = 11; | |
int rgb_Yesil = 10; | |
int rgb_Mavi = 9; | |
void setup() { | |
pinMode(rgb_Kirmizi, OUTPUT); | |
pinMode(rgb_Yesil, OUTPUT); | |
pinMode(rgb_Mavi, OUTPUT); | |
} | |
void loop() { | |
for (int i = 0; i <= 255; i++){ |