Time to see if this LED driver can control the brightness of the LED with PWM from an Arduino.
Good morning all…
Youtuber, shed dweller, solar charge controller aficionado
This site uses Akismet to reduce spam. Learn how your comment data is processed.
If used for mood lighting, maybe leave all the electronics out on the beautiful workbench so she could see all the hard work that went into creating a romantic atmosphere.
Thanks for sharing this video. Does this mechanism work with LED using non dimmable driver?
Julian, thanks. Did you ever find a better LED driver with a PWM input pin?I have the same requirements for controlling flash rate from an Arduino or Raspberry. Thanks. You must be a solar home I'm guessing. I'm just 60Hz AC power.
your boost inverter is too bad quality china chit for this job
Hi, thanks for the video , can i control 30pcs uv led 3W 405nm using this setup?
Julian, first thanks for doing the videos! Super helpful!
Quick question: why is it not possible to simply use a P-channel MOSFET?
I've watched the section about the Optoisolator multiple times, but I'm still trying to understand…
Thanks!
can you please give name and link of devices u used to do this project ?
Would it be possible to control the brightness by using a pwm dc motor controller? I know it works on small leds. Great channel you have here by the way! You have inspired me to build my own 10w led flashlight, when all my parcels get here from China it will be like Christmas again 😉
You need logarithmic change of PWM in order to make it right.
Awesome !
Hi Julian,
Thanks for your post- I've found it very interesting, along with everything else on your channel!
I've tried the same project with exactly the same driver, but using a 12watt Cree LED. As you expertienced I found that the dimmer switched off completely at low settings and at high settings the LED pulses at around 2Hz. Do you have any ideas on how this could be fixed?
Many thanks, Dom
I love the way your projects are laid out on wood like that.
Why don't you use the DCOI instead of the driver?
Hi Julian,
the reason for your strange behaviour is the way the PWM input is wired up internally. When the voltage is too high, the LED in the optocoupler is turned permanently off, so the power LED is on permanently.
Here's the Arduino code for PWM control. Pot is on analog A0, PWM output is on digital output D3.
void setup() {
pinMode (3,OUTPUT);
}
void loop() {
int sensorValue = analogRead(A0);
analogWrite (3,sensorValue/4);
}