Arduino Temelli Yeraltı Kablo Arıza Tespiti kaynak dosyası

/*
  circuits4you.com
  Arduino Based Underground Cable Fault Detection
 */

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

const double Rc = 0.01;    //Cable Resistance per meter its 0.01 Ohm/Mtr
void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 4);
  // Print a message to the LCD.
  lcd.print("   Cable Fault  ");
}

void loop() {
  double Vx=(5.0/1024.0) * analogRead(A0);  //Voltage across Rx
  double Rx = Vx / (1.25/12);  //Cable Resistace  (1.25/R2)=I Constant Current Source
 
  //Display Cable Resistance
  lcd.setCursor(0, 1); // set the cursor to column 0, line 2
  lcd.print("Res:");
  lcd.print(Rx);
  lcd.print(" Ohm");

  //Display Fault Location
  lcd.setCursor(0, 2); // set the cursor to column 0, line 3
  lcd.print("Dist:");
  lcd.print((Rx/Rc)/2);  //Find Location of Fault
  lcd.print(" Mtr");
}

Hiç yorum yok:

Yorum Gönder

BUILD A 12 VOLT/12 AMP MODERN DIGITAL SOLAR CHARGING CONTROLLER

  I wanted to share a circuit that I believe will be useful to everyone..cheap 12 volt/12 amp modern digital solar charge controller.You can...