Help with RF and temp probe

Expansion modules and attachments
Post Reply
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Help with RF and temp probe

Post by lucho »

Hi, I have a problem with one of my temperature probes. It is showing 185 and stuck there. I tried moving it to another slot, taking it out of the tank, and nothing. I have 2 temp probes connected and the other one works well.

I also have a problem with the RF expansion. I am not able to connect with the slaves. When I run the wortechsetup program the RF module light stays at solid green. The pumps do not seem to find the RF. I tried using the code I generated (which has the RF working at short pulse) and the light in that case stays solid blue. Can I get some help?

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

Re: Help with RF and temp probe

Post by rimai »

Sorry, I need to update the example codes on the next patch of libraries.
The VortechSetup is outdated.
Please use the one in this thread:
http://forum.reefangel.com/viewtopic.php?p=19086#p19086
If it is showing 185, the probe has gone bad. One of the wires is not properly connected. Can you inspect the connector?
Roberto.
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: Help with RF and temp probe

Post by lucho »

great, that seems to work to synchronize. Now when I upload my code I don't see it applying the short pulse to the pumps. Here is the code I am using

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 <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.OverheatShutoffPorts = Port1Bit | Port2Bit | Port4Bit | Port6Bit | Port7Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T2_PROBE;
    ReefAngel.OverheatProbe = T2_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 850 );


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

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

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

void loop()
{
    ReefAngel.StandardLights( Port1,10,0,22,0 );
    ReefAngel.StandardLights( Port2,12,0,20,0 );
    ReefAngel.StandardLights( Port3,11,0,21,0 );
    ReefAngel.StandardLights( Port4,21,0,11,0 );
    ReefAngel.StandardHeater( Port6,751,761 );
    ReefAngel.WaterLevelATO(Port5,300,45,50);
    ReefAngel.RF.UseMemory = false;
    ReefAngel.RF.SetMode( ShortPulse,80,10 );
    ////// Place your custom code below here
    

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

    // This should always be the last line
}

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();

    // Water Level
    ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,66, "WL:" );
    ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,66, ReefAngel.WaterLevel.GetLevel() );
    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()
{
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Help with RF and temp probe

Post by rimai »

Code looks good.
Does it show blue color on the module?
If it does, maybe the sync didn't work.
Roberto.
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: Help with RF and temp probe

Post by lucho »

Yes, it does. I will try again tomorrow.

I also need to replace the serial cable that connects the relay box to the controller. Is this a straight through BD9 serial cable?

thanks Roberto!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Help with RF and temp probe

Post by rimai »

It's actually svga.
Roberto.
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: Help with RF and temp probe

Post by lucho »

Roberto, I am still having problems synching the pumps and then loading my code. The pumps seem to synch when I use the setup file (at least they all blink blue and yellow, and when I press the joystick the pumps go white and the RF module's light turns green). The problem is when I upload the code above. The RF light goes blue again, and the pumps stay white.
What can I do, I tried this 3 times already. thanks
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Help with RF and temp probe

Post by rimai »

Is it not doing short pulse, is that what you are saying?
The pumps can only be 3 colors: white (sync), orange (anti-sync) and blue (back-of-tank). If you need more info on slave modes, please refer to the Ecotech manual.
So, white means it is working as sync mode.
If you press mode button, does it turn orange?
Roberto.
Post Reply