Reef Angel Regular time

Basic / Standard Reef Angel hardware
Post Reply
Sleepingtiger
Posts: 32
Joined: Fri Aug 30, 2013 3:50 pm

Reef Angel Regular time

Post by Sleepingtiger »

I picked up a used RA for my freshwater aquarium just to do some real basic stuff. Version is V1.1.0 and the Arduino is libaries V1.1.0. I can't seem to change the time on it. Unlike my RA+, there isn't an option under time for me to change it. Do i need to update the firmware or something? I am sure i am missing something. Do I need eagle files or something?
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Reef Angel Regular time

Post by binder »

The "simple menu" that gets enabled by default does not have an option to set the time on the controller. You have different options based on how you can communicate with the controller. If you have a wifi module, then you can update the time via one of the mobile apps or my java status app. if you do not have a wifi module, you can either a) enable the standard menu and just have the bare basics setup so you can then load that code, set the date / time then reload your current code that you want to use or b) manually set the time on the controller via the usb interface and the arduino device monitor window.

the choice is yours and we can direct you to either option.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Regular time

Post by rimai »

Add this to your setup():

Code: Select all

ReefAngel.AddDateTimeMenu();
Roberto.
Sleepingtiger
Posts: 32
Joined: Fri Aug 30, 2013 3:50 pm

Re: Reef Angel Regular time

Post by Sleepingtiger »

awesome! it works! thanks!

one more question. because this is the regular version of RA and not the RA+, can i do a custom screen? i am finding that graph in the screen unnecessary. I am trying to label each port on my power bar.

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
    ReefAngel.AddStandardMenu();  // Add Standard Menu
    ReefAngel.AddDateTimeMenu();

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port4Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port4Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 850 );


    // Ports that are always on
    ReefAngel.Relay.On( Port4 );
    ReefAngel.Relay.On( Port7 );
    ReefAngel.Relay.On( Port8 );

    ////// Place additional initialization code below here
    

    ////// Place additional initialization code above here
}

void loop()
{
    ReefAngel.StandardHeater( Port1,790,805 );
    ReefAngel.StandardLights( Port2,8,0,0,0 );
    ReefAngel.StandardLights( Port3,9,0,23,0 );
    ReefAngel.WavemakerRandom( Port5,60,100 );
    ReefAngel.WavemakerRandom( Port6,30,70 );
    ////// Place your custom code below here
    

    ////// Place your custom code above here

    // This should always be the last line
    ReefAngel.ShowInterface();
}
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Regular time

Post by rimai »

Sure. Give it a shot.
Roberto.
Sleepingtiger
Posts: 32
Joined: Fri Aug 30, 2013 3:50 pm

Re: Reef Angel Regular time

Post by Sleepingtiger »

gives me an error: Sketch too big: see http://arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.

this only happens when i add

ReefAngel.Use2014Screen();
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Reef Angel Regular time

Post by lnevo »

Thats not the custom screen..and that will take a LOT of space.
Sleepingtiger
Posts: 32
Joined: Fri Aug 30, 2013 3:50 pm

Re: Reef Angel Regular time

Post by Sleepingtiger »

hmmm, how do i know what these commands mean?

how come my RA+ doesn't have the command ReefAngel.AddDateTimeMenu(); but i am still able to see the option to change date and time.

man this thing is confusing
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Regular time

Post by rimai »

The RA+ has enough space, so it gets added automatically.
Because of the limitation of memory on the standard RA, it is an optional feature.
Roberto.
Sleepingtiger
Posts: 32
Joined: Fri Aug 30, 2013 3:50 pm

Re: Reef Angel Regular time

Post by Sleepingtiger »

thanks Roberto. sorry, but i am slowly learning.
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Reef Angel Regular time

Post by binder »

Sleepingtiger wrote:thanks Roberto. sorry, but i am slowly learning.
no need to apologize....it is a learning curve. better to be slow and ask questions or read through the forum.


Sent from my iPad mini
Post Reply