Head Unit Stops responding

Basic / Standard Reef Angel hardware
Post Reply
M@!
Posts: 18
Joined: Sun Apr 08, 2012 9:25 pm

Head Unit Stops responding

Post by M@! »

Hello All,

Just got my Reef Angel for my birthday on Sunday and I'm having a slight problem. After the it falls asleep for a while the unit stops responding. I went to bed last night and when i woke up this morning the green light as on but it wouldn't wake up. It also stopped controlling my cooling fan. I connected my USB cable and it came back to life. I'll post my code when I head home at lunch but was hoping somebody had a idea of what is causing this.

Thanks and excited for my angel!
M@!
Posts: 18
Joined: Sun Apr 08, 2012 9:25 pm

Re: Head Unit Stops responding

Post by M@! »

Here is my code:

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

void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.Relay.On(Port8); //Turn Port8 on at startup
ReefAngel.Relay.On(Port6); //Turn Port8 on at startup
ReefAngel.Relay.On(Port5); //Turn Port8 on at startup
}

void loop()
{

//ReefAngel.StandardATO(Port1,60); //Setup Port1 as Auto Top-Off function with 60s timeout
ReefAngel.StandardLights(Port4,12,00,22,30); //Refugium schedule 10:30pm - 2:30pm
ReefAngel.StandardLights(Port3,12,30,22,00); //Actinic schedule 2:30pm - 10:30pm
ReefAngel.StandardFan(Port7,725,730); // Setup Chiller to turn on at 79.7F and off at 79.3F
ReefAngel.ShowInterface(); // Draws the standard graphical user interface}
ReefAngel.Portal("M@!");
}
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Head Unit Stops responding

Post by rimai »

I'm not 100% sure of the non standard characters on the portal function, but the server seems to be getting data and accepting it.
Let's try this first.

Change this:

Code: Select all

ReefAngel.ShowInterface(); // Draws the standard graphical user interface}
ReefAngel.Portal("M@!");
To this:

Code: Select all

ReefAngel.Portal("M@!");
ReefAngel.ShowInterface(); // Draws the standard graphical user interface}
Then, Open RAGen
Move to tab features
Make sure that Watchdog Timer is checked
Click Save

Upload your code again.
Roberto.
M@!
Posts: 18
Joined: Sun Apr 08, 2012 9:25 pm

Re: Head Unit Stops responding

Post by M@! »

Yeah, I guess I should have thought about characters before choosing my username. Thanks, I will make those changes. The Watchdog Timer was not checked.
M@!
Posts: 18
Joined: Sun Apr 08, 2012 9:25 pm

Re: Head Unit Stops responding

Post by M@! »

Fixed it, thanks! Installed it yesterday and everything is working perfect. Now I need to make things more complicated to keep me busy! :lol:
Post Reply