Page 1 of 1

dosing pumps help

Posted: Mon Nov 10, 2014 10:52 pm
by tunatime
how do i track when a pump comes on so i know that they are running when they should and what not.

i also saw some one calibrating the pumps and dosing by the ml.

i know you need custom code to do this stuff but i dont know to much about coding or what lines i need to use. does any one have any code that i can use that's just for this?

Re: dosing pumps help

Posted: Tue Nov 11, 2014 8:16 am
by lnevo
That would be me. I did write a standalone batch of code that was easier to use, you'd have to search for it though. If you can find the thread I'll help you get it integrated for your code.

Re: dosing pumps help

Posted: Tue Nov 25, 2014 4:03 pm
by tunatime
I finely have a chance to play around whit the ra this week and I looked and I dont see just that code posted anywhere.

And for some reason my alk is 1/2 full and the ca is about 3/4 full whit the pumps runing the same amount of time a hour and the drip rate looks about the same between pumps.

I would really like a way to track that the pumps are runing when they should be but have no cule how to do this

Re: dosing pumps help

Posted: Tue Nov 25, 2014 6:15 pm
by lnevo
No two dosing pumps will pump the same rate. You need to calibrate them to find the actual rate. Post your code and I'll see what I can find thats been done so you can load. I may have some time tomorrow to get you something back. You'll still need to do the calibration at some point.

Re: dosing pumps help

Posted: Tue Nov 25, 2014 10:33 pm
by tunatime

Code: Select all

#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.Use2014Screen();  // Let's use 2014 Screen 
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port4Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port4Bit | Port5Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port6Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 840 );

    // Feeeding and Water Change mode speed
    ReefAngel.DCPump.FeedingSpeed=0;
    ReefAngel.DCPump.WaterChangeSpeed=0;


    // Ports that are always on
    ReefAngel.Relay.On( Port1 );
    ReefAngel.Relay.On( Port2 );
    ReefAngel.Relay.On( Port3 );
    ReefAngel.Relay.On( Port4 );
    ReefAngel.Relay.On( Port5 );

    ////// Place additional initialization code below here
    

    ////// Place additional initialization code above here
}

void loop()
{
    ReefAngel.StandardHeater( Port6,780,790 );
    ReefAngel.DosingPumpRepeat( Port7,0,60,5 );
    ReefAngel.DosingPumpRepeat( Port8,5,60,7 );
    ReefAngel.DCPump.UseMemory = false;
    ReefAngel.DCPump.SetMode( ReefCrest,75,10 );
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = AntiSync;
    ////// Place your custom code below here
    

    ////// Place your custom code above here

    // This should always be the last line
    ReefAngel.Portal( "tunatime" );
    ReefAngel.ShowInterface();
}

does that look right?

Re: dosing pumps help

Posted: Wed Nov 26, 2014 12:02 am
by mudcat1
lnevo wrote:That would be me. I did write a standalone batch of code that was easier to use, you'd have to search for it though. If you can find the thread I'll help you get it integrated for your code.
Lee, does this post http://forum.reefangel.com/viewtopic.php?f=12&t=3262 contain the standalone batch code that you are referring too?

Re: dosing pumps help

Posted: Wed Nov 26, 2014 11:41 pm
by Rwejn12
I'm new to this forum
Then no idea, I let the experts answer.

Re: dosing pumps help

Posted: Thu Nov 27, 2014 7:52 am
by lnevo
Thats the post. There's another where I helped ecam with his also.