My ReefAngel with my new 800L tank

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

My ReefAngel with my new 800L tank

Post by Xender »

Hello everybody,

I need your help to do my pde for my new tank ;-)

[youtube]http://www.youtube.com/watch?v=MfXhgFvWprk[/youtube]

Here is what I need :

Standard running

• Light 1 ON : 7h00 am --> 8h30 pm
• Light 2 ON : 8h00 am --> 11h00 pm
• Moonlight ON slowly % : 10h55 pm --> 7h00 am
• Heater :
o ON When TEMP <= 29°C
o OFF When TEMP >= 29.5°C
• Chiller : ON When TEMP >= 31.5°C (Overheat)
• CO2 :
o ON When PH >= 6.5
o OFF When PH <= 6
o OFF between 11h00 pm and 7h00 am and IF PH >= 6.5
• Bubbles :
o ON When PH <= 5.8
o ON between 11h00 pm and 7h00 am and IF PH <= 5.8
• Pump 1 ON
• Water Change mode ON one time every day at 1h00 pm

Menus
• Feeding
• Water Change force
• Top Off Force
• Cleaning pump
• Vacuum Cleaning
• Standard Lights
• Moonlights
• Version

Relay Box
1: Light 1
2: Light 2
3: Bubbles
4: Heater
5: CO2
6: RO Osmoseur
7: Drain Tank Pump
8: Pump 1

Actinic LED driver output : Moonlights LED 12V DC
Daylight LED driver output : Chiller 12V DC

Vacuum Relay?
Wifi log YES and Banner YES
Client suite will be the next step ;-)
Cleanning.png
Cleanning.png (6.8 KiB) Viewed 8688 times
Feeding.png
Feeding.png (5.88 KiB) Viewed 8688 times
TOPOFF Force.png
TOPOFF Force.png (7.87 KiB) Viewed 8688 times
Thanks for your help
Last edited by Xender on Tue Oct 25, 2011 6:43 am, edited 1 time in total.
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

Water Change.png
Water Change.png (8.09 KiB) Viewed 8687 times
Vacuum Cleaner.png
Vacuum Cleaner.png (7.1 KiB) Viewed 8687 times
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: My ReefAngel with my new 800L tank

Post by binder »

Some of the stuff you desire is simple to implement (ie, heater, chiller, lights, moonlights)

Some of the stuff will require a little additional coding inside the pde (ie, co2 related to ph, bubbles)

The menu will require more work with the libraries being updated/modified to suit your needs. I will take a look into this one a little more. Initially what I would suggest would be to enable SIMPLE_MENU and then tweak / modify the menu entries / labels as needed and update the appropriate functions they call.

curt
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

CO2 function :

Code: Select all

void loop()
{
  ReefAngel.ShowInterface();

  // If the PH falls below 6.50 then turn off port5 which contains the CO2,
  // otherwise keep the port on
  if ( ReefAngel.Params.PH < 650 )
  {
    ReefAngel.Relay.Off(Port5);
  }
  else
  {
    ReefAngel.Relay.On(Port5);
  }
}
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

Please help :oops:
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
rwijbenga
Posts: 16
Joined: Thu Aug 11, 2011 11:00 am
Location: Netherlands

Re: My ReefAngel with my new 800L tank

Post by rwijbenga »

I am also trying to get my Reefagel suited for a fresh water tank with CO2. So I hope somebody can help us out, because RAgen is not suited for freshwater tanks yet.... Hint hint... ;)

I am going to try to program the functions myself, but I am not an experienced programmer... :(
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: My ReefAngel with my new 800L tank

Post by binder »

i wont be able to help much until this weekend due to my work schedule. Plus due to the complexity of what you want to accomplish, it will take some time to figure it out and get it working properly.

curt
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

ok thanks curt !
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
rwijbenga
Posts: 16
Joined: Thu Aug 11, 2011 11:00 am
Location: Netherlands

Re: My ReefAngel with my new 800L tank

Post by rwijbenga »

Super Curt !!

You would also make me very happy and a girlfriend of mine, she also has bought a RA on my advice.. :)

So already 3 users for this single PDE... :)

And the setup can easily be used by other freshwater tank users..

Of course also thanks to Xender for putting it into words...

Remco
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

Which relay the chiller connected?
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

My bad. I just saw you are using Daylight I/O port.
Do you have a SSR to turn the chiller on/off?
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

This should give you a start.
It does the standard running section described above
I'm also curious to see what Curt is gonna come up for the custom menu :o
Let me know if it works for you.

Features file:

Code: Select all


#ifndef __REEFANGEL_FEATURES_H__
#define __REEFANGEL_FEATURES_H__

#define DisplayLEDPWM
#define VersionMenu

#endif  // __REEFANGEL_FEATURES_H__
Code:

Code: Select all

#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

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

void loop()
{
  ReefAngel.ShowInterface();

  // Specific functions
  ReefAngel.StandardLights(Port1);
  ReefAngel.MHLights(Port2);
  ReefAngel.StandardHeater(Port4);

//CO2
  if ( ReefAngel.Params.PH <= 600 )
    ReefAngel.Relay.Off(Port5);
  if ( ReefAngel.Params.PH >= 650 )
    ReefAngel.Relay.On(Port5);

//Bubbles
  if ( ReefAngel.Params.PH <= 580 )
    ReefAngel.Relay.On(Port3);
  if ( ReefAngel.Params.PH >= 595 )
    ReefAngel.Relay.Off(Port3);

//Chiller  
  if ( ReefAngel.Params.Temp1 >=315 ) 
    ReefAngel.PWM.SetDaylight(100);
  if ( ReefAngel.Params.Temp1 <=300 ) 
    ReefAngel.PWM.SetDaylight(0);

  if (hour()>23 || hour()<7)
  {
    ReefAngel.PWM.SetActinic(PWMSlope(23,0,7,0,0,MoonPhase(),90,ReefAngel.PWM.GetActinicValue()));
    ReefAngel.Relay.Off(Port5);
    ReefAngel.Relay.On(Port3);
  }
  
}

byte MoonPhase()
{
  int m,d,y;
  int yy,mm;
  long K1,K2,K3,J,V;
  byte PWMvalue;
  m=month();
  d=day();
  y=year();
  yy=y-((12-m)/10);
  mm=m+9;
  if (mm>=12) mm-=12;
  K1=365.25*(yy+4712);
  K2=30.6*mm+.5;
  K3=int(int((yy/100)+49)*.75)-38;
  J=K1+K2+d+59-K3;
  V=(J-2451550.1)/0.29530588853;
  V-=int(V/100)*100;
  V=abs(V-50);
  PWMvalue=4*abs(50-V); // 5.12=100% 4=~80%
  //pinMode(lowATOPin,OUTPUT);
  return (PWMvalue*100)/255;
}
Roberto.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: My ReefAngel with my new 800L tank

Post by binder »

rimai wrote:I'm also curious to see what Curt is gonna come up for the custom menu :o
I have a few tricks up my sleeve for getting a custom menu. The recent push for it has sparked my thought process and I had a good brain storm session Sunday morning and my 4' tall x 6' wide dry erase board is covered with design ideas. :geek:

curt
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

rimai wrote:My bad. I just saw you are using Daylight I/O port.
Do you have a SSR to turn the chiller on/off?
What's "SSR" ?

I thought that I can connect directly my LED to the Daylight I/O port Witch I beleive that the controler can DIM from 0 to 12V right?
Here is the LED I bought : http://www.ampoule-leds.fr/neon-led-eta ... -2339.html
I didn't bought the tranformer 220V AC / 12V DC.

Thanks for the start of the pde I will let you know :D
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

SSR=Solid State Relay.
Your original post had the chiller connected to the daylight PWM channel.
If you are going to use your LED system, where is the chiller connected?
By looking at the page you linked, the driver for the LED system is not dimmable, but I can't read French. You do need the driver though. The Reef Angel only outputs PWM signal that are used by the driver to dim the lights. You can't use that signal to power up the lights directly.
Roberto.
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

I thought to use the Actinic LED driver output for led sorry.
Where do you by your LED?
I thought i can dim by voltage from 0 to 12V :-(
Maybe i will need to by new LED and PWM extention so.
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

Oh, I don't sell LEDs.
The 0-10VDC that RA outputs is indeed for dimming purposes, but the LED driver must be dimmable to use the signal from RA.
The driver is the one that actually does the dimming. The RA just provides how much you would like the driver to dim by sending the 0-10VDC PWM signal.
Most people are using meanwell drivers, such as ELN-60-48P.
http://www.rapidled.com/servlet/the-26/ ... ble/Detail
I've seen some using Thomas Research, Recon and Buckpucks.
Be advised that buckpucks have a very strange configuration that does not isolate the output side to the dimming circuitry, which leads to a lot of noise that causes RA to crash. We had to create a special circuitry board to isolate the signal to make it work.
But even with the PWM expansion module, you will not be able to connect the LEDs directly to the outputs. You would still need the dimmable driver to power the LEDs.
Roberto.
User avatar
Xender
Posts: 105
Joined: Sun Mar 20, 2011 12:38 am
Location: France

Re: My ReefAngel with my new 800L tank

Post by Xender »

I posted the video of my tank on the first post.
Thanks to Reef Angel Controler ;-)
[youtube]http://www.youtube.com/watch?v=MfXhgFvWprk[/youtube]
Fresh Water Aquarium 180*60*80
Salt Water Aquarium 60*60*60
Click Here to see the Video of my Fresh Water Aquarium
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

That's awesome!!
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: My ReefAngel with my new 800L tank

Post by rimai »

Ok Xender, now that we have the ability of doing custom menus, where are you with your code?
Which of your customs modes is that you would like to work on first?
Can you post your latest code and features file?
Roberto.
Post Reply