Hi,
First of all am not coming from a electronics background. Basically am a programmer. I have a centos server in my home. In this part of the world the power outage is so intense. I have a ups which gives about 10- 15 mins backup. I need to shutdown my server using arduino. My idea may seem to be crazy.
When the power goes the arduino sends a signal to server an the server will shutdown. For detecting the power outage am thinking to use a relay like this. The idea is instead connecting the arduino to the controlling end , it will connected to NO and C . Arduino needs to know if the relay is on/off . so that it could trigger the shutdown. A 5v adaptor will be used to power the relay from the main line .
I know it's a crazy idea , if someone could help me out to make this , it will be a lot helpfull.
You should be using apcupsd to communicate with the UPS and perform the shutdown. This assumes your UPS has any sort of USB/serial/etc. port that you can interface with, but most do.
You wouldn't need a relay if you're going to use a 5v adaptor. Just connect the GND from the adaptor to GND on the Arduino and the 5V to a digital pin set as input.
My ups doesn't have any usb port. Is it safe to connect direct to arduino? How i can know the power is connected to the pin?
Chagrin:
You should be using apcupsd to communicate with the UPS and perform the shutdown. This assumes your UPS has any sort of USB/serial/etc. port that you can interface with, but most do.
You wouldn't need a relay if you're going to use a 5v adaptor. Just connect the GND from the adaptor to GND on the Arduino and the 5V to a digital pin set as input.
Actually i am thinking to reverse the circuit, The relay will be act as an switch like http://www.arduino.cc/en/Tutorial/Switch and the relay will open the circuit when it gets the power from main. So the 5v main power will be connected to the controlling end in the relay . so i can isolate my arduino from external power and power up the arduino from the system. That's my basic idea .
is there someone who could help me tofind communicating with the cetos 7 server ? actually i am stuck now. I am searching for digispark boards also.
Emergency lighting packs typically have an AC relay that keeps the NC contacts open when the relay is powered up. When AC power is lost to the relay, the NC contacts close to power the battery lights. You might do something similar.