Search found 80 matches

by tyson_mitchell_88
Sat Mar 05, 2016 6:35 pm
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Re: Timed Menu Port

I wouldn't no where to start, might not be worth the hassle. Thanks guys
by tyson_mitchell_88
Sat Mar 05, 2016 5:05 pm
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Re: Timed Menu Port

Is it possible to have more then 9 menu entries? Or a sub menu?
by tyson_mitchell_88
Sat Mar 05, 2016 2:23 am
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Re: Timed Menu Port

Are we able to add a function so if the joystick is pressed while in DisplayTime or DisplayFeedModeTime countdown DisplayIn is returned to auto?
by tyson_mitchell_88
Sat Mar 05, 2016 1:56 am
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Re: Timed Menu Port

Seems to be sorted with this :) void DisplayOff() { static time_t DisplayTime; static time_t DisplayFeedModeTime; if (ReefAngel.Relay.isMaskOff(DisplayIn)) { ReefAngel.Relay.Auto(DisplayIn); if (ReefAngel.DisplayedMenu==FEEDING_MODE){ DisplayFeedModeTime=now(); } else { DisplayTime=now(); }} if (now...
by tyson_mitchell_88
Fri Mar 04, 2016 6:48 pm
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Re: Timed Menu Port

Ok I have a small problem, this code is not letting my Feedmode work. Using the below code DisplayIn will not turn off from the menu. void DisplayOff() { static time_t DisplayTime; static time_t FeedModeTime; if (ReefAngel.DisplayedMenu==FEEDING_MODE && ReefAngel.Relay.isMaskOff(DisplayIn)) ...
by tyson_mitchell_88
Thu Mar 03, 2016 10:41 pm
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Re: Timed Menu Port

Beautiful thanks Lee. I was close :). Appreciate the help
by tyson_mitchell_88
Thu Mar 03, 2016 4:56 pm
Forum: How do I code ...
Topic: Timed Menu Port
Replies: 9
Views: 6906

Timed Menu Port

Hi all I am wondering if it is possible to have a menu option that turned a port off and triggered a timer to turn to port back on. Using this void MenuEntry4() { ReefAngel.Relay.Override(DisplayIn, ReefAngel.Relay.Status(DisplayIn)-1); ReefAngel.DisplayedMenu = RETURN_MAIN_MODE; And this for timing...
by tyson_mitchell_88
Tue Feb 02, 2016 8:41 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

This is working perfectly for me now, thanks mate. Thanks lee for all your help too. //Waterchange Mode static byte stage=255; static int LastDisplayedMenu=-1; static time_t lastHighATOActive=0; if (LastDisplayedMenu!=WATERCHANGE_MODE && ReefAngel.DisplayedMenu==WATERCHANGE_MODE) stage=1; La...
by tyson_mitchell_88
Fri Jan 29, 2016 3:11 am
Forum: For New Members
Topic: Android app to PWM expansion help
Replies: 6
Views: 7046

Re: Android app to PWM expansion help

Newest library update fixed this up. Thanks guys
by tyson_mitchell_88
Fri Jan 29, 2016 3:09 am
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Good to hear mate. Will it be possible to code?
by tyson_mitchell_88
Wed Jan 27, 2016 3:20 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Can we make it so it only changes to the next step if the float switch has changed state for a certain time? I understand the float switch changes instantly but if it does this and ends the process for port 1, the return pumps will run dry. The return pumps will not pump water up into the tanks fast...
by tyson_mitchell_88
Wed Jan 27, 2016 12:11 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

This is why in the original post I wanted the float switch process (being able to turn on and off) to run over a time period. Ensuring all water gets out and enough can be pumped back in
by tyson_mitchell_88
Wed Jan 27, 2016 12:07 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

A delay will work after port 7 & 8 are turned off. Not sure with the refill as the switch will need to toggle. A delay after ports 7 & 8 are on will result in my sump running dry. If then the process ends when HighATO is on the sump won't get enough water to fill the tanks. As I said port 1 ...
by tyson_mitchell_88
Wed Jan 27, 2016 12:47 am
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

I understand what you mean with the float switch, sorry for not being more clear. >Activate when waterchange mode on >Ports 7 & 8 turn off >water drains from the tanks into the sump (stage 1) >port 4 is on when HighATO is on (stage 2) >water may still be draining from the tanks so the float swit...
by tyson_mitchell_88
Tue Jan 26, 2016 10:57 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

I have a question with how this script is working ReefAngel.Relay.Off(Box1_Port8); if (!ReefAngel.HighATO.IsActive()) { ReefAngel.Relay.Off(Box1_Port4); status=1; Once HighATO stops being active will it change straight to the next stage? I need the switch to function, switching on and off, over a ti...
by tyson_mitchell_88
Tue Jan 26, 2016 10:50 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Its not activating. status flag on the app is showing waterchange mode on, nothing changes though.
by tyson_mitchell_88
Tue Jan 26, 2016 8:29 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Ports 7 & 8 are my returns. I need them to turn off, then box 1 port 4 drains the sump untill HighATO is off. I need the time delay so the water can backflow from the tanks.
by tyson_mitchell_88
Mon Jan 25, 2016 11:39 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Here is my full build encase something is out of the ordinary and causing problems. #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 ...
by tyson_mitchell_88
Mon Jan 25, 2016 11:37 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Still not triggering on waterchange. I know its a silly question but I'm using the android app to activate not the RA, would this have any effect?
by tyson_mitchell_88
Mon Jan 25, 2016 10:58 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

I wasn't exactly sure where to put wcTimer==0, sorry mate. //Waterchange Mode static time_t wcTimer=0; if (ReefAngel.DisplayedMenu == WATERCHANGE_MODE && wcTimer==0); { wcTimer=now(); } if (now()-wcTimer >= 1 && now()-wcTimer < 120) { ReefAngel.Relay.Off(Box1_Port7); ReefAngel.Relay....
by tyson_mitchell_88
Mon Jan 25, 2016 9:21 pm
Forum: How do I code ...
Topic: Manual HighATO Port
Replies: 2
Views: 3785

Re: Manual HighATO Port

Thanks Roberto, this will make water changes as close to automatic as we can atm :)
by tyson_mitchell_88
Mon Jan 25, 2016 8:31 pm
Forum: How do I code ...
Topic: water change build
Replies: 62
Views: 39170

Re: water change build

Lee what about if we tried a different approach like this? //Waterchange Mode static time_t wcTimer=0; static int stage=0; if (ReefAngel.DisplayedMenu == WATERCHANGE_MODE); { wcTimer=now(); } if (now()-wcTimer >= 1 && now()-wcTimer < 600) { ReefAngel.Relay.Off(Box1_Port7); ReefAngel.Relay.Of...
by tyson_mitchell_88
Mon Jan 25, 2016 10:49 am
Forum: How do I code ...
Topic: Manual HighATO Port
Replies: 2
Views: 3785

Manual HighATO Port

Wondering if I'm able to set up a port so when its activated, via portal or app, it I will run to a float switch?
by tyson_mitchell_88
Mon Jan 25, 2016 10:40 am
Forum: How do I code ...
Topic: Port switch on 0 dimming
Replies: 7
Views: 5628

Re: Port control

ok mate sorry
by tyson_mitchell_88
Mon Jan 25, 2016 10:38 am
Forum: For New Members
Topic: Android app to PWM expansion help
Replies: 6
Views: 7046

Re: Android app to PWM expansion help

Thanks Roberto
by tyson_mitchell_88
Mon Jan 25, 2016 10:20 am
Forum: For New Members
Topic: Android app to PWM expansion help
Replies: 6
Views: 7046

Re: Android app to PWM expansion help

Sweet thanks Colin, have been driving myself mad trying to figure this one out lol
by tyson_mitchell_88
Mon Jan 25, 2016 10:15 am
Forum: How do I code ...
Topic: Port switch on 0 dimming
Replies: 7
Views: 5628

Re: Port control

This is for another job on another port mate. Trying to set up some manual water change.
by tyson_mitchell_88
Sun Jan 24, 2016 10:50 pm
Forum: How do I code ...
Topic: Port switch on 0 dimming
Replies: 7
Views: 5628

Re: Port control

Worked well thanks Roberto.

How would I set up a port so it's usually off, though if I manually activate it, through portal or app, it works to ATOHigh.
by tyson_mitchell_88
Sun Jan 24, 2016 9:18 pm
Forum: For New Members
Topic: Android app to PWM expansion help
Replies: 6
Views: 7046

Android app to PWM expansion help

Recently my router had a spaz and default reset. Long story short after I sorted the port forwarding I have had an issue trying to adjust the channels on the pwm expansion. When I change channel 4 it actually changes channel 0, when I adjust other channels nothing, doing a few strange things. Everyt...
by tyson_mitchell_88
Sun Jan 24, 2016 9:10 pm
Forum: For New Members
Topic: Help With my build - PWM Expansion
Replies: 26
Views: 28949

Re: Help With my build - PWM Expansion

Seems all good now, thanks again mate :)