Page 1 of 1

ORP+SALINITY Probe in one module.

Posted: Fri Mar 23, 2012 10:24 pm
by abhi_123
Was looking around & find all the controller manufacturer make separate module for salinity & ORP. Is it not possible to have both of them in same module or they just do it to make us spend an extra 80 bucks?

Can we think of having a single module for handling both by Reef Angel manufacturers? If it is so that will be a very well deserved addon for every reef hobbyist who is using ozone or willing to use ozone in future.

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 02, 2012 1:12 am
by abhi_123
bump

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 02, 2012 8:13 am
by rimai
It's much easier to build them with independent circuits than together in one circuit.
They need galvanic isolation or they would interfere with each other.
The components to isolate the two circuits would cost even more than building them separate.

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 02, 2012 9:25 am
by abhi_123
Thanks roberto. Btw when we are going to have modules for orp & salinity?

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 02, 2012 9:26 am
by rimai
in a month or so.

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 02, 2012 9:30 am
by abhi_123
Very quick i must say.

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 04, 2012 7:48 am
by claudacate
I am waiting for the orp addon before I purchase reef angel so I can save some money on shipping. Anyway to subscribe to news about reef angel so I don't have to check the forum every other day for news about orp? Thanks

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 09, 2012 5:17 am
by ruckusman
How do you calibrate the salinity probe. When I click ok in the calibrate it just closes out. Does that mean its fine? It has a red zero past the 35ppt. I assume the 35 ppt is what it is reading? Which I think is my target of about 1.026

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 09, 2012 8:47 am
by rimai
Are you using custom menu by any change? Or simple menu?

Re: ORP+SALINITY Probe in one module.

Posted: Mon Apr 09, 2012 3:48 pm
by ruckusman
simple menu.

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 11, 2012 12:44 am
by ruckusman
I'm clearly not getting something because my salinity dropped do to a float valve fail today and its still reading the same...thoughts anyone?

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 11, 2012 7:52 am
by rimai
Can I see your code and features file?

Re: ORP+SALINITY Probe in one module.

Posted: Thu Apr 19, 2012 6:14 am
by ruckusman
// Autogenerated file by RAGen (v1.2.1.158), (04/06/2012 13:56)
// RA_040612_1356.ino
//
// This version designed for v0.9.0 or later

/* The following features are enabled for this File:
#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
#define SALINITYEXPANSION
*/


#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 <Salinity.h>
#include <ReefAngel.h>


void setup()
{
ReefAngel.Init(); //Initialize controller

// Ports that are always on
ReefAngel.Relay.On(Port4);
ReefAngel.Relay.On(Port5);
ReefAngel.Relay.On(Port6);
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.StandardATO(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.MHLights(Port3);
ReefAngel.StandardHeater(Port7);
ReefAngel.Portal("ruckusman");

ReefAngel.ShowInterface();
}

Re: ORP+SALINITY Probe in one module.

Posted: Thu Apr 19, 2012 6:16 am
by ruckusman
how do I export the features file, I assume you are talking about what I have checked off in the features in RAGEN...I see import but not export. I assume you don't want a simple print screen of that. Sorry for not knowing...

Re: ORP+SALINITY Probe in one module.

Posted: Thu Apr 19, 2012 7:14 am
by rimai
The file is located at "Document\Arduino\libraries\ReefAngel_Features\ReefAngel_Feature.h"
The code above does not even have display of salinity on the screen.
You need to create a custom main screen for it.
Take a look at the sample code. File->Sketchbook->Example Codes->CustomMainScreen_Salinity

Re: ORP+SALINITY Probe in one module.

Posted: Tue Apr 24, 2012 2:36 pm
by ruckusman
I added the salinity example code...still don't see it on the menu other than to calibrate....


#include <Salinity.h>
#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 <RF.h>
#include <IO.h>
#include <ORP.h>
#include <ReefAngel.h>

void DrawCustomMain()
{
// the graph is drawn/updated when we exit the main menu &
// when the parameters are saved
ReefAngel.LCD.DrawDate(6, 122);
pingSerial();
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor(15, 60, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue());
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor(15, 60, ReefAngel.Params);
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();
char text[10];
ConvertNumToString(text, ReefAngel.Params.Salinity, 10);
strcat(text," ");
ReefAngel.LCD.DrawText(DefaultFGColor,DefaultBGColor,15,93,"Salinity:");
ReefAngel.LCD.DrawText(DefaultFGColor,DefaultBGColor,75,93,text);
pingSerial();
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox(12, 103, TempRelay);
}

void DrawCustomGraph()
{
ReefAngel.LCD.DrawGraph(5, 5);
}

/*

For more information about custom main screen: http://forum.reefangel.com/viewtopic.php?f=14&t=109

To be able to use the custom main screen and salinity, please make sure that you enabled custom main screen and salinity on your features file.
Open RAGen and make sure you have Custom Main Screen and Salinity checked under the Features tab.

Or, you can manually edit the file.
The file is located at "Documents\Arduino\libraries\ReefAngel_Features.h" file and has to include this line in it:

#define CUSTOM_MAIN
#define SALINITYEXPANSION

*/

void setup()
{
ReefAngel.Init(); //Initialize controller

// Ports that are always on
ReefAngel.Relay.On(Port4);
ReefAngel.Relay.On(Port5);
ReefAngel.Relay.On(Port6);
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.StandardATO(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.MHLights(Port3);
ReefAngel.StandardHeater(Port7);

ReefAngel.ShowInterface();
}

Re: ORP+SALINITY Probe in one module.

Posted: Tue Apr 24, 2012 2:38 pm
by ruckusman
features file



// AutoGenerated file by RAGen (v1.2.1.158), (04/24/2012 17:13)

/*
* Copyright 2010-12 Curt Binder
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


#ifndef __REEFANGEL_FEATURES_H__
#define __REEFANGEL_FEATURES_H__


#define DateTimeSetup
#define VersionMenu
#define DirectTempSensor
#define wifi
#define SIMPLE_MENU
#define SALINITYEXPANSION


#endif // __REEFANGEL_FEATURES_H__

Re: ORP+SALINITY Probe in one module.

Posted: Tue Apr 24, 2012 2:49 pm
by rimai
What would you like to see on the menu?

Re: ORP+SALINITY Probe in one module.

Posted: Tue Apr 24, 2012 3:54 pm
by binder
The only thing in the menu is calibration for the Salinity module. There's not much else you can do in the menu other than calibrate the Salinity module. If you want to see the actual salinity, you must display it on the screen which is what it looks like you are doing.

Re: ORP+SALINITY Probe in one module.

Posted: Tue Apr 24, 2012 4:11 pm
by ruckusman
I guess that is what I was asking. Should it be on the main display, or just visible under calibrate salinity. Under calibrate salinity I see 35 ppt or m can't remember. Except I don't think that is accurate based on my other readings. Am I not understanding calibrate?

Re: ORP+SALINITY Probe in one module.

Posted: Tue Apr 24, 2012 7:48 pm
by rimai
If you are not seeing it on the screen, you need to turn on custom main screen.
Open RAgen->Features tab
Check Custom Main
Click Save
Upload your code again.

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 25, 2012 9:45 am
by ruckusman
after I did that I still didn't have salinity on the display. I tried to upload the custom main with salinity and get this.

ReefAngel\ReefAngel.cpp.o: In function `ReefAngelClass::ProcessButtonPressCustom()':
C:\Users\bharper\Documents\Arduino\libraries\ReefAngel/ReefAngel.cpp:2051: undefined reference to `MenuEntry1()'

I have reloaded the ra gen code with the custom menu and custom main 3 times..

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 25, 2012 9:50 am
by rimai
Not custom menu.
You don't have custom menu.
You only need custom main.

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 25, 2012 10:03 am
by ruckusman
When I didn't choose custom it said my file was to big. can I just change it back to simple menu?

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 25, 2012 10:03 am
by ruckusman
To make sure I am understanding, simple menu is the list of items I get once I click the button, custom main is what I get when I move the joystick and activate the screen. one has nothing to do with the other than the word custom?

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 25, 2012 10:09 am
by rimai
That's what you should use... Simple menu and custom main.
The menu is what you get when you press the joystick and screen is what is normally displayed when you do nothing.

Re: ORP+SALINITY Probe in one module.

Posted: Wed Apr 25, 2012 10:14 am
by ruckusman
I follow you. Sorry, for the confusion. That is simple enough to understand if I just take the time to understand it instead of clicking and uploading.

Re: ORP+SALINITY Probe in one module.

Posted: Mon Jun 09, 2014 5:14 am
by Jorge Ramalho
rimai wrote:It's much easier to build them with independent circuits than together in one circuit.
They need galvanic isolation or they would interfere with each other.
The components to isolate the two circuits would cost even more than building them separate.
I see the ORP module, as the Salinity one, is driven at 9V. Is that the reason we need galvanic isolation? If it was driven at 5v would I still need to isolate them?

I'm asking because I'm building a controller based on an Arduino Mega and some shields I'm building. Until now, the pH shield is working fine (took the circuit from Reef Angel plus Schematic), but I don't want a lot of wires (BUS cable and power supply for each module) to build the whole system.


Enviado do meu iPhone usando o Tapatalk

Re: ORP+SALINITY Probe in one module.

Posted: Sat Jun 14, 2014 6:53 am
by Jorge Ramalho
Bump