Page 1 of 2

Have a few questions

Posted: Fri Jan 27, 2012 1:52 pm
by Seedlessone
Well received my RA yesterday and have not stopped tinkering around with it sense. Have a few questions. First does the PH probe need to be calibrated from the box? It is shipped in what I think to be a small container of calibration solution...correct? If so can I use this or do I need to go buy some solution? Also I have a code setup through RAGEN but it appears I will need some more basic controls for now. i.e refugium light schedule, ati fans schedule. etc. Does this all have to be custom coded or am I missing something? I also noticed that some post show member's RA client page and its look different than mine. How is this accomplished? Thanks a lot!!

Re: Have a few questions

Posted: Fri Jan 27, 2012 4:04 pm
by rimai
Yes, the probe needs calibration and the fluid that comes in the bottle is just storage fluid.
The RAGen code is very simple as it is though. Can you post your code?
For the client: http://forum.reefangel.com/viewtopic.php?f=8&t=175

Re: Have a few questions

Posted: Fri Jan 27, 2012 6:00 pm
by Seedlessone
Okay I will post the simple code I am running now below. I just need to add a few things thing like a refugium schedule. Just trying to get on the right path for that. Just finished gluing my float switch bracket only to find out that the high float switch must be placed wires coming out of the bottom. Is there any way to switch this or did I just was a lot of time putting that together? LOL. Last issue still is sometimes I am unable to get RAGEN to open. I get an error and the only way Ive found to fix is to re-install ReefAngel. I just used it to add the ATO features and everything went fine uploading... tried to open it again only to find an error. Thanks a lot.

Code: Select all

// Autogenerated file by RAGen (v1.1.0.126), (01/27/2012 19:39)
// RA_012712_1939.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File: 
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
    ReefAngel.Init();  //Initialize controller

    ReefAngel.FeedingModePorts = B10000000;
    ReefAngel.WaterChangePorts = B10000000;
    ReefAngel.OverheatShutoffPorts = B00000000;
    ReefAngel.LightsOnPorts = B00000011;

    // Ports that are always on
    ReefAngel.Relay.On(Port8);
}

void loop()
{
    // Specific functions
    ReefAngel.StandardLights(Port1);
    ReefAngel.MHLights(Port2);
    ReefAngel.StandardATO(Port4);

	ReefAngel.ShowInterface();
}

Re: Have a few questions

Posted: Fri Jan 27, 2012 6:08 pm
by rimai
Let's check if the RAGen has the right paths.
Go to Edit->Settings and make sure you have these paths:
Sketch: Documents\Arduino
Libraries: Documents\Arduino\libraries
Arduino: C:\Program Files\Reef Angel Controller
What is the schedule you want to setup for your refugium?
Can you send a photo of how you put it together?

Re: Have a few questions

Posted: Fri Jan 27, 2012 6:38 pm
by Seedlessone
I am trying to get my refugium lighting opposite of my tank lighting which runs from 1pm to 10pm.
I cant even open RAGEN without reintalling ReefAngel. Attached is my float bracket with both the high and the low switch facing the same way. Also is a pic screenshot of error.

Image
Image

Re: Have a few questions

Posted: Fri Jan 27, 2012 7:42 pm
by rimai
It's because the paths are wrong.
Try this then:
1. Download the static version:
https://github.com/downloads/curtbinder ... static.zip
2. Try running is as administrator
3. Make sure to go to menu Edit->Settings
4. Set the path of the folders to the following:
Sketch: Documents\Arduino
Libraries: Documents\Arduino\libraries
Arduino: C:\Program Files\Reef Angel Controller
5. Click Ok.
6. You can now delete the static version if you want to.

I hope this works now.

Re: Have a few questions

Posted: Fri Jan 27, 2012 7:46 pm
by agentgreen
rimai wrote:Yes, the probe needs calibration and the fluid that comes in the bottle is just storage fluid
The RAGen code is very simple as it is though. Can you post your code?
For the client: http://forum.reefangel.com/viewtopic.php?f=8&t=175
This may be the dumbest question ever but are you supposed to take off the little bottle attached to the Ph probe?

Re: Have a few questions

Posted: Fri Jan 27, 2012 7:54 pm
by rimai
Yes.

Re: Have a few questions

Posted: Fri Jan 27, 2012 7:54 pm
by Seedlessone
I took mine off as I pretty sure that is just for shpping the probe.

So will my ATO work the way its configured. I see the controller wants the high side ATO to be turned around with the wires running down. I hope I can change this so I can use a dual ATO without having to rebuild my bracket.

Re: Have a few questions

Posted: Fri Jan 27, 2012 7:56 pm
by rimai
I changed your code to have reverse schedule for your refugium and I assigned it to Port3.
I also made the ATO a little different, since you have already mounted them.
I made so the lower one is the only one that controls the ATO and the top one is safety.
Give it a try and let me know if it works.

Code: Select all

// Autogenerated file by RAGen (v1.1.0.126), (01/27/2012 19:39)
// RA_012712_1939.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File: 
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
    ReefAngel.Init();  //Initialize controller

    ReefAngel.FeedingModePorts = B10000000;
    ReefAngel.WaterChangePorts = B10000000;
    ReefAngel.OverheatShutoffPorts = B00000000;
    ReefAngel.LightsOnPorts = B00000011;

    // Ports that are always on
    ReefAngel.Relay.On(Port8);
}

void loop()
{
    // Specific functions
    ReefAngel.StandardLights(Port1);
    ReefAngel.MHLights(Port2);
    if (~bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3); else ReefAngel.Relay.Off(Port3); 
    if (ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port4); else ReefAngel.SingleATOLow(Port4);
   ReefAngel.ShowInterface();
}

Re: Have a few questions

Posted: Fri Jan 27, 2012 7:56 pm
by agentgreen
rimai wrote:Yes.
LOL no wonder my probe isn't calibrating. Sorry to hijack the thread.

Re: Have a few questions

Posted: Fri Jan 27, 2012 9:07 pm
by Seedlessone
Okay loaded the new code and the fuge is working great. The ATO is still not working right. The high side just stays on.

Re: Have a few questions

Posted: Sat Jan 28, 2012 9:32 am
by rimai
What do u mean?

Re: Have a few questions

Posted: Sat Jan 28, 2012 6:35 pm
by Seedlessone
On my reef angel client its still showing a green light for the high side ATO constantly. Maybe I'm not understanding something. Since I have the high side with the wires facing up rather than down can I not use a dual ato? And for my curiosity why is the ra programmed to have the ato sensors opposite?

Re: Have a few questions

Posted: Sat Jan 28, 2012 7:06 pm
by rimai
The top switch is only used for safety. It should stop the ATO from working if water reachs that level.

Re: Have a few questions

Posted: Sat Jan 28, 2012 7:09 pm
by rimai
This is the line that is controlling the ATO:

Code: Select all

    if (ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port4); else ReefAngel.SingleATOLow(Port4);
It reads: If the High float switch is activated, then turn off port 4. If it is not, enable ATO as SingleATO on the lower switch.

Here is some more info on the float switches:
http://forum.reefangel.com/viewtopic.php?f=7&t=240

Re: Have a few questions

Posted: Sat Jan 28, 2012 7:14 pm
by rimai
Actually, after reading the code again, I inverted the actions :(
This is what needs to be used:

Code: Select all

    if (ReefAngel.HighATO.IsActive()) ReefAngel.SingleATOLow(Port4); else ReefAngel.Relay.Off(Port4);
Which means, if the high switch is activated, then enable ATO. If it is not, turn port off.

Re: Have a few questions

Posted: Sat Jan 28, 2012 8:34 pm
by Seedlessone
Here is the code I have now. For some reason its telling me my com port is already in use. Cant figure out why. Also what temp setting should I set on my heater? I'm assuming I set it to the highest defined temp in the ra.

// Autogenerated file by RAGen (v1.1.0.126), (01/27/2012 19:39)
// RA_012712_1939.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File:
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
ReefAngel.Init(); //Initialize controller

ReefAngel.FeedingModePorts = B10000000;
ReefAngel.WaterChangePorts = B10000000;
ReefAngel.OverheatShutoffPorts = B00000000;
ReefAngel.LightsOnPorts = B00000011;

// Ports that are always on
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.StandardLights(Port1);
ReefAngel.MHLights(Port2);
if (~bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3); else ReefAngel.Relay.Off(Port3);
if (ReefAngel.HighATO.IsActive()) ReefAngel.SingleATOLow(Port4); else ReefAngel.Relay.Off(Port4);
ReefAngel.ShowInterface();
}

Re: Have a few questions

Posted: Sat Jan 28, 2012 9:37 pm
by Seedlessone
Everything seems to be working great. Thanks a ton for all the help so far.

Re: Have a few questions

Posted: Sun Jan 29, 2012 10:08 am
by rossbryant1956
rimai wrote:Yes, the probe needs calibration and the fluid that comes in the bottle is just storage fluid.
Is there a post that explains how to calibrate this ph probe? Thx in advance.

Ross

Re: Have a few questions

Posted: Sun Jan 29, 2012 10:18 am
by Seedlessone
I would also like to know that as well. ^^^

And to add to that what calibration solution do we need? I have 7.0 solution and I'm hoping I can calibrate with that alone.

Re: Have a few questions

Posted: Sun Jan 29, 2012 5:17 pm
by rimai
You will need pH7.0 and pH10.0 solutions.
The procedure is very simple.
Go into calibration mode by using the joystick and selecting pH Calibration.
Dip the probe into the pH 7.0 and let it stabilize.
I like to just write down the numbers on the screen just for future reference and use if needed.
Rinse and dry.
Dip it into the pH 10.0 solution and let it stabilize.
You are done. Just click OK.

Re: Have a few questions

Posted: Sun Jan 29, 2012 7:01 pm
by Seedlessone
Okay trying to get this random wavemaker going as well. Seems something is up with my code. Attached below.

Code: Select all

// Autogenerated file by RAGen (v1.1.0.126), (01/27/2012 19:39)
// RA_012712_1939.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File: 
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
    ReefAngel.Init();  //Initialize controller

    ReefAngel.FeedingModePorts = B10000000;
    ReefAngel.WaterChangePorts = B10000000;
    ReefAngel.OverheatShutoffPorts = B00000000;
    ReefAngel.LightsOnPorts = B00000011;

    // Ports that are always on
    ReefAngel.Relay.On(Port8);
}

void loop()
{
    // Specific functions
    ReefAngel.StandardLights(Port1);
    ReefAngel.MHLights(Port2);
    if (~bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3); else ReefAngel.Relay.Off(Port3); 
    if (ReefAngel.HighATO.IsActive()) ReefAngel.SingleATOLow(Port4); else ReefAngel.Relay.Off(Port4);
   ReefAngel.ShowInterface();
	
}
    void setup()
    {
       randomSeed(analogRead(0));
        ReefAngel.Init();  //Initialize controller   
        ReefAngel.Timer[1].SetInterval(random(15,35));
        ReefAngel.Timer[1].Start(); 
        ReefAngel.Relay.On(Port5);
    }

    void loop()
    {
        ReefAngel.ShowInterface();

    if ( ReefAngel.Timer[1].IsTriggered() )
          {
            ReefAngel.Timer[1].SetInterval(random(15,35));
            ReefAngel.Timer[1].Start();
            ReefAngel.Relay.Toggle(Port5);
            ReefAngel.Relay.Toggle(Port6);
           }
    }


Re: Have a few questions

Posted: Sun Jan 29, 2012 7:04 pm
by rimai
You can't have two setup() nor two loop() functions.
You have to combine both into just one.

Try this:

Code: Select all

// Autogenerated file by RAGen (v1.1.0.126), (01/27/2012 19:39)
// RA_012712_1939.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File: 
 #define DisplayImages
 #define DateTimeSetup
 #define VersionMenu
 #define DirectTempSensor
 #define wifi
 #define SIMPLE_MENU
 */


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
  ReefAngel.Init();  //Initialize controller

  ReefAngel.FeedingModePorts = B10000000;
  ReefAngel.WaterChangePorts = B10000000;
  ReefAngel.OverheatShutoffPorts = B00000000;
  ReefAngel.LightsOnPorts = B00000011;

  // Ports that are always on
  ReefAngel.Relay.On(Port8);
  randomSeed(analogRead(0));
  ReefAngel.Timer[1].SetInterval(random(15,35));
  ReefAngel.Timer[1].Start(); 
  ReefAngel.Relay.On(Port5);    
}

void loop()
{
  // Specific functions
  ReefAngel.StandardLights(Port1);
  ReefAngel.MHLights(Port2);
  if (~bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3); 
  else ReefAngel.Relay.Off(Port3); 
  if (ReefAngel.HighATO.IsActive()) ReefAngel.SingleATOLow(Port4); 
  else ReefAngel.Relay.Off(Port4);
  if ( ReefAngel.Timer[1].IsTriggered() )
  {
    ReefAngel.Timer[1].SetInterval(random(15,35));
    ReefAngel.Timer[1].Start();
    ReefAngel.Relay.Toggle(Port5);
    ReefAngel.Relay.Toggle(Port6);
  }

  ReefAngel.ShowInterface();
}



Re: Have a few questions

Posted: Mon Jan 30, 2012 9:18 pm
by Seedlessone
Can someone check out whats wrong with my fuge lighting. I want it opposite of my lighting. Fuge just stays on 24/7 now. Thanks


// Autogenerated file by RAGen (v1.1.0.126), (01/27/2012 19:39)
// RA_012712_1939.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File: 
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
  ReefAngel.Init();  //Initialize controller

  ReefAngel.FeedingModePorts = B10000000;
  ReefAngel.WaterChangePorts = B10000000;
  ReefAngel.OverheatShutoffPorts = B00000000;
  ReefAngel.LightsOnPorts = B00000011;

  // Ports that are always on
  ReefAngel.Relay.On(Port8);
  randomSeed(analogRead(0));
  ReefAngel.Timer[1].SetInterval(random(15,35));
  ReefAngel.Timer[1].Start(); 
  ReefAngel.Relay.On(Port5);    
}

void loop()
{
  // Specific functions
  ReefAngel.StandardLights(Port1);
  ReefAngel.MHLights(Port2);
  ReefAngel.StandardHeater(Port7);

  if (~bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3);
  else ReefAngel.Relay.Off(Port3);
  if (ReefAngel.HighATO.IsActive()) ReefAngel.SingleATOLow(Port4);
  else ReefAngel.Relay.Off(Port4);
  if ( ReefAngel.Timer[1].IsTriggered() )
  {
    ReefAngel.Timer[1].SetInterval(random(15,35));
    ReefAngel.Timer[1].Start();
    ReefAngel.Relay.Toggle(Port5);
    ReefAngel.Relay.Toggle(Port6);
  }

  ReefAngel.ShowInterface();
}



Re: Have a few questions

Posted: Mon Jan 30, 2012 9:57 pm
by rimai
Sorry, I messed up the sign.
Change this:

Code: Select all

if (~bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3); 
  else ReefAngel.Relay.Off(Port3); 
To this:

Code: Select all

if (!bitRead(ReefAngel.Relay.RelayData,0)) ReefAngel.Relay.On(Port3); 
  else ReefAngel.Relay.Off(Port3); 
That should take care of it.

Re: Have a few questions

Posted: Wed Feb 01, 2012 9:14 pm
by Seedlessone
If I wanted to use a ELN-60-27P dimmable driver to run 6 led what else would I need for the reef angel. How does this plug into the reef angel.

Re: Have a few questions

Posted: Wed Feb 01, 2012 11:04 pm
by rimai
I think you would drive them too much at 2.3A
You better off using ELN-30-27P
All you would need is the PWM lead wire.

Re: Have a few questions

Posted: Thu Feb 02, 2012 9:13 am
by Seedlessone
Okay if I wanted to run these 5 LEDs for moonlight and actinics do you think it would be to bright? Not sure if the controller can even do what I had in mind. Have them on at 10% for the moonlights reverse my main lights and on full blast for actinics during the day. I'm worried about even at 10% the 3w led are going to be too bright for moonlights. Clueless though as Ive never worked with LEDs before.

Re: Have a few questions

Posted: Thu Feb 02, 2012 9:25 am
by rimai
It's very right