DEPOINOVASI | SUPPLIER ROBOTIK & SISTEM OTOMASI

KRAN ELEKTRIK,LINE FOLLOWER,MOTOR GEARBOX,SENSOR,ALARM,POWER SUPPLY,MIKROKONTROLLER,PLC

Archive for the ‘Sensor Anemometer’ Category

Jual Sensor Anemometer

Posted by dealer on July 27, 2014

Sensor Anemometer Terbaru

Sensor Anemometer Terbaru

Jual Sensor Anemometer Murah

Spesifikasi :

  • Vsuplai : DC 5V
  • Menggunakan sensor optic tipe celah
  • Output : Pulse Digital TTL
  • Sensor terpasang pada pipa PVC 1/2″
  • Diameter kincir : 17,5 cm
  • Berat : 100 gr
  • Kondisi : Baru

Note:
Warna dimungkinkan berbeda, menyesuaikan stok yang ada

Aplikasi :

Sensor anemometer, sensor pembaca kecepatan angin dll

Arduino Reference code:

// Pin definitions
# define windPin 2 // Receive the data from sensor

// Constants definitions
const float pi = 3.14159265; // pi number
int period = 10000; // Measurement period (miliseconds)
int delaytime = 10000; // Time between samples (miliseconds)
int radio = 80; // Distance from center windmill to outer cup (mm)
int jml_celah = 18; // jumlah celah sensor

// Variable definitions
unsigned int Sample = 0; // Sample number
unsigned int counter = 0; // B/W counter for sensor
unsigned int RPM = 0; // Revolutions per minute
float speedwind = 0; // Wind speed (m/s)

void setup()
{
// Set the pins
pinMode(2, INPUT);
digitalWrite(2, HIGH);

// sets the serial port to 115200
Serial.begin(115200);

// Splash screen
Serial.println(“ANEMOMETER”);
Serial.println(“**********”);
Serial.println(“Based on depoinovasi anemometer sensor”);
Serial.print(“Sampling period: “);
Serial.print(period/1000);
Serial.print(” seconds every “);
Serial.print(delaytime/1000);
Serial.println(” seconds.”);
Serial.println(“** You could modify those values on code **”);
Serial.println();
}

void loop()
{
Sample++;
Serial.print(Sample);
Serial.print(“: Start measurement…”);
windvelocity();
Serial.println(” finished.”);
Serial.print(“Counter: “);
Serial.print(counter);
Serial.print(“; RPM: “);
RPMcalc();
Serial.print(RPM);
Serial.print(“; Wind speed: “);
WindSpeed();
Serial.print(speedwind);
Serial.print(” [m/s]”);
Serial.println();
delay(5000);
}

// Measure wind speed
void windvelocity()
{
speedwind = 0;
counter = 0;
attachInterrupt(0, addcount, CHANGE);
unsigned long millis();
long startTime = millis();
while(millis() < startTime + period) {}

detachInterrupt(1);
}

void RPMcalc()
{
RPM=((counter/jml_celah)*60)/(period/1000); // Calculate revolutions per minute (RPM)
}

void WindSpeed()
{
speedwind = ((2 * pi * radio * RPM)/60) / 1000; // Calculate wind speed on m/s
}

void addcount()
{
counter++;
}

Download Koding Sensor Anemometer Arduino

Jual Sensor Anemometer Murah

Harga : @ Rp 165.000,-

Cara pembelian klik Cara Beli

Advertisements

Posted in Sensor, Sensor Anemometer | Tagged: , , | 12 Comments »