Using return pump with UPS
Posted: Mon Jan 20, 2014 3:11 pm
Hi,
I currently power my return pump with an UPS. To be able to switch the return off, e.g. in feeding or waterchange mode, I have a DIY adapter between UPS and return pump, that is connected with relay port 8 of the RA. Whenever this port is powered on it toggles a relay in the adapter, that turns off power for the return. So in standard mode the relay port is off and the pump is running.
I have configured the port to be toggled in feeding/waterchange mode, but it's not really toggled (as one could think because of the code comments) but turned off instead, so the pump is still running
How can this be solved? I currently have this:
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port6Bit;
and in the loop:
if (ReefAngel.DisplayedMenu==FEEDING_MODE)
{
ReefAngel.Relay.On(Port8);
}
else
{
ReefAngel.Relay.Off(Port8);
}
if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE)
{
ReefAngel.Relay.On(Port8);
}
else
{
ReefAngel.Relay.Off(Port8);
}
works, but is there also a "standard" way for this?
cheers,
Christian
I currently power my return pump with an UPS. To be able to switch the return off, e.g. in feeding or waterchange mode, I have a DIY adapter between UPS and return pump, that is connected with relay port 8 of the RA. Whenever this port is powered on it toggles a relay in the adapter, that turns off power for the return. So in standard mode the relay port is off and the pump is running.
I have configured the port to be toggled in feeding/waterchange mode, but it's not really toggled (as one could think because of the code comments) but turned off instead, so the pump is still running
How can this be solved? I currently have this:
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port6Bit;
and in the loop:
if (ReefAngel.DisplayedMenu==FEEDING_MODE)
{
ReefAngel.Relay.On(Port8);
}
else
{
ReefAngel.Relay.Off(Port8);
}
if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE)
{
ReefAngel.Relay.On(Port8);
}
else
{
ReefAngel.Relay.Off(Port8);
}
works, but is there also a "standard" way for this?
cheers,
Christian