PWm ports bad?

Basic / Standard Reef Angel hardware
Post Reply
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

PWm ports bad?

Post 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();
}

150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWm ports bad?

Post 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.
Roberto.
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post by saltwaternoob »

The ports have never been used, it is an older box, bought around 2009. Dont see any revision date.

Image
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWm ports bad?

Post 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.
Roberto.
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post 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
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWm ports bad?

Post by rimai »

Depends on your driver.
Which driver are you using?
Roberto.
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post by saltwaternoob »

eln 60 48p
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWm ports bad?

Post 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
Roberto.
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post by saltwaternoob »

I can try that, do i just wire the 2 sets of pins together?
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post by saltwaternoob »

I have said it before but you have the best customer service!!!
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: PWm ports bad?

Post 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.
Roberto.
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post by saltwaternoob »

Thanks i was just reading that
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
saltwaternoob
Posts: 18
Joined: Mon May 23, 2011 9:39 am

Re: PWm ports bad?

Post 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.
150g 1" Acrylic Reef 48x32x24

24g picasso clown tank
Post Reply