Page 1 of 1
Help... Im useless! dosing pump woes
Posted: Thu Jun 27, 2013 5:57 pm
by nerdz
Hi
Trying to get up and running to dose using 2 pumps, (Alk & Ca).
Just received Reefangel and I have no idea what I'm doing, but managed to get temp, pH, lights, fan, and WIFI running... Despite pumps set to run every 6 hrs, they have yet to come on, (I have the discharging into a graduated cylinder to measure volume).
I installed/updated pre-installed code and used wizard to generate :dosing, temp, light dimming etc...
Do you layer codes, ie: wizard generated one over preinstalled code, (like I did)?
Or, format head unit and upload only wizard generated one?
Thanks for any help
Cheers
Re: Help... Im useless! dosing pump woes
Posted: Thu Jun 27, 2013 6:24 pm
by lnevo
Post your code. Have you tried running the pumps manually and making sure they are working as expected?
Re: Help... Im useless! dosing pump woes
Posted: Thu Jun 27, 2013 7:24 pm
by nerdz
Yes, both BRS pumps are brand new. I hooked them up and primed them until liquid came through.
Can my code be directly loaded over preset code?
This is the code I uploaded from wizard, PORT 3&4 for dosers:
#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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// 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;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 815 );
// Ports that are always on
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardHeater( Port1,776,780 );
ReefAngel.StandardFan( Port2,783,784 );
ReefAngel.DosingPumpRepeat( Port3,10,360,10 );
ReefAngel.DosingPumpRepeat( Port4,0,360,10 );
ReefAngel.StandardLights( Port5,13,0,22,0 );
ReefAngel.PWM.SetDaylight( PWMSlope(13,0,22,0,1,25,60,1) );
ReefAngel.PWM.SetActinic( PWMSlope(13,0,22,0,0,25,60,0) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
Ha ha, I guess I couldn't see a level because it was only set for 10 sec? The wizard must of not taken my value?
I tried changing the code, I'll see if it works
ReefAngel.AddWifi();
ReefAngel.ShowInterface();
}
Re: Help... Im useless! dosing pump woes
Posted: Thu Jun 27, 2013 7:35 pm
by lnevo
Yeah 10 seconds on the BRS pump is nothing, 30ml broken into 24 doses is 68 seconds every hour. I think the conversion was .0183 ml/second...