Page 1 of 1

How to make some easy modification...

Posted: Mon Dec 12, 2011 8:11 am
by dhave
I've installe the ra controller and made this "european-plug box":
Image

Here the complete review (Italian):
http://www.acquariofilia.biz/showthread.php?t=337359

I've already installed the ReefAngelInstaller software and made the programming test (Loading-your-first-code). Now i've turned back to demo software.

Now i want to change the demo-program to do this:
1- Conver °F in °C
2- Change the output number order
3- Set the two wavemaker output to control heating and cooling device.

Can you help me making this modification?
Can i do this diretcly on demo-software?

Sorry, but i'm a noob about programming ^^. I've already check you guide but i get lost... :oops:

Re: How to make some easy modification...

Posted: Mon Dec 12, 2011 9:58 am
by rimai
Wow!!! :o
Very nice box!!!
You can get it very easily accomplished by using the RAGen.
Take a look at this thread:
http://forum.reefangel.com/viewtopic.php?f=15&t=60

Re: How to make some easy modification...

Posted: Mon Dec 12, 2011 3:53 pm
by dhave
Installed everythig, but when i go to controller/Internal Memory - Generate it give error message, "unable to generate PDE files".

If i check "find controller" option, i found the controller correctly.

EDIT
I go on setting and note that "sketch" folder is only "t". I put inside it the path to
C:\Documents and Settings\Administrator\Documenti\Arduino\ReefAngelSimple

Re: How to make some easy modification...

Posted: Mon Dec 12, 2011 6:32 pm
by rimai
Actually, these are the paths you need in this particular computer you are using:
sketch: C:\Documents and Settings\Administrator\Documenti\Arduino
libraries: C:\Documents and Settings\Administrator\Documenti\Arduino\libraries
program: C:\Program Files\Reef Angel Controller

Re: How to make some easy modification...

Posted: Tue Dec 13, 2011 1:09 am
by dhave
Yes, just the first one (sketch) path is indicated as "t"... I've upload the first configuration, i will test it tonight.

Re: How to make some easy modification...

Posted: Mon Dec 19, 2011 2:28 pm
by dhave
Here again, not yet able to install the controller.

I've programmed with RA generator as follow:

Port 1 Standard light
Port 3 Standard ligh
Port 5 Nigh light (how i set them?)
Port 7 Night light (how i set them?)

Port 6 Chiller
Port 8 Heater

Port 4 ATO

Port 2 - Free-

I've following problem:

1) I want to light up the tank at 13.00 and stop it at 22.00. It seems impossible, as i can program only if light start after 24.00 and before 12.00.

2) Can't set nigth light, i try to flag "toggle" during "light on" at port5 and 7, but they still run normally with other light.

3) I have set Heater from 76.1°f to 77°F and chiller from 79.7°F to 78.8°F. Everythig work fine, BUT if i set °C on main screen nothing happend, the heater never stop and chiller never start.

4) In the end, how i can set you moon-light led to use them on night? They work with PMW following day light time.

What i'm doing wrong?

Re: How to make some easy modification...

Posted: Mon Dec 19, 2011 3:15 pm
by dhave
EDIT:

I set lights on at 11.00 and iff at 10.00, there is no AM/PM setting.
On RA controllor is shown 11.10 PM and light are still running...

Re: How to make some easy modification...

Posted: Mon Dec 19, 2011 8:58 pm
by wolfador
use 24/hr time.

Re: How to make some easy modification...

Posted: Tue Dec 20, 2011 6:59 am
by dhave
wolfador wrote:use 24/hr time.
How/where i set 24h time with RAGen?

Re: How to make some easy modification...

Posted: Tue Dec 20, 2011 9:59 am
by rimai
Go to menu: Controller->Internal Memory.
InternalMemory.png
InternalMemory.png (37.21 KiB) Viewed 10069 times

Re: How to make some easy modification...

Posted: Tue Dec 20, 2011 10:30 am
by dhave
:shock: , maybe I'm making some big mistake, but i don't see any am/pm value:

Image


I'm using some wrong version or else?

Re: How to make some easy modification...

Posted: Tue Dec 20, 2011 5:57 pm
by binder
Hmmm....That's odd that the am/pm isn't showing up. I've never seen that happen before. I think I'll have to look into that one.

curt

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 3:58 am
by dhave
I've try to install few version on different pc pc, again am/pm is not shown.

RAGen version: RAGen-v110-v08519 Installer - NO AM/PM
65 downloads RAGen-v104-v08517 Installer - NO AM/PM

System on all pc: XP

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 5:00 am
by dhave
Same problem on RAGen-v1.0.0.zip — v1.0.0 - Initial Release

What is this? Should i install also this one?
vcredist_x86.exe — Microsoft Visual C++ 2005 Redistributable Libraries - required to run RAGen.

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 5:46 am
by binder
dhave wrote:Same problem on RAGen-v1.0.0.zip — v1.0.0 - Initial Release

What is this? Should i install also this one?
vcredist_x86.exe — Microsoft Visual C++ 2005 Redistributable Libraries - required to run RAGen.
The first release needed those libraries installed. In subsequent releases, I have included the libraries with the installer. So those are not needed to be installed anymore.

The only other release you could try running would be the static library release (which has the libraries built into the actual exe file). I'm not sure if this would make much of a difference for you though.

curt

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 8:44 am
by rimai
Could it be localization issue?

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 4:18 pm
by dhave
There is any other way to change time manually somewhere, otherwise i cannot install the Ra...

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 4:28 pm
by binder
dhave wrote:There is any other way to change time manually somewhere, otherwise i cannot install the Ra...
You can always use the RAStatusApp that is a java application to manually set the times on the controller once the PDE file is loaded.

http://forum.reefangel.com/viewtopic.php?f=8&t=246

curt

Re: How to make some easy modification...

Posted: Wed Dec 21, 2011 5:38 pm
by rimai
You can also hard code the times if you wish.

Re: How to make some easy modification...

Posted: Thu Dec 22, 2011 3:38 pm
by dhave
binder wrote:
dhave wrote:There is any other way to change time manually somewhere, otherwise i cannot install the Ra...
You can always use the RAStatusApp that is a java application to manually set the times on the controller once the PDE file is loaded.

http://forum.reefangel.com/viewtopic.php?f=8&t=246

curt
Downloaded and installed, but tell me "COM not implemented yet", need different version?

Maybe i need this? http://www.ftdichip.com/Drivers/VCP.htm



It's becoming hard to use this controller..

Re: How to make some easy modification...

Posted: Thu Dec 22, 2011 3:58 pm
by binder
No. I have not implemented the COM port communications yet. I've only got the wifi part working with the Status app.

Sorry for the confusion.

curt

Re: How to make some easy modification...

Posted: Thu Dec 22, 2011 3:59 pm
by dhave
I've try tu use the RA client, no AM/PM value shown...

Image

Re: How to make some easy modification...

Posted: Thu Dec 22, 2011 5:02 pm
by dhave
This is arduino code of internal memory:
void setup()
{
e.lcd_init();
e.lcd_clear(COLOR_WHITE,0,0,132,132);
e.lcd_BacklightOn();

InternalMemory.MHOnHour_write(1);
InternalMemory.MHOnMinute_write(0);
InternalMemory.MHOffHour_write(11);
InternalMemory.MHOffMinute_write(0);
InternalMemory.MHDelay_write(0);
InternalMemory.StdLightsOnHour_write(1);
InternalMemory.StdLightsOnMinute_write(0);
InternalMemory.StdLightsOffHour_write(23);
InternalMemory.StdLightsOffMinute_write(0);

It mean...
HQI, on 01.00, off 11.00, delay 0
Neon, on 01.00, off 23.00, delay 0

Right?

So... i can change time on/off directly here, or use this to set AM/PM correctly.

Re: How to make some easy modification...

Posted: Thu Dec 22, 2011 5:26 pm
by binder
Yes. Your understanding is correct.

You can use that to set the values. The controller only operates in 24hr mode.

curt

Re: How to make some easy modification...

Posted: Fri Dec 23, 2011 11:23 am
by dhave
Done, now time work correctly.

Now, the next problem: if i set °c display, the temperature don't work. I think the problem is the same, as long as i can set on/on point only in °f (also if i'm using °c).

InternalMemory.HeaterTempOn_write(761);
InternalMemory.HeaterTempOff_write(770);
InternalMemory.ChillerTempOn_write(797);
InternalMemory.ChillerTempOff_write(788);

I will set °c and change these value, right?

Re: How to make some easy modification...

Posted: Fri Dec 23, 2011 12:16 pm
by rimai
Yes, you can set to celsius and change those values. Should work that way.

Re: How to make some easy modification...

Posted: Mon Dec 26, 2011 6:21 am
by dhave
Just one more question about the ATO setting...

I'm using two sensor:
1) sump water level, with on/off on re-fill pump
2) re-fill water tank, that should turn on a red ligh to inform me that osmotic water is nearly finished.

My problem is that I've not understand how to remove the ATO time-out on the second sensor, vause i need to keep the light on. I've try to put 0 or 600, nut nothing change, after one minute it turn off.

In future if it work, i will install an electric shutoff valve tha open/clon osmotic plant.

Re: How to make some easy modification...

Posted: Mon Dec 26, 2011 9:34 am
by rimai
I'm not picturing how your setup is.
Can you explain a little better?
Is it one float switch on sump and another in water container?
Then you have an ATO pump inside this water container.
The float switch in the sump controls the ATO pump and the other does what?
Which ATO function are you using?

Re: How to make some easy modification...

Posted: Mon Dec 26, 2011 6:09 pm
by dhave
I'm using two ATO to contro two different water level.
Image

Menatime I've solved the probem: i have found the flag to disable ATO time out. :lol: