Arduino ile servo motoru bir potansiyometre ile kontrol

Arduino Başlangıç ​​Seti: Proje 5 Proje adı:  MOOD CUE video Keşfedin:  haritalama değerleri, servo motorlar, yerleşik kütüphaneleri kullanarak https://youtu.be/bD1tHurWvUM Kod: #include <Servo.h>//include library code Servo myServo; //servo object const int potPin = A0; //potentiometer attached to analog pin 0 const int servoPin = 9;//servo attached to digital pin 9 int potVal;//declare variable int angle; //declare variable //************************************ […]

Arduino ile LDR Işık Kontrol Uygulaması ile melodi

Arduino Başlangıç ​​Seti: Proje 6 Proje adı: IŞIK TERMİNİ Keşfedin: tone () işleviyle ses çıkarmak, analog sensörleri kalibre etmek Kod: int sensorValue; int sensorLow = 1023; int sensorHigh = 0; const int ledPin = 13; void setup() { pinMode(ledPin, OUTPUT); digitalWrite(ledPin, HIGH); while (millis() < 5000) { sensorValue = analogRead(A0); if (sensorValue > sensorHigh) { […]

Arduino ile Butonlara basarak melodi oluşturmak

Arduino Başlangıç ​​Seti: Proje 7 Proje adı:  KLAVYE CİHAZI Keşfet:  direnç merdivenleri, diziler Kod: int butons[6]; // set up an array with 6 integers int butons[0] = 2; // give the frst element of the array the value 2 int notes[] = {262,294,330,349}; void setup() { Serial.begin(9600); } void loop() { int keyVal = analogRead(A0); Serial.println(keyVal); if(keyVal […]

Arduino ile uzun süreli Zamanlayıcı Uygulaması Yapma

Arduino Başlangıç ​​Seti: Proje 8 Proje adı: DİJİTAL HOURGLASS Keşfedin: Uzun veri türü, zamanlayıcı oluşturma Kod: // declare constant const int switchPin = 8; // declare variables int switchState = 0; int prevSwitchState = 0; unsigned long previousTime = 0;// positive variable 32 bit, can count up to 4,294,967,295. will hold the time the LED […]

Arduino ile 74HC595

Temel bilgiler: Proje 018k Arduino ile 74HC595 – Seriden Paralel Kaymaya Çıkış Kodlar: //**************************************************************// // Name : shiftOutCode, Hello World // Author : Carlyn Maw,Tom Igoe, David A. Mellis // Date : 25 Oct, 2006 // Modified: 23 Mar 2010 // Version : 2.0 // Notes : Code for using a 74HC595 Shift Register // […]

Arduino Başlangıç ​​Led ve Direnç Bağlantıları

Arduino Başlangıç ​​Led ve Direnç Bağlantıları Proje adı:  ARAÇLARINIZI BİLMEK İÇİN GET Ekler:  Bu projede, şu parçalara ihtiyacınız vardı: 1.Aruduino Uno R3 (Arduino’nun diğer sürümünü de kullanabilirsiniz) 2. atlama kabloları 3. Anlık anahtarları 2 adet 4. Direnç 1 adet (220 Om) 5. Breadboard yarım boy  6. LED (herhangi bir renk) 1 adet GENEL Elektrik, ısı, yerçekimi […]

Arduino ile 4N35 Optocoupler Projesi

Arduino Başlangıç ​​Seti: Proje 15 Proje adı: HACKING BUTTONS Keşfedin: diğer bileşenlerle bağlanan optocoupler Kod: /* Project: 15 HACKING BUTTONS */ //************************************************************* const int optoPin = 2;//optocoupler attached to digital pin 2 //************************************************************* void setup(){ pinMode(optoPin, OUTPUT);//sets optoPin as OUTPUT } void loop(){ digitalWrite(optoPin, HIGH);//optocoupler is on delay(15);//delay set for 15 ms digitalWrite(optoPin, LOW);//optocoupler is […]