PH calibration using 4 - 7 solutions

Post Reply
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

PH calibration using 4 - 7 solutions

Post by Graham2212 »

Good day all. I'm a complete newby to marine aquariums (my first tank has been running for almost 3 months now). Just received my new Reef Angel. Can anyone help with the calibration of the PH probe? I have managed to get hold of solutions 4 and 7 (not the recommended 7 and 10). I believe that I can still perform the calibration with these solutions, but that there needs to be a change in the config code? Can anyone provide me with this code adjustment? Much appreciated!!
Sebyte

Re: PH calibration using 4 - 7 solutions

Post by Sebyte »

Take a look at http://forum.reefangel.com/viewtopic.ph ... d&start=10

Roberto explains the calculation when using 4 & 7 calibration fluids.
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

Re: PH calibration using 4 - 7 solutions

Post by Graham2212 »

Thanks very much for the values to use. Where do I go on the programme to make these adjustments (to the configuration code I believe) - (feeling a bit overwhelmed at the moment)?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PH calibration using 4 - 7 solutions

Post by rimai »

Roberto.
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

Re: PH calibration using 4 - 7 solutions

Post by Graham2212 »

How do I navigate to the setup() section of my code?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PH calibration using 4 - 7 solutions

Post by rimai »

Can you post the code you are using?
Roberto.
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

Re: PH calibration using 4 - 7 solutions

Post by Graham2212 »

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 <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.PHMin=217;
    ReefAngel.PHMax=512;
    ReefAngel.UseFlexiblePhCalibration();
    ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 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( 290 );


    // Ports that are always on

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

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

void loop()
{
    ReefAngel.StandardATO( Port1,50 );
    ReefAngel.WavemakerRandom1(Port5,15,60); // Turn Port5 on/off random cycles that lasts from 15 to 60 secs
    ReefAngel.WavemakerRandom2(Port6,15,60); // Turn Port6 on/off random cycles that lasts from 15 to 60 secs
    ////// Place your custom code below here
    

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

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

void DrawCustomMain()
{
    int x,y;
    char text[10];
    // Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params,
    ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
    pingSerial();

    // Salinity
    ReefAngel.LCD.DrawText( COLOR_DARKKHAKI,DefaultBGColor,15,66, "SAL:" );
    ReefAngel.LCD.DrawText( COLOR_DARKKHAKI,DefaultBGColor,39,66, ReefAngel.Params.Salinity );
    pingSerial();

    // Main Relay Box
    byte TempRelay = ReefAngel.Relay.RelayData;
    TempRelay &= ReefAngel.Relay.RelayMaskOff;
    TempRelay |= ReefAngel.Relay.RelayMaskOn;
    ReefAngel.LCD.DrawOutletBox( 12, 93, TempRelay );
    pingSerial();

    // Date and Time
    ReefAngel.LCD.DrawDate( 6, 122 );
    pingSerial();
}

void DrawCustomGraph()
{
}
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

Re: PH calibration using 4 - 7 solutions

Post by Graham2212 »

Could you kindly let me know if I'm on the right track here?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PH calibration using 4 - 7 solutions

Post by rimai »

Yeap :)
Roberto.
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

Re: PH calibration using 4 - 7 solutions

Post by Graham2212 »

Thanks very much for your help? Would you be able to possibly help me with customizing my main screen? I would love a graph of temp, ph and salinity, actual values in the middle, with the relay box graphic below... do I need to create a new post?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PH calibration using 4 - 7 solutions

Post by rimai »

That's how it is now, isn't it?
For custom screens, start with this post:
http://forum.reefangel.com/viewtopic.php?f=14&t=109
Roberto.
Post Reply