Page 1 of 1

surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 1:57 pm
by sulcata102
My tunze osmoregulator, which is connected to a kalk reactor is set to come on at 8.10 and off at 8.20. It is connected to port two of my relay box. I used the reef wizard to set it up. The problem is that when the controller reads 8.1 the tunze flips on but then one second later it when the ph read 8.11 it flips off. this will continue unless the ph can be driven lower either by the calcium reactor and/or at night. I tried to go into reef wizard and change some of the ph settings, either raise or lower it, but now every time i get to the end of the reef wizard it says there is an error and will not let me proceed. It doesn't even say what the error is. the real stick in the eye is that nothing has changed since it was set up. After all the trouble i had just getting to the point the reef wizard finally worked, or so i thought, i decided to leave my old laptop in the same spot, program wise, and not change anything. well two days later when i realized the tank is not filling and the tunze is blinking on/off i go to update and I get that error message.

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 4:45 pm
by rimai
Can we see your code?

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 6:27 pm
by sulcata102
sure. how?

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 7:41 pm
by sulcata102
#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.AddStandardMenu(); // Add Standard Menu

// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );


// Ports that are always on

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


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

void loop()
{
ReefAngel.CO2Control( Port1,795,785 );
ReefAngel.PHControl( Port2,820,810 );
ReefAngel.StandardLights( Port3,8,0,21,0 );
ReefAngel.StandardLights( Port4,9,0,19,0 );
ReefAngel.Relay.DelayedOn( Port5,240 );
ReefAngel.DosingPumpRepeat( Port6,0,60,120 );
ReefAngel.StandardHeater( Port7,785,796 );
ReefAngel.Relay.DelayedOn( Port8,10 );
////// Place your custom code below here


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

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

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 7:42 pm
by sulcata102
it will not let me copy paste the error code though. any ideas?

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 7:49 pm
by sulcata102
it says that it automatically added: watchdog timer and version menu.
also seems like....

c:/Documents and settings/terri dedrick/my documents/arduino/libraries/ds1307rtc/ds1307rtc.cpp:94:error: 'class Twowire' has no member name 'write'
c:/Documents and settings/terri dedrick/my documents/arduino/libraries/ds1307rtc/ds1307rtc.cpp:94:error: 'class Twowire' has no member name 'read'

those two messages like 40 times

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 9:25 pm
by rimai
It looks like you got old libraries somehow.....
Please uninstall the Reef Angel Installer.
Then, rename or delete the folder "Documents\Arduino"
Install the Reef Angel Installer again.
That should bring back the libraries to most updated version.

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 01, 2013 9:26 pm
by rimai
For your pH problem, try this:

Code: Select all

ReefAngel.PHControl( Port2,810,820 );

Re: surging or rapid on/off of kalk reactor

Posted: Wed Jan 02, 2013 8:51 pm
by sulcata102
ok, i'll try it, thanks.

Re: surging or rapid on/off of kalk reactor

Posted: Fri Jan 11, 2013 8:31 pm
by sulcata102
my computer locked up the other day before i got a chance to do as you suggested. I just got it working good again. So i uninstalled the reef angel and reinstalled it. it is giving me the same error code again. do you know any way i an copy/paste the error message? i would like to post it, so you can see.

Re: surging or rapid on/off of kalk reactor

Posted: Sat Jan 12, 2013 10:33 am
by rimai
You can copy the error by selecting the error in red and then using the keyboard shortcut CTRL+C

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 15, 2013 10:58 pm
by sulcata102
System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM4
Using Programmer : arduino
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x64

avrdude done. Thank you.

Re: surging or rapid on/off of kalk reactor

Posted: Tue Jan 15, 2013 11:31 pm
by rimai
Please check if you have the correct board under menu Tools->Board and also the correct serial port under menu Tools->Serial Port

Re: surging or rapid on/off of kalk reactor

Posted: Sat Jan 19, 2013 10:29 am
by sulcata102
I tried both com ports and i tried both the reef angel board and the reef angel with optiboot(not sure what that is) no options worked. I know I don't have the plus so i didn't bother with that one. still get error code:
System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: 0 [30]
avrdude: stk500_getsync(): not in sync: resp=0x30

avrdude done. Thank you.

Re: surging or rapid on/off of kalk reactor

Posted: Sat Jan 19, 2013 10:52 am
by rimai
Did anything change from the last time you were able to upload your code?