<a href=showthread.php?s=&postid=13273745#post13273745 target=_blank>Originally posted</a> by DMBillies
1. I wanted to set up my ACjr to control my kalk reactor set-up (a tunze osmolator ATO controlling a kalk reactor). I got everything put together and wrote up the code to control my osmolator with my ACjr. When I hooked up the osmolator to the ACjr outlet, I got nothing. I have the outlet split to also control my stir pump (I don't have space to control them separately, but I'm fairly certain the kalk reactor will get turned on often enough to stir up the kalk reactor just fine - this is a pretty heavily stocked 300 gallon). Well, the stir pump was humming away, so I immediately thought I bricked the tunze in the process of moving everything around and setting it up. But, when I hooked it into a non-ACjr outlet, the osmolator fired right up. So, my first question is, is an osmolator not controllable with an ACjr? Some kind of interference? The outlet is obviously switching because the stir pump is running, so it isn't that the osmolator doesn't draw enough...
I tried searching but I didn't see anything saying you couldn't use them... I hope this isn't a repeated question.
I'm using a second ATO to ensure that my water level does not get too low (since I think my kalk reactor will pump plenty of kalk to keep the pH up). That ATO is from autotopoff.com, so I could use that, but I'd have to buy a lower flow pump for it since the smallest I have is a MJ600 and I'm afraid even a small dose with that will raise the pH more at one time than I would like. Also, the osmolator will only run for a certain amount of time before it shuts itself off, which is a nice safeguard against a kalk overdose if the something goes wrong with the measurement on the ACjr pH probe.
2. I have been using the seasonal lighting table for a while now to control my lights. I am a night owl and therefore most of my tank viewing is in the afternoon/evening. Because there is a limit to what you can do for delaying the seasonal tables (I can't remember what it is, but it is either 120 or 180), I had to go in and edit the seasonal tables to increase the times by 2 hours. This keeps my lights on much later in the night and works well. However, I noticed that the lights would start turning on/off much earlier and continue on that pattern.
I didn't understand why the change was occurring, except that I noticed the seasonal lighting table was returning to the default settings. This was never a huge deal (it doesn't cause harm to my tank, just an inconvenience) and I would just change it back, but it puzzled me. I think I have solved the mystery and figured out that the ACjr flips back to default settings any time the power goes out to the AC. Is this normal? Is there a way to prevent it? Is there anything I can do with my program below that would get around it?
If I can't stop it from happening, I'll probably just go to a normal timed lighting cycle... but I'm not to thrilled about that because the seasonal lighting tables are easy to use and are a really good feature for a controller that I wanted to take advantage of. If indeed I can't get around this, I'd hope that future versions would allow for people like me who want the seasonal lighting pattern but would like to be able to view their tank when they are home.
3. Here is my ACjr code. I am 99% sure it has nothing to do with either of the issues above, but I just added the parts for the pH control and I tried to simplify parts of the code that I thought were unnecessary or overcomplicated parts of the control scheme. If there is anything I haven't included that would be considered "highly recommended" in terms of failsafes, pointing out those would be particularly appreciated. It's nice to have a few sets of eyes on these. Anything that looks out of whack, please let me know. Please note that my pH falls to about 7.7 during the night right now, so I am starting with that pH on the controller and will be slowly raising it over the course of a couple of weeks until I get it to where I want it. At that point I will also be narrowing and increasing the acceptable pH range before it trips an alarm (I get dirty looks from my other house inhabitants if that sucker goes off... especially at night).
ACT*-A1 - Actinics
DAY*-A2 - Daylights
RET%-A3 - Return
HOT^-A4 - Heater
CLP%-A5 - Closed Loop
ALM^-A6 - Alarm
FAN^-A7 - Fan
PHP%-A8 - pH Pump (Kalk Reactor on Osmolator)
If Sun 060/060 Then ACT ON
If Sun 120/000 Then DAY ON
If Sun 060/070 Then FAN ON
If Temp < RT+-0.3 Then HOT ON
If Temp > RT+0.0 Then HOT OFF
If Temp > RT+0.5 Then FAN ON
If Temp < RT+0.2 Then FAN OFF
Max Change 010 M Then FAN OFF
If Temp > RT+0.8 Then CLP OFF
If Temp < RT+0.5 Then CLP ON
Max Change 010 M Then CLP ON
If Temp > RT+1.0 Then DAY OFF
Max Change 010 M Then DAY OFF
If Temp > RT+1.2 Then ACT OFF
Max Change 010 M Then ACT OFF
If Time > 00:00 Then RET ON
If Feed cycle Then RET OFF
If Feed cycle Then RET ON
If pH < 7.70 Then PHP ON
If pH > 7.72 Then PHP OFF
If Timer RET = OFF Then PHP OFF
If Time > 00:00 Then ALM OFF
If Temp > RT+1.2 Then ALM ON
If Temp < RT+-0.5 Then ALM ON
If pH < 7.50 Then ALM ON
If pH > 8.00 Then ALM ON
Thanks in advance!