Feeding Mode not triggering Vortech

Do you have a question on how to do something.
Ask in here.
Post Reply
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

rimai wrote:Nothing has changed.
The feeding mode didn't do anything.
Do you have the FeedingModePorts setup correctly?
Did it turn on your lights this time too?
As far as I know they are setup correctly - no need to setup RF feeding mode right?

It didn't turn on my lights, but this is what happens:

From controller, the vortech doesn't go into feed mode. However, if my tunze port is off, it goes on (which is set to turn off for feed mode)

From portal, the vortech goes into feed mode, but after feed time ends, the pump does not go back to full power, it will continue at the feed mode power but mode will be reefcrest. The portal shows the pump operating as normal. I have to reboot controller to get pump back to full speed


Sent from my iPad using Tapatalk 2
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Feeding Mode not triggering Vortech

Post by rimai »

I can't think of a reason why this would happen, except for that you are using the old drivers.
Were you ever able to get the feeding mode to work on these old drivers before??
Roberto.
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

rimai wrote:I can't think of a reason why this would happen, except for that you are using the old drivers.
Were you ever able to get the feeding mode to work on these old drivers before??
Yeah on my old tank I was running old drivers and it worked 100%

I will try update the drivers I guess and see what happens


Sent from my iPhone using Tapatalk 2
Image
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

I updated the libraries to 1.0.9

Pushed Feed Mode twice (on the controller) and nothing happened.
Pushed it a third time and my vortech controller went into feed mode, RF module stays same colour (If I remember it used to flash white in feed mode) and on the controller, it doesnt show "Feed Mode" or the countdown like it used to.

After feed mode ended, the vortech is still not ramping back up to a true 65%, have to reboot the controller for it to go back to normal

AND, every time i hit feed mode, it turns my Tunze port on (from off) and not vice versa
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Feeding Mode not triggering Vortech

Post by lnevo »

Can you post your current code again? Very odd behavior with the tunze. Whats odd is the output from the controller appears the same and your display should show the countdown...

I've had issues with the rf module because the connection would sometimes come out and it would not reset properly on the controller bus.

My recommendation would be to try reseating the connection to the RF module and then reset the controller and try again.

Also, is your RF module plugged into expansion hub? Or direct to relay box. If to the relay box, i would 1) confirm you are using the correct svga cable that came with the RA. 2) try another SVGA cable if possible. Make sure it's got all 15 pins. The reasoning here is maybe the signal is getting messed up and is sending signals destined for the rf module to the relay?? I know it's out there but it IS strangd behavior...
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

lnevo wrote:Can you post your current code again? Very odd behavior with the tunze. Whats odd is the output from the controller appears the same and your display should show the countdown...

I've had issues with the rf module because the connection would sometimes come out and it would not reset properly on the controller bus.

My recommendation would be to try reseating the connection to the RF module and then reset the controller and try again.

Also, is your RF module plugged into expansion hub? Or direct to relay box. If to the relay box, i would 1) confirm you are using the correct svga cable that came with the RA. 2) try another SVGA cable if possible. Make sure it's got all 15 pins. The reasoning here is maybe the signal is getting messed up and is sending signals destined for the rf module to the relay?? I know it's out there but it IS strangd behavior...
Attached is my current code :)

I will try reseating the cable for the module, but it works fine to change modes etc?

My module is plugged directly in relay box, i dont have an expansion module....
The SVGA cable is the one that was bundled with the RA, all other commands work fine through the app and portal. I will have to try get my hands on a new SVGA cable (Im in IT so will chat to my suppliers) but i did inspect the pins before i connected it and all looked fine :(

Since I shut down my old tank and kept my RA in storage for a few months, it has just been doing strange things :/
Attachments
Homescreen.ino
(3.81 KiB) Downloaded 375 times
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Feeding Mode not triggering Vortech

Post by lnevo »

Ok, I don't see anything that stands out in your code. But let's try a few things.

1) water change mode - dies everything shut off properly as expected?

2) can you rerun the feeding mode test and check the r99 output from head unit. ROFF should not be 255 during feeding mode.

3) Remove RA from your computer and re-install fresh. Re-initialize controller with the memory initialization sketch. Then use the wizard and regenerate a new code. It doesn't look like you have anything too advanced in there that we can't re-merge later. Test again.
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

lnevo wrote:Ok, I don't see anything that stands out in your code. But let's try a few things.

1) water change mode - dies everything shut off properly as expected?

2) can you rerun the feeding mode test and check the r99 output from head unit. ROFF should not be 255 during feeding mode.

3) Remove RA from your computer and re-install fresh. Re-initialize controller with the memory initialization sketch. Then use the wizard and regenerate a new code. It doesn't look like you have anything too advanced in there that we can't re-merge later. Test again.
Thanks for the reply,

1) I actually never use WC mode, lol. Usually just turn stuff off manually

2) Will do after work and post the results :)

3) I will do that if all else fails - trying to avoid resetting up :(
Image
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

Haven't forgotten about this. Just haven't had the time yet

Will hopefully get round to it this week
Image
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

I've been trying to get the XML data but the pump WILL NOT go into feed mode at all :(

Looks like I'm gonna have to initialize the controller :(
Image
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

Hi guys,

I recently made some changes to my hardware config and thought that it would be an opportune time to initialise the controller to try fix this issue. (I had to revert to 1.0.7 lib because of "sketch too big" with newer libs)

So, I initialised, ran the wizard and generated my code. uploaded and all seems to work well. EXCEPT!!!! (dum dum dummmmmm)

The Vortech still has this exact same issue with feed/Water change mode. It doesnt return to full power unless I reboot the Vortech.

I also set my Tunze (Port 5) to alternate on/off every 8 min, but it doesnt seem to be working either

Please help :(

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.SetTemperatureUnit( Celsius );  // set to Celsius Temperature

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port5Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port5Bit | Port6Bit | Port7Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port4Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;


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

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

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

void loop()
{
    ReefAngel.DayLights( Port1 );
    ReefAngel.DayLights( Port2 );
    ReefAngel.DayLights( Port3 );
    ReefAngel.StandardHeater( Port4 );
    ReefAngel.Wavemaker1( Port5 );
    ReefAngel.PWM.SetActinic( MoonPhase() );
    ReefAngel.RF.UseMemory = true;
    ////// Place your custom code below here
    

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

    // This should always be the last line
    ReefAngel.Portal( "poiromaniax" );
    ReefAngel.ShowInterface();
}

void DrawCustomMain()
{
    int x,y;
    char text[10];
    // Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params,
    ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
    pingSerial();

    // pH Expansion
    ReefAngel.LCD.DrawText( COLOR_MEDIUMSEAGREEN,DefaultBGColor,15,66, "PHE:" );
    ReefAngel.LCD.DrawSingleMonitor( ReefAngel.Params.PHExp,COLOR_MEDIUMSEAGREEN,39,66, 100 );    
    pingSerial();

    // Main Relay Box
    byte TempRelay = ReefAngel.Relay.RelayData;
    TempRelay &= ReefAngel.Relay.RelayMaskOff;
    TempRelay |= ReefAngel.Relay.RelayMaskOn;
    ReefAngel.LCD.DrawOutletBox( 12, 92, TempRelay );
    pingSerial();

    // Date and Time
    ReefAngel.LCD.DrawDate( 6, 122 );
    pingSerial();
}

void DrawCustomGraph()
{
}

Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Feeding Mode not triggering Vortech

Post by rimai »

It's gotta be something with the old vortech drivers.
For your Port5, did you double check the wm intervals on your phone or portal?
What happens if you hard code like this:

Code: Select all

ReefAngel.Wavemaker( Port5,60 );
Roberto.
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Feeding Mode not triggering Vortech

Post by Poiromaniax »

rimai wrote:It's gotta be something with the old vortech drivers.
For your Port5, did you double check the wm intervals on your phone or portal?
What happens if you hard code like this:

Code: Select all

ReefAngel.Wavemaker( Port5,60 );
Should I try roll back to 0.9.9?

I haven't checked the portal yet. Unfortunately the iOS app is limited at the moment so can't check from there.

I'll try from the portal and if necessary hard code it

Thanks
Image
Poiromaniax
Posts: 180
Joined: Thu Apr 05, 2012 6:20 am
Location: JHB, South Africa

Re: Feeding Mode not triggering Vortech

Post by Poiromaniax »

I changed the wave maker delay from the portal and it seems to be working.

It was set to something random like 62354?

Just the vortech issue now
Image
Post Reply