Page 2 of 2
Re: New user BLUES!!! HELP!!
Posted: Sat Jul 14, 2012 11:43 am
by ICEMAN330824
rimai wrote:I just noticed the wizard is not generating the correct code.
Thanks for helping identify the bug.
I put it in the list of issues:
https://github.com/reefangel/Wizard/issues/4
So, to answer your question, you need to use this:
Code: Select all
ReefAngel.MHLights( Port1,9,0,20,0,15 );
Cool, thanks I think that worked for me. On a side note how many watts can each outlet on the relay module handle? I have some 400 watt halides I want to setup and 320watts of vho actinics? lmk thanks
Re: New user BLUES!!! HELP!!
Posted: Sat Jul 14, 2012 12:07 pm
by rimai
Awesome.
The total wattage for each relay box is 1000W.
I would not use more than one ballast ina single port.
The reason is that ballasts and drivers have a huge inrush current. In the order of 40 to 50 amps.
If you put 2 ballasts, you are doubling that inrush current.
That would wear the components and would lead to very short life.
Sent from my SPH-D700 using Tapatalk 2
Re: New user BLUES!!! HELP!!
Posted: Wed Jul 18, 2012 4:01 pm
by ICEMAN330824
Ok, Roberto or someone can you please tell me why when I enter feeding mode my MH light port is turning off with the powerheads I want to turn off....Icant see anything in the code, maybe theres a short in the relay box or somthing that causes it because its close to the powerhead port, idunno. any ideas or corrections to my code is appreciate to help solve this. FYI-my halides are on ports 1 & 8 and the trouble maker port is 8 that is going out with my feeding mode, my power heads are on port 6.
heres my code below...lmk what you think to fix it
#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 <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
void DrawCustomMain()
{
// the graph is drawn/updated when we exit the main menu &
// when the parameters are saved
ReefAngel.LCD.DrawDate(6, 64);
ReefAngel.LCD.DrawLargeText(COLOR_DARKTURQUOISE, COLOR_WHITE, 19, 4 , " JOSH's Tank");
ReefAngel.LCD.Clear(COLOR_MAROON, 1, 13, 132, 13);
ReefAngel.LCD.Clear(COLOR_MAROON, 10, 75, 119, 75);
ReefAngel.LCD.Clear(COLOR_MAROON, 10, 59, 119, 59);
pingSerial();
ReefAngel.LCD.DrawLargeText(COLOR_GOLDENROD, COLOR_WHITE, 33, 15, "Tank Water");
char text[7];
ConvertNumToString(text, ReefAngel.Params.Temp[T1_PROBE], 10);
pingSerial();
ReefAngel.LCD.DrawHugeText(COLOR_GOLDENROD, DefaultBGColor, 38, 26, text);
ReefAngel.LCD.DrawLargeText(COLOR_MEDIUMSEAGREEN, COLOR_WHITE, 60, 42, "pH");
ConvertNumToString(text, ReefAngel.Params.PH, 100);
ReefAngel.LCD.DrawLargeText(PHColor, DefaultBGColor, 53, 50, text);
pingSerial();
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,10,84,"Alk");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,10,94,"Fan");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,10,104,"PwrHead");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,10,114,"MH Lt L");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,80,84,"MH Lt R");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,80,94,"Cal");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,80,104,"Heater");
ReefAngel.LCD.DrawText(COLOR_MEDIUMSEAGREEN,DefaultBGColor,80,114,"NightLts");
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawCircleOutletBox(60, 86, TempRelay, true);
}
void DrawCustomGraph()
{
}
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 825 );
ReefAngel.Init();
ReefAngel.AddWifi();
// Ports that are always on
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.MHLights( Port1,13,0,19,0,15 );
if ( hour() >=20 || hour() < 5)
ReefAngel.DosingPumpRepeat( Port2,0,60,240 );
else
ReefAngel.Relay.Off( Port2 );
if ( hour() >=9 && hour() <18)
ReefAngel.DosingPumpRepeat( Port3,0,60,240 );
else
ReefAngel.Relay.Off( Port3 );
ReefAngel.StandardFan( Port4,785,789 );
ReefAngel.StandardHeater( Port5,780,783 );
if (( hour()==10 && minute()<15) || (hour()==13 && minute()<15))
ReefAngel.Relay.Off (Port6);
else
ReefAngel.Relay.On (Port6);
ReefAngel.StandardLights( Port7,17,0,10,0 );
ReefAngel.MHLights( Port8,13,0,19,0,15 );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "iceman330824" );
ReefAngel.ShowInterface();
}
Re: New user BLUES!!! HELP!!
Posted: Wed Jul 18, 2012 4:32 pm
by rimai
Can you load the ControllerTester code to confirm that you have problems?
File->Sketchbook->Example Codes->ControllerTester
Re: New user BLUES!!! HELP!!
Posted: Thu Jul 19, 2012 7:18 am
by ICEMAN330824
rimai wrote:Can you load the ControllerTester code to confirm that you have problems?
File->Sketchbook->Example Codes->ControllerTester
Ok I will hook up the controller to my pc and upload this and i guess it will do some kind of test on the ports or somthing? then reload my code I guess correct?
Re: New user BLUES!!! HELP!!
Posted: Thu Jul 19, 2012 8:09 am
by rimai
Yes, You can click the joystick button to go through every single socket in the relay box to make sure they are working as they should.
You can use a desk lamp or something that would indicate that the socket has power.
Then you can load your code again when you are done with the tests.
Re: New user BLUES!!! HELP!!
Posted: Thu Jul 19, 2012 9:02 am
by ICEMAN330824
rimai wrote:Yes, You can click the joystick button to go through every single socket in the relay box to make sure they are working as they should.
You can use a desk lamp or something that would indicate that the socket has power.
Then you can load your code again when you are done with the tests.
Ok cause it only cutting out for feeding when it should be otherwsie it follows the sceduled time to come on and off. I will give it a shot and let you know what happens then re-upload my code. thanks
Re: New user BLUES!!! HELP!!
Posted: Thu Jul 19, 2012 6:28 pm
by ICEMAN330824
Ok I uploaded the test ports and all, and as I expected everything worked. However I just switched my hailides to the heater port and the heater to the halide port. the heater never turns on anyhow so when i go into feeding mode if the port truns off it will be ok I guess. But I also noticed my overheat temp didnt kick off the 2 halides on port 1 & 8 is somthing wrong in my code. I dont know if the overheat number has to be whole so I changed it from 82.5deg to 82.0 deg to see if that fixes it and will turn the lights off it the tank reaches that temp. idunno else wise what may be off in my coding.
Re: New user BLUES!!! HELP!!
Posted: Thu Jul 19, 2012 7:05 pm
by rimai
Ahhh... I know what's wrong now

You have two ReefAngel.Init() in your code.
The 2nd one is erasing all the port settings you setup prior to it.
Remove the second one and you should be good to go

Re: New user BLUES!!! HELP!!
Posted: Thu Jul 19, 2012 8:39 pm
by ICEMAN330824
thanks i removed the second one and moved up add wifi up one line, we will see if that fixed it. thanks Roberto
Re: New user BLUES!!! HELP!!
Posted: Fri Jul 20, 2012 10:03 am
by ICEMAN330824
I am trying to write a code that co-insides with my powerheads cut off times for my autofeeder. I would like to shut off the fans at these 2 times as well to keep from blowing the food about before it hits the water, silly coding I know but just wonder if its possible. I took a stab at it below but dunno if it will work. Basically I would like the fans to shut off @ 10:00-10:15am & 1:00 to 1:15pm while still on kicking on based off the tank temp. lmk thanks in advance
if (( hour()==10 && minute()<15) || (hour()==13 && minute()<15))
ReefAngel.Relay.Off (Port4);
else
ReefAngel.Relay.Off (Port4, 785,789 );
Re: New user BLUES!!! HELP!!
Posted: Fri Jul 20, 2012 10:10 am
by rimai
I think you meant this:
Code: Select all
if (( hour()==10 && minute()<15) || (hour()==13 && minute()<15))
ReefAngel.Relay.Off (Port4);
else
ReefAngel.StandardHeater(Port4, 785,789 );
I think it should work just fine

Re: New user BLUES!!! HELP!!
Posted: Fri Jul 20, 2012 10:26 am
by ICEMAN330824
Ok great, so does it matter that its called StandardHeater or ReefAngel.StandardFan
rimai wrote:I think you meant this:
Code: Select all
if (( hour()==10 && minute()<15) || (hour()==13 && minute()<15))
ReefAngel.Relay.Off (Port4);
else
ReefAngel.StandardHeater(Port4, 785,789 );
I think it should work just fine

Re: New user BLUES!!! HELP!!
Posted: Fri Jul 20, 2012 10:50 am
by rimai
Sorry. I typed the wrong function. You are correct. It should be StandardFan.
Re: New user BLUES!!! HELP!!
Posted: Fri Jul 20, 2012 4:23 pm
by ICEMAN330824
rimai wrote:Sorry. I typed the wrong function. You are correct. It should be StandardFan.
Great I tested it and it seems to be working ...GREAT!! the possiblities are endless, I couldnt have done 4 timers on my RKL. I cant wait till I order my extra relay box and 2 moon lights, and hook up my top off switches to fully automate this thing. Im loving this Reef Angel. Thanks Roberto, I will be doing a full review write up on 2 forums here in the futrue once im fully setup.
Re: New user BLUES!!! HELP!!
Posted: Fri Jul 20, 2012 4:30 pm
by rimai
Glad you are enjoying

Reviews are always good

Thanks