Couple of questions

4 views
Skip to first unread message

Dav540

unread,
Apr 30, 2011, 2:10:54 PM4/30/11
to Reef Angel Controller
I have just setup my Reef Angel. I downloaded the RAGen and Arduino
Environment from the RA website using the installers. After using
RAGen to I ran into a problem. I set my Internal Memory and PDE and
generated the code. The internal memory compiled loaded onto the
controller then I tried to compile the PDE and got so many errors my
head was spinning lol. At this time the controllers display screen
was showing the parameters I had loaded with the code from the
internal memory with no menu options or control with the joystick. I
tried several time to get the PDE code to compile and was
unsuccessful. So I decided to copy and paste the code in the RA
Turtorial to use as a cheat sheet and modified to work with my system
and success it complied and loaded. The screen went back to the disply
that the demo code had. The controller seems to be working as
expected after 2 days of running but I have no access to the menus.

How do I get my menus back and program the water change and feeding
modes?

I would also like to change the ATO to a single float and use the
second float to shut off my skimmer when the water level gets to high
in my sump. Is this possible?

Also I would like to have my Kalk reactor on a timer.

This is my first time trying to code so any help would be greatly
appreciated. I'm easily confused by it all lol and Sorry for the long
post. Here is the code I currently have loaded in the controller.


#include <Wire.h>
#include <EEPROM.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <NokiaLCD.h>
#include <ReefAngel.h>

#define AutoTopOff 1
#define Refugium 2
#define Heater 3
#define Powerhead1 4
#define Powerhead2 5
#define Chiller 6
#define Skimmer 7
#define Return 8

void setup()
{
ReefAngel.Init();
ReefAngel.LCD.SetContrast(60);
ReefAngel.Relay.On(Return);
ReefAngel.Relay.On(Powerhead1);
ReefAngel.Relay.On(Powerhead2);
ReefAngel.Relay.On(Skimmer);
}

void loop()
{
ReefAngel.StandardGUI();
ReefAngel.StandardATO(AutoTopOff,255);
ReefAngel.StandardLights(Refugium,22,0,11,0);
ReefAngel.StandardHeater(Heater,788,792);
ReefAngel.StandardFan(Chiller,793,797);
ReefAngel.Relay.Write();
}

Curt Binder

unread,
May 1, 2011, 9:36:50 AM5/1/11
to reef...@googlegroups.com
From the sounds of it, you are running the Standard Libraries even
though you used the RAGen installer.

Since you want to utilize the SingleATO functionality, you will need
to upgrade to the Development Libraries. Roberto has written a
wonderful application that checks your library version and upgrades
them as needed.

If you used my RAGen installer application and you left the default
settings, it should have installed the Development Libraries for you.
My question is what order did you run the installers? If you
installed RAGen first then installed the Arduino installer provided by
ReefAngel.com, then you replaced the development libraries with the
standard ones.

There are 2 solutions for you if that is the case:
1. Re-run the RAGen installer and just install right over the
existing installation. This will not affect anything at all.
2. Run the application that Roberto created that checks your code
against the latest code and allows you to switch between Standard and
Development libraries. I do not have a link for this application
currently because I'm not at my primary computer. I believe it is
listed on the forum website http://forum.reefangel.com/

Once you get your libraries switched around, you should be able to
compile the original PDE file you created. If that's not the case,
feel free to reply back providing answers to the questions mentioned
above.

Curt


--
/*
Curt Binder
http://curtbinder.info/
*/

darks...@dropzone.com

unread,
May 1, 2011, 10:37:44 AM5/1/11
to reef...@googlegroups.com
unsubscribe

Curt Binder

unread,
May 2, 2011, 5:36:11 PM5/2/11
to Dav540, Reef Angel Controller
There currently is not a delayed start port. That is something that
has been requested and is being worked on but I just moved and am
still in the process of getting my system back up and running
properly. So that is TBA.

As far as the other float switch is concerned, if you were using a
single float switch you could do that. You may want to do a if not
active, turn on the skimmer and if active turn it off. This would be
an example....it's pseudo code, so you'll have to modify it slightly.

void loop()
{
//...
// if the high switch is active, meaning the float is at the top (side
with the wires), keep
// the skimmer off (port6), otherwise if it's not, turn it on
if ( ReefAngel.HighATO.IsActive() )
{
ReefAngel.Relay.Off(Port6);
}
else
{
ReefAngel.Relay.On(Port6);
}

// ....
}

I haven't tested this since my setup is still in a box, but it's a start.

curt


On Mon, May 2, 2011 at 5:27 PM, Dav540 <dave...@gmail.com> wrote:
> Thanks. You were wright, it was my libraries that were all messed up.
> I found the library update app and it work great! Everything is loaded
> into the controller and working. The only thing I want to change now
> is to have my skimmer have a delay for in the event of a power outage
> or after water changes. Is there a example code for this or can I use
> the other float switch to delay the relay untill my water level drops
> enough in my sump?


>
> On May 1, 9:36 am, Curt Binder <curt.bin...@gmail.com> wrote:
>> From the sounds of it, you are running the Standard Libraries even
>> though you used the RAGen installer.
>>
>> Since you want to utilize the SingleATO functionality, you will need
>> to upgrade to the Development Libraries.  Roberto has written a
>> wonderful application that checks your library version and upgrades
>> them as needed.
>>
>> If you used my RAGen installer application and you left the default
>> settings, it should have installed the Development Libraries for you.
>> My question is what order did you run the installers?  If you
>> installed RAGen first then installed the Arduino installer provided by
>> ReefAngel.com, then you replaced the development libraries with the
>> standard ones.
>>
>> There are 2 solutions for you if that is the case:
>> 1.  Re-run the RAGen installer and just install right over the
>> existing installation.  This will not affect anything at all.
>> 2.  Run the application that Roberto created that checks your code
>> against the latest code and allows you to switch between Standard and
>> Development libraries.  I do not have a link for this application
>> currently because I'm not at my primary computer.  I believe it is

>> listed on the forum websitehttp://forum.reefangel.com/


>>
>> Once you get your libraries switched around, you should be able to
>> compile the original PDE file you created.  If that's not the case,
>> feel free to reply back providing answers to the questions mentioned
>> above.
>>
>> Curt
>>

Reply all
Reply to author
Forward
0 new messages