18 Şubat 2022 Cuma

YENİ BAŞLAYANLARA...ÖRNEK KODLAR

DÖRT SERVO DÖRT POT
//////// UGUR OCAKSIZ ///// 18/01/2016

int analogInPin0 = A0;  //// POTLAR   A0 A1 A2 A3
int analogInPin1 = A1;
int analogInPin2 = A2;
int analogInPin3 = A3;
int analogOutPin0 = 3; /// SERVOLAR D3 D5 D6 D9
int analogOutPin1 = 5;
int analogOutPin2 = 6;
int analogOutPin3 = 9;
int  sensorValue0 ;    ///// DEĞİŞKENLER
int  sensorValue1 ;
int  sensorValue2 ;
int  sensorValue3 ;
int  outputValue0 ;
int  outputValue1 ;
int  outputValue2 ;
int  outputValue3 ;

void setup() {
  Serial.begin(9600);                         ////      BAŞLA
  pinMode(analogInPin0, INPUT); //  PİNLER  GİRİŞ Mİ CIKIŞ MI
  pinMode(analogInPin1, INPUT);
  pinMode(analogInPin2, INPUT);
  pinMode(analogInPin3, INPUT);
  pinMode(analogOutPin0, OUTPUT);
  pinMode(analogOutPin1, OUTPUT);
  pinMode(analogOutPin2, OUTPUT);
  pinMode(analogOutPin3, OUTPUT);
}

void loop() {                  
             ///  DÖNGÜ BAŞLIYOR
  sensorValue0 = analogRead(analogInPin0);
  sensorValue1 = analogRead(analogInPin1);
  sensorValue2 = analogRead(analogInPin2);
  sensorValue3 = analogRead(analogInPin3);
/// GİRİŞ 1023  ÇIKIŞ 255
 ////   DÖNÜŞTÜRÜYORUZ
  outputValue0 = map(sensorValue0, 0, 1023, 0, 255);
   outputValue1 = map(sensorValue1, 0, 1023, 0, 255);
  outputValue2 = map(sensorValue2, 0, 1023, 0, 255);
  outputValue3 = map(sensorValue3, 0, 1023, 0, 255);
  ///  ÇIKIŞI YAZIYORUZ
  analogWrite(analogOutPin0, outputValue0);
  analogWrite(analogOutPin1, outputValue1);
  analogWrite(analogOutPin2, outputValue2);
  analogWrite(analogOutPin3, outputValue3);
}

EKOPANEL EV ISITMA OTOMASYONU

UĞRAŞMADAN EMEK VERMEDEN  OLMAZ...
ARDUINO İLE YAPTIĞIM  DIS HAVAYA GÖRE  KAZAN ÜÇYOLLU VANA BOYLER (SICAKKSU)  PETEK  VE POMPA  KONTROLU
1200 SATIR    7 SENELİK DENEME SONUCU ORTAYA ÇIKTI...
SU ANDA 14 YERDE( İLK OKUL ORTA OKUL SİTEDE BANKADA ) ÇALIŞMAKTADIR.

CNC İLE PCB ÇİZİMİ



 ARESTE PROJENİNİ ÇİZ..

İŞLEME  ALANINI SEÇ
ÇIKIŞ BMP AYARLA...
ALT LEHİM KANALINI VE 600 DPI  AYNA SEÇ....
BMP KAYDET
ARTCAM DA YENİ PROJE AÇ....
KAYDETTİĞİN ÇÖZÜNÜRLÜĞÜ AYARLA  GERÇEK BOYUT GELECEK..
TAKIM YOLU OLUŞTUR CNC UZANTILI KAYDET..

CNCDE İŞLE  
DELİK İÇİN DE ALT KANAL SEÇECEĞİNE DRILL DELİK ŞEÇ..
BU KADAR........