RF Expansion Module
Re: RF Expansion Module
Yes, the RF module blinking blue/green means that it is waiting for your slave drivers to connect.
It will enter into that mode even if you have no drivers to connect.
It will enter into that mode even if you have no drivers to connect.
Roberto.
Re: RF Expansion Module
Any thoughts on why mine just turns green and stays green when I run the vortechsetup example code? The light turns green and the display says assigning slaves, if I click the knob I get the done message but the votechs don't reset and stay in pairing mode. I moved the controllers within 2 ft of the RF module and it's nothing but carpet and plywood subfloor between them so that should not be an issue. One other thing I noticed is that when I tried to reset the vortechs for standalone use, they would not pair with each other until I unplugged the RF module. This makes be believe that they are indeed recieving a signal and that the RF module was somehow blocking the pairing between my vortech controllers.
Re: RF Expansion Module
You said it blinks blue/green.
It should only turn green, when you press the joystick. Green means constant mode.
It should only turn green, when you press the joystick. Green means constant mode.
Roberto.
Re: RF Expansion Module
Mine is not blinking blue/green. It just comes on green and stays green.
Re: RF Expansion Module
If you plug the RF into your computer usb, does it light up any color?
Roberto.
Re: RF Expansion Module
It briefly flashes red, then goes off.
Re: RF Expansion Module
I tried a different cable and got the same results.
Re: RF Expansion Module
That's what it is supposed to do...
Let me see if I'm in the same page.
You uploaded VortechSetup and the screen says "Assigning Slaves", right?
The RF module at this point is supposed to be flashing blue/green, but you are saying that yours just stay solid green, is that correct?
Let me see if I'm in the same page.
You uploaded VortechSetup and the screen says "Assigning Slaves", right?
The RF module at this point is supposed to be flashing blue/green, but you are saying that yours just stay solid green, is that correct?
Roberto.
Re: RF Expansion Module
What happens when you load this code?
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>
//#define Constant 0
//#define Random1 1 // Lagoonal
//#define Random2 2 // Reef Crest
//#define ShortWave 3
//#define LongWave 4
//#define Smart_NTM 5 // Nutrient Transport Mode
//#define Smart_TSM 6 // Tidal Swell Mode
//#define Feeding_Start 7
//#define Feeding_Stop 8
//#define Night 9
//#define Slave_Start 97
//#define Slave_Stop 98
//#define None 99
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.LCD.DrawText(0,255,20,50,"Assigning Slaves");
ReefAngel.RF.SetMode(Slave_Start,0,0);
InternalMemory.RFMode_write(3);
InternalMemory.RFSpeed_write(50);
InternalMemory.RFDuration_write(10);
}
void loop()
{
ReefAngel.Refresh();
if (ReefAngel.Joystick.IsButtonPressed())
{
ReefAngel.RF.SetMode(Slave_Stop,0,0);
ReefAngel.LCD.DrawText(0,255,50,60,"Done");
}
}
Roberto.
Re: RF Expansion Module
That time the light just turned blue and stays blue. Even after clicking the knob and re-uploading the code generated by running the wizard it stays blue.
Re: RF Expansion Module
What about this one:
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>
//#define Constant 0
//#define Random1 1 // Lagoonal
//#define Random2 2 // Reef Crest
//#define ShortWave 3
//#define LongWave 4
//#define Smart_NTM 5 // Nutrient Transport Mode
//#define Smart_TSM 6 // Tidal Swell Mode
//#define Feeding_Start 7
//#define Feeding_Stop 8
//#define Night 9
//#define Slave_Start 97
//#define Slave_Stop 98
//#define None 99
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.LCD.DrawText(0,255,20,50,"Assigning Slaves");
ReefAngel.RF.SetMode(Slave_Start,0,0);
InternalMemory.RFMode_write(97);
InternalMemory.RFSpeed_write(50);
InternalMemory.RFDuration_write(10);
}
void loop()
{
ReefAngel.Refresh();
if (ReefAngel.Joystick.IsButtonPressed())
{
ReefAngel.RF.SetMode(Slave_Stop,0,0);
ReefAngel.LCD.DrawText(0,255,50,60,"Done");
}
}
Roberto.
Re: RF Expansion Module
Now the light is off altogether.
Re: RF Expansion Module
Try this:
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>
//#define Constant 0
//#define Random1 1 // Lagoonal
//#define Random2 2 // Reef Crest
//#define ShortWave 3
//#define LongWave 4
//#define Smart_NTM 5 // Nutrient Transport Mode
//#define Smart_TSM 6 // Tidal Swell Mode
//#define Feeding_Start 7
//#define Feeding_Stop 8
//#define Night 9
//#define Slave_Start 97
//#define Slave_Stop 98
//#define None 99
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.LCD.DrawText(0,255,20,50,"Assigning Slaves");
ReefAngel.RF.SendData(Slave_Start,0,0);
ReefAngel.RF.UseMemory=false;
InternalMemory.RFMode_write(0);
InternalMemory.RFSpeed_write(128);
InternalMemory.RFDuration_write(10);
}
void loop()
{
ReefAngel.Refresh();
if (ReefAngel.Joystick.IsButtonPressed())
{
ReefAngel.RF.UseMemory=true;
ReefAngel.RF.SendData(Slave_Stop,0,0);
ReefAngel.LCD.DrawText(0,255,50,60,"Done");
}
}
Roberto.
Re: RF Expansion Module
We have sycronization! Thanks Roberto!
Re: RF Expansion Module
Great!!!
Thanks for informing me about this issue.
Libs 1.0.3 had a slight change on how the modes were handled.
I need to update the VortechSetup code to this one now.
Thanks for informing me about this issue.
Libs 1.0.3 had a slight change on how the modes were handled.
I need to update the VortechSetup code to this one now.
Roberto.
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: RF Expansion Module
Stupid question...
If the night mode issue fixed on the RF module?
I want to define different modes based on time...but the logic is backwards....I want to define modes based on get.actinic values throughout the day...
not sure how to pull this off....
If the night mode issue fixed on the RF module?
I want to define different modes based on time...but the logic is backwards....I want to define modes based on get.actinic values throughout the day...
not sure how to pull this off....
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: RF Expansion Module
coming out of night mode has been fixed?
Re: RF Expansion Module
To come out of night mode, you must send a command.
You need to send Night_Stop or Feeding_Stop. They are the same thing... lol
lnevo is controlling his pumps according to the tidal info on top of parabola to go into night mode
You need to send Night_Stop or Feeding_Stop. They are the same thing... lol
lnevo is controlling his pumps according to the tidal info on top of parabola to go into night mode
Roberto.
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: RF Expansion Module
I like his tidal code. I just like to be in control of my tanks time. Lol. Not based on lat/long. I guess I'll just do if else if else. The else would be the feed_stop correct?
RF Expansion Module
You can take a look at my code. I track previous modes. If previous mode is Night, i flip feeding stop and then set the mode. I only do this if I'm not in reefcrest mode since that mode I'm overriding with mu custom.
But yeah, you can scratch the night mode and just set speed with the slope or parabola. I'm using slope to transition to my night speed.
Roberto, any chance we can get Custom added to the drop down on the portal?
But yeah, you can scratch the night mode and just set speed with the slope or parabola. I'm using slope to transition to my night speed.
Roberto, any chance we can get Custom added to the drop down on the portal?
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: RF Expansion Module
What kind of flow do you experience with your tide.h set up? Random? Variable bc of the moon? Is it more constant from the MPs and the speed increases? I enjoy more of an alternating current instead of full blast on.
RF Expansion Module
I'm waiting till I have some more long term graphing to post some charts and my night mode speed is taking away from the view...need to find a better way to show it..I may declare a Tide class just to use for the charting
Actual results of RFS
http://forum.reefangel.com/status/chart ... filter=rfs
Result of tide.CalcSpeed() you can see the shift that happens for night mode. Try and shift it back up and you'll see how high and low tide get formed.
http://forum.reefangel.com/status/chart ... &filter=c4
Ebb/Flood result of isIncoming()
http://forum.reefangel.com/status/chart ... &filter=c6
The way the tide class works is this...
a cosine wave represents the lunar pull in the ocean. So the difference between high tide and low tide is greater at new moon and full moon and less during quarter moons. So a cosine curve represents this nicely,
The tide class gets set to a speed. The arguments to unit represent the minimum gap and maximum gap between high and low tide. This gap gets adjusted based on the moon phase curve and applied to the speed that you set the tide class to.
I also track (now working properly) the direction of the current and you can get that as a true false from isIncoming() and I set which pump to set faster, the other gets multiplied by a percentage.
The CalcTide() function returns the speed based on the parameters discussed above. You could also adjust the wavelength (default is 12 hours) if you want more or less high and low tides. If you used this output directly you would get a smooth transition.
I pass the output to Roberto's ReefCrestMode function and it adds a bunch of randomness to the output. The randomness though is still shaped by the tides and of course the flow direction based on the shifting current.
You could just as easily do more complex functions or pass them to the tunze functions or your own pwm slope / parabola. The main point for me is that base speed is set in memory and everything is variable based on what is entered.
Here's my relevant code to give you a better idea how I'm doing everything...
Actual results of RFS
http://forum.reefangel.com/status/chart ... filter=rfs
Result of tide.CalcSpeed() you can see the shift that happens for night mode. Try and shift it back up and you'll see how high and low tide get formed.
http://forum.reefangel.com/status/chart ... &filter=c4
Ebb/Flood result of isIncoming()
http://forum.reefangel.com/status/chart ... &filter=c6
The way the tide class works is this...
a cosine wave represents the lunar pull in the ocean. So the difference between high tide and low tide is greater at new moon and full moon and less during quarter moons. So a cosine curve represents this nicely,
The tide class gets set to a speed. The arguments to unit represent the minimum gap and maximum gap between high and low tide. This gap gets adjusted based on the moon phase curve and applied to the speed that you set the tide class to.
I also track (now working properly) the direction of the current and you can get that as a true false from isIncoming() and I set which pump to set faster, the other gets multiplied by a percentage.
The CalcTide() function returns the speed based on the parameters discussed above. You could also adjust the wavelength (default is 12 hours) if you want more or less high and low tides. If you used this output directly you would get a smooth transition.
I pass the output to Roberto's ReefCrestMode function and it adds a bunch of randomness to the output. The randomness though is still shaped by the tides and of course the flow direction based on the shifting current.
You could just as easily do more complex functions or pass them to the tunze functions or your own pwm slope / parabola. The main point for me is that base speed is set in memory and everything is variable based on what is entered.
Here's my relevant code to give you a better idea how I'm doing everything...
Code: Select all
Tide tide;
Tide.Init(vtSpeed, 10, 30);
// Night Mode
tideSpeed=PWMSlope(sl.GetRiseHour()-1,sl.GetRiseMinute(),sl.GetSetHour()+1,sl.GetSetMinute(),vtNightSpeed,vtSpeed,60,vtNightSpeed);
// Set tide classes to desired speed
tide.SetSpeed(tideSpeed);
Int rcSpeed=ReefCrestMode(tide.CalcTide());
ReefAngel.RF.SetMode(Custom,rcSpeed*tideDiff,1-tide.isIncoming());
ReefAngel.RF.SetMode(Custom,rcSpeed,tide.isIncoming());
RF Expansion Module
This chart shows the effect of MoonPhase over the course of the month.
http://forum.reefangel.com/download/file.php?id=632
http://forum.reefangel.com/download/file.php?id=632
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: RF Expansion Module
Graphs look good! Maybe a short video of how it looks in your tank.
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: RF Expansion Module
Also if we could contain a max speed value that would be nice. My two MP10s could and might rip my tank apart lol. IF unregulated.
RF Expansion Module
Max speed for the tide class would be speed+(maxOffset/2)
For roberto's ReefCrestMode its speed +/- 20. I changed it to 10 for my needs.
I set my day speed to 45 and night at 25.
Pump 2 offset is .6 i think.
I hear the ripping apart...2 mp40 on a 65
For roberto's ReefCrestMode its speed +/- 20. I changed it to 10 for my needs.
I set my day speed to 45 and night at 25.
Pump 2 offset is .6 i think.
I hear the ripping apart...2 mp40 on a 65