I found a thread where someone thinks you can simply connect the vin- on the driver to the ground on the arduino to get it to work (UkReefs.com is for sale | HugeDomains). If this works the same it is simpler as it does not need the resistor. Can anyone give me some guidance on how to properly wire this up.
The resistor will hold the voltage on the PWM line low (and the LED off). I can't find it in the documentation for the driver but I suspect that the driver has an internal pullup that will keep the voltage high when the PWM input is left disconnected.
1K to 10K is fine. The 10K would be preferred because you'll drain less power from your Arduino output through it. V/R = I, so 5V / 1K = 5ma. It's only 5ma, big deal, but the 10K resistor would lower that to .5ma. Not something to lose sleep over but the 10K would be preferred.
I have never used these Meanwell drivers, but I have worked with other LED drivers.
The PWM input of those was a current source to an internal 5volt line.
A resistor to ground is not needed when Arduino drives the PWM input.
But when you turn the Arduino off, or during bootup, Arduino pins are tristated (open circuit).
Then the led drivers are fully on.
If you don't want this to happen, you have to add that resistor to ground.
In my case, 10k was always enough to turn the LED driver full off.
But the Meanwell datasheet states a maximum PWM current to ground of 1mA, and an "off" voltage of >0.8volt.
That means that ~820ohm could be needed to fully turn them off.
I guess you have to try 10k, 4k7 and 1k from PWM input to ground on the Meanwell driver.
No Arduino connected.
And see when the LEDs are full off.
Leo..