ORP+SALINITY Probe in one module.

Expansion modules and attachments
Post Reply
abhi_123
Posts: 216
Joined: Tue Mar 20, 2012 8:34 am

ORP+SALINITY Probe in one module.

Post 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.
Image
abhi_123
Posts: 216
Joined: Tue Mar 20, 2012 8:34 am

Re: ORP+SALINITY Probe in one module.

Post by abhi_123 »

bump
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post 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.
Roberto.
abhi_123
Posts: 216
Joined: Tue Mar 20, 2012 8:34 am

Re: ORP+SALINITY Probe in one module.

Post by abhi_123 »

Thanks roberto. Btw when we are going to have modules for orp & salinity?
Image
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post by rimai »

in a month or so.
Roberto.
abhi_123
Posts: 216
Joined: Tue Mar 20, 2012 8:34 am

Re: ORP+SALINITY Probe in one module.

Post by abhi_123 »

Very quick i must say.
Image
claudacate

Re: ORP+SALINITY Probe in one module.

Post 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
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post by rimai »

Are you using custom menu by any change? Or simple menu?
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post by ruckusman »

simple menu.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post by rimai »

Can I see your code and features file?
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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();
}
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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...
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post 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
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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();
}
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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__
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post by rimai »

What would you like to see on the menu?
Roberto.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: ORP+SALINITY Probe in one module.

Post 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.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post 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.
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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..
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post by rimai »

Not custom menu.
You don't have custom menu.
You only need custom main.
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post by ruckusman »

When I didn't choose custom it said my file was to big. can I just change it back to simple menu?
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP+SALINITY Probe in one module.

Post 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.
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: ORP+SALINITY Probe in one module.

Post 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.
Jorge Ramalho
Posts: 8
Joined: Sun May 25, 2014 5:09 pm
Location: Rio de Janeiro, Brasil
Contact:

Re: ORP+SALINITY Probe in one module.

Post 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
Jorge Ramalho
Posts: 8
Joined: Sun May 25, 2014 5:09 pm
Location: Rio de Janeiro, Brasil
Contact:

Re: ORP+SALINITY Probe in one module.

Post by Jorge Ramalho »

Bump
Post Reply