Replacement dosing pump Silicone tubes?


Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Thu Aug 02, 2012 8:06 pm
Man...the turth is I don't know how or where to place the code...I'm no coder (first time) It took awhile to just set it up with the perset codes w/ rimai's help. I would be fooling myself if I tried the above by myself. :(

Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Thu Aug 02, 2012 8:06 pm
Thanks for getting back with me so qiuck though :)

Posts: 12424
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Aug 02, 2012 8:26 pm
Just add the hard coded option given above in your code where your code says "Place your custom code below here" and above the line "Place your custom code above here"
Roberto.

Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Thu Aug 02, 2012 8:28 pm
binder: I think i did it. I had to swich port functions b/c I hooked up the 2-part I-Bionic backwards, so dose 2 comes on frist port-8 @ 7am (alk. comp#1) and then dose-1 comes on (cal.-comp#2 on port-7, 5 min delay. Here is the code if you see a problem please correct Thanks!:

#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 setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// 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( 801 );


// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );

////// Place additional initialization code below here
// Port 7, timer 1, 7:00a, run for 7 seconds
ReefAngel.DosingPump(Port7, 2, 7, 5, 7);
// Port 8, timer 2, 7:05a, run for 7 seconds
ReefAngel.DosingPump(Port8, 1, 7, 0, 7);


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

void loop()
{
ReefAngel.StandardLights( Port2,20,0,7,0 );
ReefAngel.StandardLights( Port3,7,0,20,0 );
ReefAngel.StandardLights( Port4,7,0,20,0 );
ReefAngel.DosingPumpRepeat( Port7,0,1,7 );
ReefAngel.DosingPumpRepeat( Port8,0,1,20 );
////// Place your custom code below here


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

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

Posts: 12424
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Aug 02, 2012 8:39 pm
Almost there, but you are getting the hang of it :)
Good job!!!
The correct code would be like this:

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 <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 = Port1Bit | Port5Bit | Port6Bit;
 // Ports toggled in Water Change Mode
 ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit;
 // Ports toggled when Lights On / Off menu entry selected
 ReefAngel.LightsOnPorts = 0;
 // 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( 801 );


 // Ports that are always on
 ReefAngel.Relay.On( Port1 );
 ReefAngel.Relay.On( Port5 );
 ReefAngel.Relay.On( Port6 );

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


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

void loop()
{
 ReefAngel.StandardLights( Port2,20,0,7,0 );
 ReefAngel.StandardLights( Port3,7,0,20,0 );
 ReefAngel.StandardLights( Port4,7,0,20,0 );
 ////// Place your custom code below here

 // Port 7, timer 1, 7:00a, run for 7 seconds
ReefAngel.DosingPump(Port7, 2, 7, 5, 7);
// Port 8, timer 2, 7:05a, run for 7 seconds
ReefAngel.DosingPump(Port8, 1, 7, 0, 7);


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

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

Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Thu Aug 02, 2012 8:44 pm
opps!...the above code placement was wrong plus i had the code for dosing in there twcie here is the corrected code and placement. Please check and give feed back Thanks!
~ben

Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Thu Aug 02, 2012 9:20 pm
does it matter what part you dose 1st ---part 1 or part 2???
~ben

Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Sat Aug 04, 2012 7:13 am
hi...i set the below code in the 'Custom Code' section in wisdor, but when i adjust lights or another fountion in wisdor, then update, it swips out the custom code back to the defualt code in wisdor. I want to control dosing pumps from memory but have no idea where i should place the code and/or set the internal memory values for the DP1OnHour, DP1OnMinute, DP1Timer, DP2OnHour, DP2OnMinute, DP2Timer values to be 7am and 7:05am with timer values of 7 seconds. Can someone code the below so i can cut/paste it in memory, and it will reoccur even if i adjust some other funtion in wisdor it will remain constant. Also, i had to which around the below code as i setup i-bionic 2-part backwards on the pumps. i just don't know where to place the values in the internal memory....thanks for your help--

// Port 7, timer 1, 7:00a, run for 7 seconds
ReefAngel.DosingPump(Port7, 2, 7, 5, 7);
// Port 8, timer 2, 7:05a, run for 7 seconds
ReefAngel.DosingPump(Port8, 1, 7, 0, 7);

Posts: 12424
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Aug 04, 2012 8:51 am
The wizard will always generate new code. It cannot keep the custom code you add manually after it has generated.
If you want to use internal memory, use this:
Code: Select all
ReefAngel.DosingPump2(Port7);
ReefAngel.DosingPump1(Port8);


To change those values, you have two options:
1. Android app
2. Java status app
Roberto.

Posts: 61
Joined: Sun Jul 22, 2012 4:33 pm
PostPosted: Sat Aug 04, 2012 9:06 am
Ok...how do i access those options?
Thx
PreviousNext

Return to Ask anything here

Who is online

Users browsing this forum: No registered users and 1 guest

cron