Kessil Test

Do you have a question on how to do something.
Ask in here.
Post Reply
icecool2
Posts: 62
Joined: Tue Jul 19, 2011 3:12 pm

Kessil Test

Post by icecool2 »

I'm looking for a quick way to test my Kessil's functionality. I'd love to be able to do a repeating sunrise/sunset cycle that lasts 60 seconds. Is there an existing test file (I searched and didn't find one) or a quick few lines of code I can run?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Kessil Test

Post by rimai »

Try this:

Code: Select all

#include <Salinity.h>
#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 <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <ReefAngel.h>

void setup()
{
  ReefAngel.Init();  
}

void loop()
{
  ReefAngel.PWM.SetDaylight(now()%100);
  ReefAngel.PWM.SetActinic(now()%100);
  ReefAngel.ShowInterface();
}
It will go from 0 to 100% incrementing 1% every second.
Roberto.
icecool2
Posts: 62
Joined: Tue Jul 19, 2011 3:12 pm

Re: Kessil Test

Post by icecool2 »

Thank you. OK, it wasn't my code that was the problem.

I'm recalling something about a booster jumper, but not the specifics. I think I must be in an alternate mode to what I need. I was running this for PWM output previously, but now I need 0-10V. Isn't there a jumper for that?

Sorry, it's been like 4 years since I've messed with this.

EDIT: In the relay box, I have two of three jumpers installed. 1+2, 3+4 are jumpered together. 5+6 are open.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Kessil Test

Post by rimai »

This is probably an older relay box that required the booster.
If you only have jumpers, it means it is only putting out 0-5 PWM signal.
The booster will put out 0-10 PWM signal, but it won't make the conversion to analog signal, which is what you need for the kessils.
I think the best way is to either get a new relay box with analog signal or the dimming module.
I can make you a PWM booster with analog signal, but it would just end up being the same price.
Roberto.
icecool2
Posts: 62
Joined: Tue Jul 19, 2011 3:12 pm

Re: Kessil Test

Post by icecool2 »

Crud! I should have checked that before I bought the cable :)

For the price, I might just pick up the Kessil spectral controller... Crud crud crud...
Post Reply