Professional Documents
Culture Documents
Generator Auto Start Mod Rolando Mod 8 Choke
Generator Auto Start Mod Rolando Mod 8 Choke
/*
Connect 5V on Arduino to VCC on Relay Module
Connect GND on Arduino to GND on Relay Module
Delay time is in milliseconds. 1000 delay = 1 second, 2000 delay = 2 seconds,
60000 = 1 minute, etc.
- The Grid Up Relay creates a low input on Pin 11 when the grid is up, closing
the relay. Pullup keeps pin high normally.
- The Generator Running relay creates a low input on Pin 12 when the generator is
running, closing the relay. Pullup keeps pin high normally.
- When the grid goes down, this circuit will turn on an LP gas solenoid, then the
generator run switch, and automatically start the generator.
- If the generator doesn't start, it will try a total of 3 times before quitting,
and illuminating an LED indicating a fault.
- If the generator does start, it will operate the loads until the grid is
restored, then automatically power down.
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.clear();
pinMode(tempsensor, INPUT);
pinMode(choke, OUTPUT);
pinMode(alarm, OUTPUT);
pinMode(start_switch, OUTPUT);
pinMode(gas, OUTPUT);
pinMode(on, OUTPUT);
pinMode(grid, INPUT);
digitalWrite(grid, HIGH);
pinMode(gen, INPUT);
digitalWrite(gen, HIGH);
}
void loop()
{
}
}