Page 1 of 2
Worried about problems
Posted: Sat Dec 28, 2013 11:12 am
by chapboogie
I have a standard reef angel that has been giving me multiple problems. It has been leaking a lot of voltage through the ph probe. It also causes erratic ph readings during light dimming. My screen blanks out and won't turn on even though I replaced the screen. (Had to pay shipping on the return.) And now I'm trying to upload the new libraries hoping it will fix some of the problems, it won't upload saying the sketch is too big. I have no expansions or addons.
I say all this because I want this to work. I believe in RA . I want to show my brother - in - law that there is a good alternative to apex that has great support and broader ways of use (which he tried to convince me wasn't true).
My family just gave me a dimming expansion and jaboa cable for a gift. I haven't set them up because I want these issues cleared up first. I also am ready to buy another jaboa cable and a lunar hub this week if I can get it going.
Please help. I'll be working on this this weekend.
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 11:23 am
by rimai
You will have a hard time fitting all that in the standard RA, but we can try.
Stray voltage comes from something else and the probe just completes the circuit.
Possible causes I've heard before are PC computer with the USB cable plugged into RA, LED drivers, pumps/powerheads and heaters.
Can you post the code you are trying to upload?
Re: Worried about problems
Posted: Sat Dec 28, 2013 11:37 am
by chapboogie
This is my code made from the wizard
#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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port3Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port2Bit | Port3Bit | Port4Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port5Bit | Port6Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port4Bit | Port5Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port7 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.Relay.DelayedOn( Port2 );
ReefAngel.StandardATO( Port3 );
ReefAngel.StandardHeater( Port4 );
ReefAngel.DayLights( Port5 );
ReefAngel.Relay.Set( Port6, !ReefAngel.Relay.Status( Port5 ) );
ReefAngel.PWM.DaylightPWMParabola();
ReefAngel.PWM.ActinicPWMParabola();
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "chapboogie" );
ReefAngel.ShowInterface();
}
Let me know what to do
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:00 pm
by chapboogie
My screen on the controller says:
memory updated
You can now upload your INO code
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:29 pm
by chapboogie
Any ideas? Nothing is running on my tank. It has all froze
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:37 pm
by rimai
That's because you chose to use internal memory settings.
The wizard will upload a memory code first and then your controller code 2nd, but it is failing because it is too big.
Try using the hard coded settings.
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:38 pm
by chapboogie
How
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:39 pm
by rimai
Change it to hard coded settings when going through the wizard.
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:39 pm
by chapboogie
Found it
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:47 pm
by chapboogie
It won't let me upload old codes either
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:48 pm
by chapboogie
I have it back to factory settings
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 12:58 pm
by rimai
Which old codes?
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:01 pm
by chapboogie
My old saved sketches
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:06 pm
by rimai
The code you posted uses internal memory and it won't fit in the standard RA. You must generate one that uses hard coded settings.
You will have better chances of getting it to fit.
The standard RA is only good for very basic stuff. You may think about upgrading to RA+.
You can free up a lot of memory space if you don't use the wifi attachment. Just one option to let you upload codes now without the upgrade.
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:07 pm
by rimai
To disable the wifi in any of your old sketches, simple delete the ReefAngel.Portal line of your code. You must delete it and not comment it.
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:09 pm
by chapboogie
Why did it all work before. I tried to do it in software first, but it didn't work
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:11 pm
by rimai
Before when?
If you mean before libraries update, it is because every libraries update include increase in the code size sue to features being added and bug fixes.
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:18 pm
by chapboogie
When I bought my RA, I asked and listed what I planned on using it with and was told that I didn't need the plus. Now I do and I don't even have all the stuff I originally was going to get?
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:32 pm
by rimai
Are you sure you listed wifi, LED dimming, Jebao pump control, dimming expansion and lunar hub as mentioned in the OP?
Here is the same code you posted before with a few modifications and changed to use hard coded settings and it fits on your standard RA with the wifi enabled:
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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port3Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port2Bit | Port3Bit | Port4Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port5Bit | Port6Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port4Bit | Port5Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port7 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.Relay.DelayedOn( Port2, 60 );
ReefAngel.StandardATO( Port3, 60 );
ReefAngel.StandardHeater( Port4, 780, 790 );
ReefAngel.StandardLights( Port5, 9, 0, 20, 0 );
ReefAngel.StandardLights( Port6, 20, 0, 9, 0 );
ReefAngel.PWM.SetDaylight(PWMParabola( 10, 0, 19, 0, 15, 100, 0 ));
ReefAngel.PWM.SetActinic(PWMParabola( 9, 0, 20, 0, 15, 100, 0 ));
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "chapboogie" );
ReefAngel.ShowInterface();
}
Re: Worried about problems
Posted: Sat Dec 28, 2013 1:56 pm
by chapboogie
Yes, except the lunar hub wasn't out, but wanted your old moon lights coded for lunar phase. I know that you think my meanwell drivers are causing the leak through the analog dimmers. You said that if I had the analog expansion, they are isolated, but if I got that instead of the pwm I just got, I can't use the lunar hub and wasted the extra money getting the analog dimmers on my original one.
Btw, thanks for the new code. Now I don't know what to do.
Re: Worried about problems
Posted: Sat Dec 28, 2013 2:02 pm
by chapboogie
I don't know if this means anything, but my clock keeps losing time also. I lose about 2 mins everyday
Re: Worried about problems
Posted: Sat Dec 28, 2013 2:23 pm
by chapboogie
Now my lights are on full blast
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 2:39 pm
by chapboogie
I'm going to burn my corals
Re: Worried about problems
Posted: Sat Dec 28, 2013 3:15 pm
by chapboogie
Back to running without wifi
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 4:22 pm
by rimai
It's a full blast because the code is set to 100%.
You must change it according to your needs.
All the settings were just an example, since you never gave us what temperature and times your have your controller set to.
Re: Worried about problems
Posted: Sat Dec 28, 2013 4:24 pm
by chapboogie
I've only ever used the wizard. I don't know how to code yet
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 4:36 pm
by rimai
Ok, so use the wizard then.... Just make sure to choose hard coded settings.
Re: Worried about problems
Posted: Sat Dec 28, 2013 4:46 pm
by chapboogie
By hard coded, do you mean store the settings in the code?
Sent from my SCH-I535 using Tapatalk
Re: Worried about problems
Posted: Sat Dec 28, 2013 4:46 pm
by rimai
correct
Re: Worried about problems
Posted: Sat Dec 28, 2013 4:50 pm
by chapboogie
I've tried, but not enough memory. What line do I edit to make Wi-Fi work?
Sent from my SCH-I535 using Tapatalk