surging or rapid on/off of kalk reactor

Basic / Standard Reef Angel hardware
Post Reply
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

surging or rapid on/off of kalk reactor

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: surging or rapid on/off of kalk reactor

Post by rimai »

Can we see your code?
Roberto.
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post by sulcata102 »

sure. how?
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post 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();
}
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post by sulcata102 »

it will not let me copy paste the error code though. any ideas?
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: surging or rapid on/off of kalk reactor

Post 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.
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: surging or rapid on/off of kalk reactor

Post by rimai »

For your pH problem, try this:

Code: Select all

ReefAngel.PHControl( Port2,810,820 );
Roberto.
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post by sulcata102 »

ok, i'll try it, thanks.
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: surging or rapid on/off of kalk reactor

Post by rimai »

You can copy the error by selecting the error in red and then using the keyboard shortcut CTRL+C
Roberto.
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: surging or rapid on/off of kalk reactor

Post 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
Roberto.
sulcata102
Posts: 9
Joined: Thu Dec 13, 2012 2:05 pm

Re: surging or rapid on/off of kalk reactor

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: surging or rapid on/off of kalk reactor

Post by rimai »

Did anything change from the last time you were able to upload your code?
Roberto.
Post Reply