Recurring problem

Related to the development libraries, released by Curt Binder
Post Reply
sjmusic2
Posts: 33
Joined: Sun Sep 25, 2011 8:25 pm

Recurring problem

Post by sjmusic2 »

I have created my own main screen, but I keep experiencing the same problem...

It is ok for a short while then the alert led comes on and the display starts displaying unexpected additional artifacts.
RA error 2.jpg
RA error 2.jpg (44.12 KiB) Viewed 5482 times
If I clear the overheat flag manually within the RA, the display behaves as it should until the cycle repeats.

On a couple of occasions it displays error and/or 0oF for the temps
RA error.jpg
RA error.jpg (43.93 KiB) Viewed 5482 times
and has also crashed - only a reboot will clear this.

Here's my pde (using 0.8.5.19, gen 1 RA)...
#include <ReefAngel_Colors.h>
#include <ReefAngel_CustomColors.h>
#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>

void DrawCustomMain()
{
ReefAngel.LCD.DrawDate(6, 2);
ReefAngel.LCD.Clear(COLOR_BLACK, 1, 11, 132, 11);
char text[7];
ConvertNumToString(text, ReefAngel.Params.PH, 100);
ReefAngel.LCD.DrawLargeText(COLOR_SEAGREEN, DefaultBGColor, 12, 52, "pH :",
Font8x8);
ReefAngel.LCD.DrawLargeText(COLOR_GREEN, DefaultBGColor, 56, 48, text,
Font8x16);
ConvertNumToString(text, ReefAngel.Params.Temp1, 10);
ReefAngel.LCD.DrawHugeNumbers(COLOR_INDIGO, DefaultBGColor, 56, 20, text);
ReefAngel.LCD.DrawText(COLOR_MIDNIGHTBLUE, DefaultBGColor, 12, 24, "Tank :");
ReefAngel.LCD.DrawText(T2TempColor,DefaultBGColor, 12, 74, "LED Array :");
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.Temp2, T2TempColor,
95, 74, 10);
ReefAngel.LCD.DrawText(T3TempColor,DefaultBGColor, 12, 90, "Ambient Air :");
ReefAngel.LCD.DrawSingleMonitor(ReefAngel.Params.Temp3, T3TempColor,
95, 90, 10);
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox(12, 106, TempRelay);
}
void DrawCustomGraph()
{
}

void setup()
{
    //Port 1 = Left powerhead 1
    //Port 2 = LED (StandardLights)
    //Port 3 = Left powerhead 2
    //Port 4 = ATS pump
    //Port 5 = UV bulb
    //Port 6 = Right powerhead
    //Port 7 = Heater
    //Port 8 = Skimmer pump
    ReefAngel.Init();  //Initialize controller
    ReefAngel.PHMin=482;
    ReefAngel.PHMax=832;
    ReefAngel.FeedingModePorts = B10001100;
    ReefAngel.WaterChangePorts = B10111101;
    ReefAngel.OverheatShutoffPorts = B00000000;
    ReefAngel.LightsOnPorts = B00000010;

    // Ports that are always on
    ReefAngel.Relay.On(Port1);
    ReefAngel.Relay.On(Port3);
    ReefAngel.Relay.On(Port4);
    ReefAngel.Relay.On(Port5);
    ReefAngel.Relay.On(Port6);
    ReefAngel.Relay.On(Port8);
    
    ReefAngel.LCD.Clear(DefaultBGColor, 1, 12, 131, 100);
}

void loop()
{
    ReefAngel.ShowInterface();

    // Specific functions
    //ReefAngel.StandardLights(Port, OnHour, OnMinute, OffHour, OffMinute);
    ReefAngel.StandardLights(2,10,30,23,00);
    ReefAngel.StandardHeater(7,800,810);
    ReefAngel.Relay.Write();  //Writes the value of RelayData to the RelayBox
 }
Thanks in advance for your assistance.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Recurring problem

Post by rimai »

Can you run your system with just 1 temperature probe?
I have a feeling one of your temperature probes is failing.
There is just no way to find out which one, since they seem to work fine for a while, right?
Roberto.
sjmusic2
Posts: 33
Joined: Sun Sep 25, 2011 8:25 pm

Re: Recurring problem

Post by sjmusic2 »

You could be right...I haven't finished testing the probes individually yet, but probe 1 malfunctions when used in isolation. Probe 2 doesn't, but the temp reading appears on the display as Tank temp (T1) when it is really the LED array temp (T2). I will test the third probe later, but suspect it will be like T2.
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Recurring problem

Post by Bryan »

Have to say the color scheme for your display looks very slick.
-=Bryan=-
sjmusic2
Posts: 33
Joined: Sun Sep 25, 2011 8:25 pm

Re: Recurring problem

Post by sjmusic2 »

Roberto : T1 and T3 are displaying incorrectly, ie. they read the correct temp, then for a second or so will display a number in the 2000's, before going back to the correct temp. T2 appears to be working normally.
Any thoughts ? How do I replace the temp probes if that is the solution ?

Bryan : Thanks - feel free to use the code
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Recurring problem

Post by rimai »

You got PM
Roberto.
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Recurring problem

Post by Bryan »

sjmusic2 wrote: Bryan : Thanks - feel free to use the code
Would not compile, looks like the library for the LCD is not there. Care to share it?. Thanks muchly
-=Bryan=-
Post Reply