Author Topic: Arduino Powered ATS (Automatic Transfer Switch)  (Read 16697 times)

skullcandy

  • Newbie
  • *
  • Posts: 8
Arduino Powered ATS (Automatic Transfer Switch)
« on: June 15, 2013, 03:26:45 AM »
Hello guys
This is my first ever post form me on this forum !
I was working on a project of making an Arduino (NANO) Controlled  ATS (and hoping for u guys to help me on which hardware to use and on code-ing as I don’t know much about programming as well !)
Which Can Do The Following (or at-least some of them) ;) :
M1   
Monitor the status of One Mains (220v) Input
M2   
Monitor the status of One Generator (220v) Output
C1
Control One 220v Contractors (220v coil not 12v or 24v)
C2
Control The Other 220v Contractors (220v coil not 12v or 24v)
R1
Turn On the Engine by Activating ONE Relay (any relay 5v or 12v)
R2
Turn Off the Engine by Deactivating ONE Relay (any relay 5v or 12v)
R3
Fan Relay to Cool the Generator
MT1
Monitor Ambient Temperature of the Air Flow inside the Generator Canopy
MT2
Monitor Ambient Temperature of Engine
RF
Clicking a relay and if temp exceeds 50 degrees Celsius to Activate a 12v Fan
Time Delays
All The Time Delay and Waiting Variables are in Seconds and are serialized as Vx , e.g.. : V1 , V2


 
Now these were the Basic things it should do, so putting it all together and it should work :
 
Now what it should do is , it should monitor  the main Power Line (220v for sure) using M1 and control the rest of the relays and stuff .

Standby And Ignition Phase :
If my main line goes down the Arduino  deactivates R2 and after a given time (V1) checks if there is no generator output using M2 if its already producing electricity  it should then activate C2 deactivating C1 (to protect the generator being back feed or exporting electricity back to the main line ) After a Time Delay (V2).
And if there is no output from the generator it should Activate R1  for a about 3 Seconds (V3) For The First time  and check if there is an output on M2  if not then activate R1 for 5 Seconds  and again check if there is output on M2 if not activate R1 again for about 7 Seconds this time and If there is output on M2 it should activate C2 after 2 seconds (To Stabilize the output of the generator) .
If The Generator is up and running it should keep the R2 Deactivated !  And if it fails to start it should repeat the above steps every 30 min or so (V4). And if not it turns on a RED LED !

Change-Over Phase:
Now when the generator is up and running it should then activate C2 deactivating C1 (to protect the generator being back feed or exporting electricity back to the main line ) After a Time Delay (V2)

Monitoring Phase:
So now when everything is running someone has to monitor them , Rite ?
In the mean time it monitors the temperature sensors MT1 and MT2 and turn on the relay in the temp exceeds 50 degrees Celsius.
And in the Background monitor the main line if its back or not if not do noting and if yes then activate R2 and Deactivate R3.

Change-Over Phase:
Now when the Main Line is back and then activate R2 to shut down the generator ,  it should then deactivate C2 and activate C1 (to protect the generator being back feed or exporting electricity back to the main line ) After a Time Delay (V4)

It could also monitor the main line voltage and if it drops below 190 volts it could start the generator and put the main line on standby and wait for it to be above 200 volts , when the line is stabilized the generator could be turned off and contactors C1 is energized  !
Or Mail Me At al.ahsan@hotmail.com for any suggestions and on Code And Hardware Recomendations...

Waiting for Replies !
Love u all
____________________________________________
« Last Edit: June 16, 2013, 02:49:10 AM by skullcandy »

Administrator

  • Administrator
  • Newbie
  • *****
  • Posts: 9
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #1 on: June 15, 2013, 10:55:22 AM »
Hello skullcandy,

Thanks very much for the post. Can you please do me a favour and upload your flow chart again as a jpg so it is smaller.

I've disabled BMP's as they can be very large. I should have done this sooner so certainly not your problem.

Cheers,
Martin.

skullcandy

  • Newbie
  • *
  • Posts: 8
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #2 on: June 15, 2013, 04:28:37 PM »
ok sorry abt that !
ive uploaded a JPG version !
and how difficult is this project ?

MJLorton

  • Administrator
  • Hero Member
  • *****
  • Posts: 817
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #3 on: June 17, 2013, 08:53:33 AM »
Yup...nice challenging project.

Unfortunate I can't add much value at the moment as I'm trying to complete my lab. You have it published so if someone has the time I'm sure they will assist.

Cheers,
Martin.
Play, discover, learn and enjoy! (and don't be scared to make mistakes along the way!)

Mr Eastwood

  • Sr. Member
  • ****
  • Posts: 274
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #4 on: June 17, 2013, 01:57:24 PM »
and how difficult is this project ?

Looks like you've made a great start on getting the logic flow sorted!    How about you show us the hardware schematic and code you have already?
is this for some sort of server backup power system?
Hey! Frisbee! Far out!

skullcandy

  • Newbie
  • *
  • Posts: 8
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #5 on: June 17, 2013, 03:45:46 PM »
and how difficult is this project ?

Looks like you've made a great start on getting the logic flow sorted!    How about you show us the hardware schematic and code you have already?
is this for some sort of server backup power system?

hmmm thanks man !
hmm yes i am working on the schematics !
but i need to know the hardware requirements first !

skullcandy

  • Newbie
  • *
  • Posts: 8
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #6 on: June 17, 2013, 03:50:39 PM »
yes but more Intelligent One With a Gen-Set startup and Shutdown Control and with a grid line monitor !

skullcandy

  • Newbie
  • *
  • Posts: 8
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #7 on: June 17, 2013, 03:53:34 PM »
is this for some sort of server backup power system?


yes but more Intelligent One With a Gen-Set startup and Shutdown Control and with a grid line monitor !

Monkeh

  • Jr. Member
  • **
  • Posts: 58
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #8 on: June 17, 2013, 07:21:22 PM »
but i need to know the hardware requirements first !

Only you can work out what those are.

skullcandy

  • Newbie
  • *
  • Posts: 8
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #9 on: June 18, 2013, 12:46:39 PM »
yes but i don't know what piece of hardware can sense electricity in a line !
or which hardware can control the contractors and stuff !

SeanB

  • Administrator
  • Hero Member
  • *****
  • Posts: 1019
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #10 on: June 18, 2013, 01:49:18 PM »
Sensing voltage is easy using a relay across the mains supply, with a coil of the right voltage for the local mains.  Gives a contact closure for you to use. Output of the Arduino will need a driver ( ULN2003/4/5/6/7/8/9 depending on what you want in terms of resistors or not for base current limiting) that switched a 12 or 24V relay that does the power switching, or drives a high power contactor to do it instead. Current sensing is done with current transformers on the power line, use one with a DC output connected to the board and scaled to give a current draw input.

skullcandy

  • Newbie
  • *
  • Posts: 8
Re: Arduino Powered ATS (Automatic Transfer Switch)
« Reply #11 on: June 18, 2013, 04:17:29 PM »
hmm can u draw me a schematic for the sense ? so i don't do something stupid !