How to make some easy modification...

New members questions
Post Reply
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

How to make some easy modification...

Post 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:
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post 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
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post 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
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post by dhave »

Yes, just the first one (sketch) path is indicated as "t"... I've upload the first configuration, i will test it tonight.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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?
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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...
wolfador
Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA

Re: How to make some easy modification...

Post by wolfador »

use 24/hr time.
John
ReefAngel and ReefAngel-HD developer
If the RA iOS app has helped please consider a donation
Image
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post by dhave »

wolfador wrote:use 24/hr time.
How/where i set 24h time with RAGen?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post by rimai »

Go to menu: Controller->Internal Memory.
InternalMemory.png
InternalMemory.png (37.21 KiB) Viewed 10060 times
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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?
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to make some easy modification...

Post 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
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to make some easy modification...

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post by rimai »

Could it be localization issue?
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post by dhave »

There is any other way to change time manually somewhere, otherwise i cannot install the Ra...
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to make some easy modification...

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post by rimai »

You can also hard code the times if you wish.
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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..
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to make some easy modification...

Post 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
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post by dhave »

I've try tu use the RA client, no AM/PM value shown...

Image
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: How to make some easy modification...

Post by binder »

Yes. Your understanding is correct.

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

curt
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post by rimai »

Yes, you can set to celsius and change those values. Should work that way.
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: How to make some easy modification...

Post 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?
Roberto.
dhave
Posts: 26
Joined: Tue Dec 06, 2011 12:01 am

Re: How to make some easy modification...

Post 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:
Post Reply