This simple project can set the generator in automatic way to start the generator on low battery level
specially for running network system
#include <LiquidCrystal.h> //Default Arduino LCD Librarey is included
int Read_Voltage = A0;
int Read_CUTOFF = A1;
int led = 8;
int led1 = 9;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; //Mention the pin number for LCD connection
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
lcd.begin(16, 2); //Initialise 16*2 LCD
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
lcd.print("KSF ELECTRONICS"); //Intro Message line 1
lcd.setCursor(0, 1);
delay(3000);
lcd.clear();
}
void loop() {
float Voltage_Value = analogRead(Read_Voltage);
float CUTOFF_Value = analogRead(Read_CUTOFF);
Voltage_Value = Voltage_Value * (5.0/1023) * 6;
CUTOFF_Value = CUTOFF_Value * (5.0/1023) * 6;
lcd.setCursor(0, 0);
lcd.print("VOLT="); lcd.print(Voltage_Value);
lcd.print(" VDC ");
lcd.setCursor(0, 0);
lcd.print("VOLT="); lcd.print(Voltage_Value);
lcd.setCursor(0, 1);
lcd.print("CUT ="); lcd.print(CUTOFF_Value);
lcd.print(" VDC ");
lcd.setCursor(0, 1);
delay(200);
if(Voltage_Value < CUTOFF_Value)
digitalWrite(8 , HIGH);
delay(200000);
digitalWrite(8 ,LOW);
}
My this blog is purely for educational purpose , the aim is to introduce some unique ideas for electronic circuits enthusiasts, students hobbyist............. . My Youtube Channel : https://www.youtube.com/channel/UCo9zgx6UXdhBhpF51f5JjDw
Wednesday, 14 November 2018
Thursday, 1 November 2018
Russian PI metal detector circuit.
Subscribe to:
Posts (Atom)