How to make fade effect with Mean Well LDD-H(power led)

Hello friends. Today I want to control the brightness of the power leds in the fish tank. I saw this topic in this forum but I couldn't be sure of myself so i decided to ask you. I decided to use the Mean Well LDD-350H model.
**Does this work? Can you help me? **:slight_smile:

int pwm = 3;
int a = 0;
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
for(a=0;a<255;a++)
{
analogWrite(pwm, a);
delay (1000);
}
}

What is the PWM signal going to?

Per the datasheet

if you pulse the input, the output will pulse also, that's the typical way to dim LEDs.

Will your LEDs tolerate that? Can't say. Do you have a model/datasheet for them?

CrossRoads:
What is the PWM signal going to?

Per the datasheet
https://www.meanwell.com/Upload/PDF/LDD-H-DA/LDD-H-DA-SPEC.PDF
if you pulse the input, the output will pulse also, that's the typical way to dim LEDs.

Will your LEDs tolerate that? Can't say. Do you have a model/datasheet for them?

PWM signal going to DIM.
I am currently using this to use my leds(9 led).

and my ldd-h datasheet is

Need Arduino Gnd connected to meanwell Gnd as well. I expect that would be the -Vin pin where the DC power supply Gnd is also connected.

CrossRoads:
Need Arduino Gnd connected to meanwell Gnd as well. I expect that would be the -Vin pin where the DC power supply Gnd is also connected.

Thank you. Now I connected to arduino gnd to meanwell gnd.

I currently use Arduino in my aquarium. I drive DC Motor with L298N(voltage regulator). Can I add fade effect to old system?

İf you need L298N datasheet.

Sure, just change the duty cycle of your PWM cycle.

for (x = x; x<256; x=x+1){
analogWrite (pwmPin, x);
delay (someAmount);
}

The fade effect will vary by how much you increment x each time (1, 5, 10, etc.) and the delay amount (in milliseconds).

Motor may need some minimum pulse width before it will spin.

Thank you very much for your help and information. I am much obliged. :slight_smile:

CrossRoads:
Sure, just change the duty cycle of your PWM cycle.

for (x = x; x<256; x=x+1){
analogWrite (pwmPin, x);
delay (someAmount);
}

The fade effect will vary by how much you increment x each time (1, 5, 10, etc.) and the delay amount (in milliseconds).

I want to bother you once again.
LDD-350H is a DC-DC Step down LED driver and I think I need to step up driver. I think this is more good for me.
LDH-45A-350
What is your opinion ?