Wave maker and dosing?
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Wave maker and dosing?
Can I use both? The main relay page on RAGen does not seem to allow it.
Also when I use the Reef angel wizard, I go through the whole process, generate, upload and it says, successful but then it's not there on the controller
Thanks
Also when I use the Reef angel wizard, I go through the whole process, generate, upload and it says, successful but then it's not there on the controller
Thanks
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Wave maker and dosing?
Yes, you can use both at the same time. This ability has only been recently updated (within the last 2-3 releases) with the libraries and RAGen hasn't had it's logic updated entirely.
My suggestion would be to generate the code with RAGen and then mark Ports 5 & 6 as "Not Used". Open up your INO file inside Arduino (before uploading) and then add in the wavemaker code manually.
Of course, this route assumes you are using the Internal Memory for the settings and that the Internal Memory has been set before you upload your code file.
My suggestion would be to generate the code with RAGen and then mark Ports 5 & 6 as "Not Used". Open up your INO file inside Arduino (before uploading) and then add in the wavemaker code manually.
Code: Select all
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
First, Thank you for the quick response!
I'm pretty sure I have the code uploaded now, but for some reason port 8 is staying on. I have it set as fan/chiller with internal memories set "on 81" "off 79" and the temp is reading 74. Do you have any ideas of why that would be?
/ Autogenerated file by RAGen (v1.2.2.171), (05/20/2012 14:35)
// RA_052012_1435.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayLEDPWM
#define SIMPLE_MENU
*/
#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 <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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
// Specific functions that use Internal Memory values
ReefAngel.DosingPump2(Port1);
ReefAngel.DosingPump1(Port2);
ReefAngel.StandardHeater(Port3);
ReefAngel.StandardHeater(Port4);
ReefAngel.StandardLights(Port7);
ReefAngel.StandardFan(Port8);
// PWMSlope based on Internal Memory values for Standard Lights
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
////// Place your custom code below here
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
I'm pretty sure I have the code uploaded now, but for some reason port 8 is staying on. I have it set as fan/chiller with internal memories set "on 81" "off 79" and the temp is reading 74. Do you have any ideas of why that would be?
/ Autogenerated file by RAGen (v1.2.2.171), (05/20/2012 14:35)
// RA_052012_1435.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayLEDPWM
#define SIMPLE_MENU
*/
#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 <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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
// Specific functions that use Internal Memory values
ReefAngel.DosingPump2(Port1);
ReefAngel.DosingPump1(Port2);
ReefAngel.StandardHeater(Port3);
ReefAngel.StandardHeater(Port4);
ReefAngel.StandardLights(Port7);
ReefAngel.StandardFan(Port8);
// PWMSlope based on Internal Memory values for Standard Lights
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
////// Place your custom code below here
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Wave maker and dosing?
When you set the values in Internal Memory, you must add an extra 0 to them. It's the way the value is stored. So an 81 should actually be 810 which means 81.0 and 79 should actually be 790 which is 79.0. Make sure the value stored for the ON and OFF temps has the extra 0 after it. That will most likely fix your problem.I have it set as fan/chiller with internal memories set "on 81" "off 79" and the temp is reading 74
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
When I set values there is a drop down menu with temps there already.
I'm using 0.9.6 version for library
I'm not not even certain I have uploaded anything to the controller for sure.
When I'm in RAGen on controller tab and hit "generate" , nothing happens. Should it automatically launch arduino? Under settings/launch Arduino I have selected, prompt after generate. But to the right of the box it says "MISSING"
Does that mean anything.
I'm using 0.9.6 version for library
I'm not not even certain I have uploaded anything to the controller for sure.
When I'm in RAGen on controller tab and hit "generate" , nothing happens. Should it automatically launch arduino? Under settings/launch Arduino I have selected, prompt after generate. But to the right of the box it says "MISSING"
Does that mean anything.
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Wave maker and dosing?
Correct. When you hit Generate, it will generate the file to be loaded. The file is located in Documents\Arduino\RA_DATETIME folder. The exact name will be in the status bar. Then you will have to launch Arduino.bbaz123456 wrote:When I set values there is a drop down menu with temps there already.
I'm using 0.9.6 version for library
I'm not not even certain I have uploaded anything to the controller for sure.
When I'm in RAGen on controller tab and hit "generate" , nothing happens. Should it automatically launch arduino? Under settings/launch Arduino I have selected, prompt after generate. But to the right of the box it says "MISSING"
Does that mean anything.
If it cannot find Arduino (it shows MISSING), that means that the Reef Angel Arduino program is not installed in the C:\Program Files\Reef Angel Controller\ folder location.
You can still use the code, it's just that RAGen cannot automatically launch Arduino for you.
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
ok that's what I've been doing. But I'm still not even sure if it is being uploaded. No matter what I do with it I don't get any different response out of the controller.
Ports 3 and 8 (heater and chiller) are always on, no matter the temp.
I'm not sure if it is in the code or just not connected properly? A few times after uploading the relays would chatter 10-15 times then the screen would go blank....
Once again, Thanks and sorry for being a pain in your @##
// Autogenerated file by RAGen (v1.2.2.171), (05/20/2012 17:09)
// RA_052012_1709.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayLEDPWM
#define CUSTOM_MENU
#define CUSTOM_MENU_ENTRIES 6
*/
#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 <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
#include <avr/pgmspace.h>
prog_char menu0_label[] PROGMEM = "Item 1";
prog_char menu1_label[] PROGMEM = "Item 2";
prog_char menu2_label[] PROGMEM = "Item 3";
prog_char menu3_label[] PROGMEM = "Item 4";
prog_char menu4_label[] PROGMEM = "Item 5";
prog_char menu5_label[] PROGMEM = "Item 6";
PROGMEM const char *menu_items[] = {
menu0_label, menu1_label, menu2_label, menu3_label, menu4_label, menu5_label };
void MenuEntry1()
{
ReefAngel.DisplayMenuEntry("Item 1");
}
void MenuEntry2()
{
ReefAngel.DisplayMenuEntry("Item 2");
}
void MenuEntry3()
{
ReefAngel.DisplayMenuEntry("Item 3");
}
void MenuEntry4()
{
ReefAngel.DisplayMenuEntry("Item 4");
}
void MenuEntry5()
{
ReefAngel.DisplayMenuEntry("Item 5");
}
void MenuEntry6()
{
ReefAngel.DisplayMenuEntry("Item 6");
}
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Initialize the custom menu
ReefAngel.InitMenu(pgm_read_word(&(menu_items[0])),SIZE(menu_items));
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
// Specific functions that use Internal Memory values
ReefAngel.DosingPump2(Port1);
ReefAngel.DosingPump1(Port2);
ReefAngel.StandardHeater(Port3);
ReefAngel.StandardLights(Port7);
ReefAngel.StandardFan(Port8);
// PWMSlope based on Internal Memory values for Standard Lights
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
////// Place your custom code below here
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
Ports 3 and 8 (heater and chiller) are always on, no matter the temp.
I'm not sure if it is in the code or just not connected properly? A few times after uploading the relays would chatter 10-15 times then the screen would go blank....
Once again, Thanks and sorry for being a pain in your @##
// Autogenerated file by RAGen (v1.2.2.171), (05/20/2012 17:09)
// RA_052012_1709.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayLEDPWM
#define CUSTOM_MENU
#define CUSTOM_MENU_ENTRIES 6
*/
#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 <ReefAngel.h>
////// Place global variable code below here
////// Place global variable code above here
#include <avr/pgmspace.h>
prog_char menu0_label[] PROGMEM = "Item 1";
prog_char menu1_label[] PROGMEM = "Item 2";
prog_char menu2_label[] PROGMEM = "Item 3";
prog_char menu3_label[] PROGMEM = "Item 4";
prog_char menu4_label[] PROGMEM = "Item 5";
prog_char menu5_label[] PROGMEM = "Item 6";
PROGMEM const char *menu_items[] = {
menu0_label, menu1_label, menu2_label, menu3_label, menu4_label, menu5_label };
void MenuEntry1()
{
ReefAngel.DisplayMenuEntry("Item 1");
}
void MenuEntry2()
{
ReefAngel.DisplayMenuEntry("Item 2");
}
void MenuEntry3()
{
ReefAngel.DisplayMenuEntry("Item 3");
}
void MenuEntry4()
{
ReefAngel.DisplayMenuEntry("Item 4");
}
void MenuEntry5()
{
ReefAngel.DisplayMenuEntry("Item 5");
}
void MenuEntry6()
{
ReefAngel.DisplayMenuEntry("Item 6");
}
void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Initialize the custom menu
ReefAngel.InitMenu(pgm_read_word(&(menu_items[0])),SIZE(menu_items));
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
// Specific functions that use Internal Memory values
ReefAngel.DosingPump2(Port1);
ReefAngel.DosingPump1(Port2);
ReefAngel.StandardHeater(Port3);
ReefAngel.StandardLights(Port7);
ReefAngel.StandardFan(Port8);
// PWMSlope based on Internal Memory values for Standard Lights
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
////// Place your custom code below here
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Wave maker and dosing?
After you hit the upload button, do you see the controller blinking the status LED for a few seconds?
It usually takes about 10 seconds or so of blinking.
The Arduino IDE will also display the results on red of what is going on at the bottom.
Can you copy and paste here?
It usually takes about 10 seconds or so of blinking.
The Arduino IDE will also display the results on red of what is going on at the bottom.
Can you copy and paste here?
Roberto.
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
No it does not blink. No, for some reason it will not let me copy from the bottom
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
ok now it says "did not find any usb device"
I should be able to see it connected through the start_computer menu, right?
If it means anything, the status light flashes for a few seconds when plugging or unplugging usb to the computer
I should be able to see it connected through the start_computer menu, right?
If it means anything, the status light flashes for a few seconds when plugging or unplugging usb to the computer
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Wave maker and dosing?
If you go to menu Tools->Serial Port, how many choices do you have?
Can you try a different one if you have more than one?
Can you try a different one if you have more than one?
Roberto.
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
The only choice is com5
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
I went into, device manager and can change the port # there...not sure if that would do anything?
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
Also, if i go to "find controller" it says "com5-none"
Does it matter how the 6 pin connector plugs into the controller?
Does it matter how the 6 pin connector plugs into the controller?
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Wave maker and dosing?
Ok.
If there is only one, when you remove the cable, does it get removed from Arduino menu Tools->Serial Port?
The connection on the controller has to be like this:
http://www.reefangel.com/Support.Loadin ... tings.ashx
It is in the manual too.
If there is only one, when you remove the cable, does it get removed from Arduino menu Tools->Serial Port?
The connection on the controller has to be like this:
http://www.reefangel.com/Support.Loadin ... tings.ashx
It is in the manual too.
Roberto.
-
bbaz123456
- Posts: 12
- Joined: Tue May 15, 2012 8:20 pm
Re: Wave maker and dosing?
I think I got it now. A little embarrassed to admit I think it was just the cable. I kept on going back to the "where to start guide" to make sure I had all the basics down, not the manual.
Sorry for wasting your time and thank you much for the help
Sorry for wasting your time and thank you much for the help
