ohkie thanks got it....
i use reef angel wizard and on port 7 i have chosen always off soo do i need to get it always on ? or do i need to select ATO ??
sorry this must be too silly questions but i am new to this stuff....
thanks for the help
have a look at the code i think i have written the code at the right place...
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port3Bit | Port4Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 280 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;
// Ports that are always on
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port8 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardLights( Port1,17,0,21,0 );
ReefAngel.StandardLights( Port2,17,0,21,0 );
ReefAngel.PWM.SetDaylight( MoonPhase() );
ReefAngel.PWM.SetActinic( MoonPhase() );
ReefAngel.PWM.SetChannel( 0, MoonPhase() );
ReefAngel.PWM.SetChannel( 1, MoonPhase() );
ReefAngel.PWM.SetChannel( 2, MoonPhase() );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( ShortPulse,20,10 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = Sync;
ReefAngel.DCPump.ExpansionChannel[0] = Sync;
ReefAngel.DCPump.ExpansionChannel[1] = Sync;
ReefAngel.DCPump.ExpansionChannel[2] = Sync;
ReefAngel.DCPump.ExpansionChannel[3] = None;
ReefAngel.DCPump.ExpansionChannel[4] = None;
ReefAngel.DCPump.ExpansionChannel[5] = None;
////// Place your custom code below here
ReefAngel.WaterLevelATO(Port7,50,90,95);
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "jack" );
ReefAngel.ShowInterface();
}
void DrawCustomMain()
{
int x,y;
char text[10];
// Dimming Expansion
x = 15;
y = 2;
for ( int a=0;a<6;a++ )
{
if ( a>2 ) x = 75;
if ( a==3 ) y = 2;
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x,y,"Ch :" );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x+12,y,a );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x+24,y,ReefAngel.PWM.GetChannelValue(a) );
y += 10;
}
pingSerial();
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 35, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 35, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();
// Salinity
ReefAngel.LCD.DrawText( COLOR_DARKKHAKI,DefaultBGColor,49,68, "SAL:" );
ReefAngel.LCD.DrawSingleMonitor( ReefAngel.Params.Salinity,COLOR_DARKKHAKI,73,68, 10 );
pingSerial();
// Water Level
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,82, "WL:" );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,82, ReefAngel.WaterLevel.GetLevel() );
pingSerial();
// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 95, TempRelay );
pingSerial();
// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}
void DrawCustomGraph()
{
}
Lunar hub and water level expansion
Re: Lunar hub and water level expansion
yeahhh its working .... thanks roberto and inevo for answering my silly questions :p
soo here comes one more question
i think i am not able to control my Jeabo and moonlights
reason
1) jeabo overflowing the tank with waves soo thinking its running 100%
2) moonlights are not getting off in the morning ... are they suppose to ?
soo here is the pic i have attached where i have pluged the Jeabo and moon light cables...
the first from the left is the dimming modules wire
and the second is jeabo.... the one in middle, next to computer cable
i hope this helps
thanks
soo here comes one more question
i think i am not able to control my Jeabo and moonlights
reason
1) jeabo overflowing the tank with waves soo thinking its running 100%
2) moonlights are not getting off in the morning ... are they suppose to ?
soo here is the pic i have attached where i have pluged the Jeabo and moon light cables...
the first from the left is the dimming modules wire
and the second is jeabo.... the one in middle, next to computer cable
i hope this helps
thanks
Re: Lunar hub and water level expansion
Do you have a dimming expansion? All your ports are set to MoonPhase()
That could be interfering. Is your wifi module setup? What does the portal show for your DCPump settings (under Internal memory...)
That could be interfering. Is your wifi module setup? What does the portal show for your DCPump settings (under Internal memory...)
Re: Lunar hub and water level expansion
My reefangelid:
jack
Connection Status:
Unreachable Address
Last Update:
20 September 2013 5:46:36 PM GMT+05:30
Displaying data from:
Webbanner database
this is what my portal says now... i am not able to connect... daam
jack
Connection Status:
Unreachable Address
Last Update:
20 September 2013 5:46:36 PM GMT+05:30
Displaying data from:
Webbanner database
this is what my portal says now... i am not able to connect... daam
Re: Lunar hub and water level expansion
Ok, well don't panic...
20 September 2013 5:46:36 PM GMT+05:30
Since the portal received an update from your controller at This means your wifi is working and it's sending data to the portal.
What you need to focus on now is setting up port forwarding. You will need to go into your router configuration and set port 2000 to forward to the IP address of your RA Wifi. This is the address you should have gotten during the setup.
There's a lot of threads on troubleshooting the port forwarding on the forum and on google, but obviously post back here for specific questions.
20 September 2013 5:46:36 PM GMT+05:30
Since the portal received an update from your controller at This means your wifi is working and it's sending data to the portal.
What you need to focus on now is setting up port forwarding. You will need to go into your router configuration and set port 2000 to forward to the IP address of your RA Wifi. This is the address you should have gotten during the setup.
There's a lot of threads on troubleshooting the port forwarding on the forum and on google, but obviously post back here for specific questions.