This may appear to be an abstract question, but what type of battery backup system do you use? Some systems have a web management card that will monitor a dry contact for closure, right on the management card.
Download File ››››› https://www.google.com/url?hl=en&q=https://tlniurl.com/2yLBsE&source=gmail&ust=1719696550315000&usg=AOvVaw0UWDEGrxQ0_syHt9qwDMeO
In our case we have an older APC environment monitor that will send out an snmp alert or you can query the device for a contact closure. We had one of the contact inputs wired to the generator via a relay. When the generator is running it opens the relay. We pickup this contact closure in nagios to know if the generator is running by querying the environment card.
Alright, thanks a lot George. Luckily we are an engineering firm, I dropped off the manual at our electrical engineers desk in hopes he will see it when he gets back. Now I have a better idea of how I want this, I should be able to tell him. Thanks a lot to both of you.
Hey, here maybe something you can use too. It looks like it connects to a Eaton UPS and will allow you to monitor the environment in your data center as well as dry contact closures. It may not be for your battery backup, but it looks like a nice kit.
Diversified power management company and global technology leader in electrical systems for power quality, distribution and control; hydraulics components, systems and services for industrial and mobile equipment; aerospace fuel, hydraulics and...
At any rate, the support perl script nconf/bin/generate_config.pl has at least two perl package dependencies I was missing and was failing. Although the wrapper script that runs generate_config.pl attempts to detect failures, it's not seeing the error from the perl script, so the wrapper script continues and essentially tries to create a new nagios configuration from nothing (because nothing was generated by generate_config.pl) thus this error.
running yum install perl-DBI perl-DBD-MySQL fixed the problem for me, but it could also be other missing perl packages or a different errors from generate_config.pl that is not getting recognized by the wrapper script. My recommendation is try to run the perl script manually like sudo -u apache /opt/nconf/bin/generate_config.pl. once you do get that portion working, you will need to clean out your /opt/nconf/temp folder before the web nconf app will let you generate another config set.
I think to have defined the connection logic, but I would analyze and
translate this logic to the real model in which each component would be
physically connected with the intermediate elements necessary.
Then We would have the Arduino being fed by UPS, which receives line
voltage (220 V). When there is a power interruption, the UPS goes into
"Battery", feeding the Arduino, which controls at all times the line
voltage. If the voltage is zero, the power generator is activated.
In case of finding a value greater than zero, the generator is disabled.
The generator is also connected to the same power line to provide power
to the input of UPS. Here I am not sure whether an intermediate element
should be connected between the generator and the line to ensure that
the electrical current to flow only in the direction from the generator
to line if:
b) in the case that the power supply is restored and during the interval
of time the generator is on, the meeting of the incoming stream of
the line with that provided by the generator could even cause some
damage to the electrical system.
Perhaps placing an electric device in the line before the generator is
connected to it, so as to interrupt the current from the line while the
generator is activated can avoid potential problems may occur by a) and
b).
This whole issue is worth resolving if is there any way of connecting
the home power generator to the Arduino. As I was researching, those
generators without autostart, allow be turned on via a key or button. I
I don't know if it will come with another alternative mechanism. The
issue would be how to change this manual mechanism for a form where the
on/off is controlled by Arduino.
Moreover, to have a more complete control, also I thought Arduino
perform the monitoring of the load level on the tank. Here the issue is
where to put the sensor in the tank, in case really necessary that the
sensor is inside, as the tank should be always closed or clogged.
Although I read some time ago that there are sensors to measuring levels
from outside (capacitive sensors?). I think the further away the
electric sensor of the fuel, better for security.
To completely automate this circuit and make the generator is turned
once a week, maybe I could develop a script that runs with crond on the
computer that is connected to the Arduino, so that the script sends a
start command to the generator during a short period of time at a
certain time a given day of the week for the generator starts by
maintenance, but well... this would be the icing on the cake So I
did not add this in the attached graph.
I was thinking the part that would make switching between the power line
and the generator. Also I attach this diagram to tell me if I am well
oriented. Beyond the general appreciation you can give me, I doubt if
the connection that I marked with the circle is well done.
It requires a foolproof method of ensuring that the generator cannot be connected to the outside supply. This is an issue if the power comes back on. It is also an issue if the power flows from the generator to the outside of your house, and can injure workers who may be trying to fix the power lines outside your house.
The other part of your project, is to automatically start the generator. That is certainly something you could do with the arduino, provided the issues mentioned above are dealt with. Does your generator have an electric starter ?
The only way I can imagine this being done safely (other than buying a product that does the job) is to use a mechanical switch to connect the load to EITHER the incoming mains supply OR the generator output but never both. You will have deal with any issues from switching circuits that are under load and coping with the inrush current when you switch over.
I can't think of any really foolproof algorithms for deciding when to start the generator but I suppose you could just use the mechanical switch to connect a 'demand' signal when the load is connected to the generator and have a controller to start the generator if there is a demand and it isn't running, and stop if if it is running and there is no demand.
My idea is that Arduino controls the line voltage using a circuit
similar to that proposed by vrgomes with DC 3V Adapter [1]. If the
voltage at the analog input is zero, then the relays are activated.
Since this is the Arduino forum and u like Nagios, so do I, We could add Arduino as nagios agent connect with automatic transfer switch. which send out alert to Nagios then Nagios send out email, sms, fax, voice call ( via TTS text to speech), as well as send out automatic order for food delivery from take out restaurant.
You hook up a sensor to monitor the whether there is power in the mains. You cut the incoming mains line immediately after that sensor and put a relay on it.
The line from the generator is also connected via relay to the network you want powered.
When the sensor detects there is no power in the mains it decoupled the mains relay, starts up the generator and closes the generator relay. When the mains receive the power, the sensor again sends the signal, the generator is turned off, generator relay decoupled and the mains relay activated.
This is not necessary true, not even from day one we use electronic. we got AC from AC power grid, in the grid there are a lot of power plants/generators interconnect each other, all is need is sync. The tech behind is power grid feed-in.
The issue is, when you lose power the power utility company will send out people to repair it. Those people flip a breaker at the pole, so they know THEIR generators are not providing any power to the section of line they are working on. If you don't have a transfer switch or disconnect, YOUR generator can be sending power down a line that the workers think is off. Your generator could severely injure or kill someone working on the power lines. Do you really want to take that chance?
If you connect your own AC power supply to the mains WITHOUT PERMISSION AND APPROVAL FROM YOUR ELECTRICITY SUPPLIER then it can be extremely dangerous and might even be illegal in some situations. There are lots of conditions that have to be met for this to be done safely. Simply connecting a generator output to the mains absolutely is not safe. Connecting it via a grid feed-in unit of the sort you show is also NOT SAFE unless your electrical supplier has explicitly authorised that, and that pretty much means that they will have installed it for you. Suffice to say if you know how to do that safely, you won't be coming to forums like this asking for advice on how to do it. For anyone asking here, the only safe answer is that you must not allow your generator to connect to the incoming mains supply under any circumstances. The most reliable way to ensure that IMO is to have a mechanical switchover system wired so that it is physically impossible for the two sources to be connected together.
Some time UPS (Uninterruptible power supply) is far less important than UFS (Uninterruptible food supply) ,UGS (Uninterruptible gas supply) ...
Since u can not automatic all of them. only automatic one is over kill.
sonnyyu: why you said that under these circumstances we only deal with
arduino via TTL level (5/3.3V). As you said above, the automatic
transfer switch is who is responsible for turning on the generator, so
if this device is purchased prefabricated, then we would not need the
Arduino to detect when the utility power is out nor it send signals the
generator to start.