aliyesami Posted December 29, 2013 Share Posted December 29, 2013 I read the meanwell ldd specs and I understand that to dim it I need to supply 0-5V varying duty cycle signal of frequency between 100Hz ~ 1Khz . but I am not finding any answer on how to do this with arduino, I found posts where people were dimming leds by using the analogWrite(pin,dutycycle) function but this function doesn't give me what freq signal I will get. so how can I use arduino to dim these drivers ? thanks Link to comment
SpencerShepard Posted December 29, 2013 Share Posted December 29, 2013 Arduino boards output PWM within that frequency range with analogWrite(). Assuming you're using a 5V board, all you need to do is analogWrite(pin, value); where value is your LED output from 0-255. Link to comment
aliyesami Posted December 29, 2013 Author Share Posted December 29, 2013 thanks Genix! how do I connect the PWM pin on arduino to the dimming inputs as they have no polarity ? on dimmer both wires are white , so one I have to connect to ground and one to the PWM pin on arduino I think. Link to comment
SpencerShepard Posted December 30, 2013 Share Posted December 30, 2013 <p>According to the datasheet there should only be one white lead on the driver for PWM control. So your PWM arduino pin connected to the white lead. You'll have to connect the ground between the driver and arduino as well. </p> <p> </p> <p>If you have two white leads, maybe this driver has been aftermarket wired by someone. Check the pinout on the datasheet to see what's what: <a href="http://www.meanwell.com/search/LDD-H/LDD-H-spec.pdf">LDD datasheet</a></p> Link to comment
aliyesami Posted January 11, 2014 Author Share Posted January 11, 2014 Thanks everyone for your valuable help. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.