diy leds to RA*

Basic / Standard Reef Angel hardware

Posts: 95
Joined: Wed Sep 02, 2015 4:39 pm
PostPosted: Tue Feb 27, 2018 9:05 pm
I connected my leds to the dimming port of the star but they will not respond to dimming. i checked and im getting 5 volts to the driver going in the dimming inputs. Any ideas

my code from the web wizard

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
ReefAngel.FeedingModePortsE[0] = Port1Bit | Port3Bit | Port5Bit;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = Port1Bit | Port3Bit | Port5Bit;
ReefAngel.WaterChangePortsE[1] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port2Bit | Port4Bit;
ReefAngel.OverheatShutoffPortsE[1] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = 0;
ReefAngel.LightsOnPortsE[1] = 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( 800 );

// Ports that are always on
ReefAngel.Relay.On( Box1_Port1 );
ReefAngel.Relay.On( Box1_Port7 );
ReefAngel.Relay.On( Box1_Port8 );

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


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

void loop()
{
ReefAngel.StandardHeater( T1_PROBE,Box1_Port2,750,770 );
ReefAngel.SingleATO( true,Box1_Port3,120,0 );
ReefAngel.StandardLights( Box1_Port4,10,0,22,0 );
ReefAngel.Relay.DelayedOn( Box1_Port5,2 );
ReefAngel.StandardLights( Box1_Port6,6,0,12,0 );
ReefAngel.PWM.SetDaylight( PWMSlope( 13,0,21,0,5,70,100,0 ) );
ReefAngel.PWM.SetActinic( PWMSlope( 10,0,21,0,10,100,100,0 ) );
ReefAngel.PWM.SetDaylight2( PWMSlope( 13,0,21,0,5,70,100,0 ) );
ReefAngel.PWM.SetActinic2( PWMSlope( 10,0,21,0,10,100,100,0 ) );

boolean buzzer=false;
if ( ReefAngel.isATOTimeOut() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

////// Place your custom code below here


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

ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX1+GGNHNdCwVcHPfkCqY6YdqeXBCpjNczyo=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_ACTINIC=Actinic
// RA_LABEL LABEL_ACTINIC2=Actinic 2
// RA_LABEL LABEL_DAYLIGHT=Daylight
// RA_LABEL LABEL_DAYLIGHT2=Daylight 2
// RA_LABEL LABEL_PORT11=Return
// RA_LABEL LABEL_PORT12=Heater
// RA_LABEL LABEL_PORT13=ATO
// RA_LABEL LABEL_PORT14=ReefBrites
// RA_LABEL LABEL_PORT15=Skimmer
// RA_LABEL LABEL_PORT16=Scrubber light
// RA_LABEL LABEL_PORT17=Port 7
// RA_LABEL LABEL_PORT18=Port 8
// RA_LABEL LABEL_PORT21=Port 21
// RA_LABEL LABEL_PORT22=Port 22
// RA_LABEL LABEL_PORT23=Port 23
// RA_LABEL LABEL_PORT24=Port 24
// RA_LABEL LABEL_PORT25=Port 25
// RA_LABEL LABEL_PORT26=Port 26
// RA_LABEL LABEL_PORT27=Port 27
// RA_LABEL LABEL_PORT28=Port 28
Image

Posts: 12310
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Feb 28, 2018 12:40 am
If you are getting the correct dimming signal to the driver, it probably has nothing to do with the code.
It's got to be something on the driver or the wiring.
Roberto.

Return to Standard

Who is online

Users browsing this forum: No registered users and 4 guests