Please explain the working of ATS is detail. I will write a code in mikroC.
the code is required to identify weather ATS will operate automatically or manually.
now if Automatic button is pressed
it will check weather the AC input is low or not ....low when AC is avail and vice versa.
it will check weather generator is working or not ''''low when on and vice versa.
if AC is off and generator is off it will make 5 attempts to start the generator that is by
turning on the switch relay....turning on the delay relay.
first few seconds for choke.
then choke off and few second for ignition.
if engine starts before the given time for ignition it will stop the ignition or in case AC is available.
after the start it will give delay of 1 minute before shifting the load.
if light comes back it will again engage delay of 5sec and then turn off the delay and switch.
Now if manual button is pressed
i have planned to run ac on the generator in manual mode. so if generator was previously working and manual is pressed it will engage delay then turn on the Air Conditioner relay.
if the generator was off then start button will start the generator same as in automatic.
if stop is pressed it will turn off the generator by firs engaging the delay.
..............
now when MCU is in manual mode and auto button is pressed
if AC is available shutdown the generator
if AC is not available transfer the load on generator
.......................................................................
delay is there to let the engine run idle for few seconds before turning it off and let the engine run idle at start to heat up a bit to sustain the load.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
i will be interfacing a small remote control from an old rc car for engaging auto and manual function and start stop in manual