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:
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
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.
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
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();
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
}
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?
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.
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
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.
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
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
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.