Page 1 of 1

PWm ports bad?

Posted: Fri Dec 06, 2013 7:11 pm
by saltwaternoob
OK so i am not the best at this but i tested my leds using a AA battery( to jump the dimming wires) and they come on just fine. I tested the ports for the daylight pwm using a voltmeter and got nothing, so did i turn it off some how in the code? Also dont know if it matters but ports 1 and 2 on the relay box are dead.

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 <Humidity.h>
#include <DCPump.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 = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port6Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );


    // Ports that are always on

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

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

void loop()
{
    ReefAngel.MHLights( Port3,11,0,16,30,6 );
    ReefAngel.MHLights( Port4,2,30,19,30,5 );
    ReefAngel.StandardFan( Port5,771,781 );
    ReefAngel.StandardLights( Port6,9,0,21,0 );
    ReefAngel.StandardHeater( Port7,770,780 );
    ReefAngel.StandardLights( Port8,20,30,9,0 );
    ReefAngel.PWM.SetDaylight( PWMParabola(9,0,21,30,20,100,20) );
    ////// Place your custom code below here
    

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

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


Re: PWm ports bad?

Posted: Fri Dec 06, 2013 9:58 pm
by rimai
Have you ever used the dimming ports?
They required a PWM booster in the past and it seems you have one of the older model relay box.
We may be able to get you going depending on which revision you have.
Can you open the box and check which revision you have? If not shown, take a photo.

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:18 pm
by saltwaternoob
The ports have never been used, it is an older box, bought around 2009. Dont see any revision date.

Image

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:22 pm
by rimai
Good.
Are you planning on using 0-5V or 0-10V?
Do you see that 6-pin header close to the dimming ports?
If 0-5V, all we need is 2 jumpers.
If 0-10V, we need to add a PWM booster to your box.
I can sell you a PWM booster if you need one. Send me a PM.

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:28 pm
by saltwaternoob
Honestly which is better i dont know? Its going to be dimming 12 x 3w crees(mix of blues and white) I just wanted a sunrise/sunset

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:29 pm
by rimai
Depends on your driver.
Which driver are you using?

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:30 pm
by saltwaternoob
eln 60 48p

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:34 pm
by rimai
Ok, it uses 0-10V, but it would also work at 0-5V, but at 50% of maximum capacity.
Why don't you try it 0-5V and see if it is enough.
If it is just for 12 leds, I think you would be fine.
You will need 2 jumpers.
http://i761.photobucket.com/albums/xx25 ... 184108.jpg

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:39 pm
by saltwaternoob
I can try that, do i just wire the 2 sets of pins together?

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:41 pm
by saltwaternoob
I have said it before but you have the best customer service!!!

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:53 pm
by rimai
It's best to use jumpers instead of wires.
http://en.wikipedia.org/wiki/Jumper_(computing)
You can find them at radioshack for penies or in old computer boards.

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 10:55 pm
by saltwaternoob
Thanks i was just reading that

Re: PWm ports bad?

Posted: Fri Dec 06, 2013 11:22 pm
by saltwaternoob
Found some jumpers on the old computer, works awesome thanks. I am going to pm you to get a price on the booster, but at least it is working.