Need help with PWM dimming LED on MeanWell Driver

Hello everyone. I am brand new to Arduino programming, and are now trying too learn how to program an Arduino Mega board. I am building an aquarium LED light. I have 2 ledgroupbuy.com Lumina 5.2 chips with MeanWell drivers. These are adjusted with a PMW signal from the Arduino board.

But i am having difficulties getting this to light properly.

This is probably a stupid question, but why won't the LED light up properly with this simple code? I have read that the analogWrite command is the only needed to light up the LED. But whatever value i put in from 0-255 it has the same level. And it is not bright at all.

I have tried the example code from the Arduino library called AnalogWrite Mega. And this dimes the LEDs up and down perfectly. But why can't i get the LED to light up when just using the analogWrite command with a fixed value?

Tried connecting 2 channels (the LED has 5 channels) and then the channel with the highest value had worked normally, but not the other!

The drivers are powered by a 48V 250W PSU and the Arduino from my laptops USB port.

Copy paste the simple code.

int led = 3;


void setup() {                
  pinMode(led, OUTPUT);     
}

void loop() {
  analogWrite(led, 50);  
}

Hi, can you post a copy of your circuit please, a CAD or picture of a hand drawn circuit in jpg, png, or pdf .
Have you got the gnd of the arduino and the gnd of the driver connected together.

Hope this helps ..

Tom....... :slight_smile:

This is the meanwell ldd driver?

Meanwell LDD drivers yes.

And i found the problem. I had not connected the ground from the Arduino board to the ground on the Coralux 6-UP board (holding all off the LDD driver). When i did this it worked perfectly. :slight_smile:

Now i can concentrate on trying to make a program for sunset and sunrise.

I'm having trouble controlling the LDD drivers with the PWM signal. I have a Mega 2560 R3, Coralux x5 board and Meanwell LDDs installed. When the pin is set to zero I get no voltage out, but when anything greater than zero is set, the voltage is 46.7. Which is what the MW SE-350-48 PS is supplying. If I check the voltage coming from pin 3 it is inline with the the value set.

I read other places that is would be a grounding issue, but I've grounded everything. Ground from Mega to the ground from PS.

Any help or guidance would be VERY helpful.

Here is picture of the setup.

Problem solved…

Maybe cautious isn't always a good thing.

I strung together 8 small LEDs and a 10K resistor. Set my brightness to 1, 2, 3, 4 on the channels, and I get 14.0, 14.2, 14.6 and 14.8 at each pin. So the LDD just needs to complete a circuit before it will work.

Better to be cautious than blow a RapidLED Aurora puck. But I already miss the 8 hours I've been trying to figure this out.

THANKS!