Canreef Aquatics Bulletin Board  

Go Back   Canreef Aquatics Bulletin Board > General > DIY

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2013, 04:24 PM
Vancouver Reefer's Avatar
Vancouver Reefer Vancouver Reefer is offline
Member
 
Join Date: Mar 2009
Location: Kenora, ON
Posts: 135
Vancouver Reefer is on a distinguished road
Default Meanwell LPF Series Dimming Solved

Hi All,

I had bought a pair of Meanwell LPF series drivers for my project. However i soon found out these could not be dimmed using the conventional ways used to dim the popular ELN series drivers.

After much head banging and some help from Fungus on the Arduino forum we found a solution that works great!

You can use an Arduino to output the 0-5V PWM signal and the circuit turns it into 0-10V needed for the LPF series driver.



I hope this may help some of you and prevent the pure frustration i experienced!!!


VR
__________________
View my Aquarium & Reef Controller build here:


The Ultimate DIY Aquarium Controller of the 21st Century!!!


LED's, PH, Salinity, Clock, LCD, ATO, Auto Water Changer, Variable Speed Cooling Fan Control and lots, lots more......


Reply With Quote
  #2  
Old 04-26-2013, 06:06 PM
Cjm Cjm is offline
Member
 
Join Date: Nov 2012
Location: Vancouver
Posts: 25
Cjm is on a distinguished road
Default

For those of us with minimal electronics experience, how could we achieve this?
Reply With Quote
  #3  
Old 04-26-2013, 08:08 PM
ScubaSteve ScubaSteve is offline
Member
 
Join Date: Nov 2009
Location: Vancouver
Posts: 1,591
ScubaSteve is on a distinguished road
Default

It's fairly straight forward. All you are doing in this set up is using the 0-5V PWM signal from the arduino to drive a 10V source - basically the same idea as an audio amplifier. You could easily solder this up on a proto board. Seems intimidating now but once you do it you'll see it's pretty easy. Probably take you 30-60 mins depending on your comfort level with circuitry and a soldering iron.

VR - What's with the NPN into the PNP? I'm not sure I get what that's for. Are you just trying to achieve higher gains to reduce the load on the arduino? If so, why not use a single darlington transistor instead?
Reply With Quote
  #4  
Old 04-27-2013, 12:53 AM
Vancouver Reefer's Avatar
Vancouver Reefer Vancouver Reefer is offline
Member
 
Join Date: Mar 2009
Location: Kenora, ON
Posts: 135
Vancouver Reefer is on a distinguished road
Default

No Idea Steve. My head was blown apart trying to figure this one and the guy on the arduino forum told me to try that circuit. I did not try driving the PNP directly from the arduino and my protoboard is now built, installed and running. Would be interesting to see without the 2n2222 in there.
__________________
View my Aquarium & Reef Controller build here:


The Ultimate DIY Aquarium Controller of the 21st Century!!!


LED's, PH, Salinity, Clock, LCD, ATO, Auto Water Changer, Variable Speed Cooling Fan Control and lots, lots more......


Reply With Quote
  #5  
Old 04-27-2013, 06:52 AM
ScubaSteve ScubaSteve is offline
Member
 
Join Date: Nov 2009
Location: Vancouver
Posts: 1,591
ScubaSteve is on a distinguished road
Default

Ah, after looking at it more I see what he's doing. Ultra conservative design (in terms of current draw through the Arduino). You really could simplify it and just use the NPN. You'd have to drop the value of R3 to 5-10K butit'd work just the same.

Thanks for posting this. It'd be great to see people doing more DIY electronics. It's intimidating at first but easy once you get into it. Stuff like this really helps!
Reply With Quote
  #6  
Old 04-27-2013, 12:42 PM
Vancouver Reefer's Avatar
Vancouver Reefer Vancouver Reefer is offline
Member
 
Join Date: Mar 2009
Location: Kenora, ON
Posts: 135
Vancouver Reefer is on a distinguished road
Default

oops i forgot to add on a 1K pulldown resistor between the Meanwell + and 0V. This will prevent the driver from going to 100% brightness in the event the driver circuit stops working or has a power failure.

Steve,

I tried using a NPN before and it would not drive the LPF series driver. Here is what i had tried before but with no luck:

Controlling + lead:




So next i tried this circuit using the 10v supply to control the - lead:




I then tried the following circuit as the 2 previous would not work. This i could get the drivers to dim but with the Arduino fading from 0-5v i could only get the circuit to output 3.5v-6.5v.



I hope the background helps.
__________________
View my Aquarium & Reef Controller build here:


The Ultimate DIY Aquarium Controller of the 21st Century!!!


LED's, PH, Salinity, Clock, LCD, ATO, Auto Water Changer, Variable Speed Cooling Fan Control and lots, lots more......


Reply With Quote
  #7  
Old 04-27-2013, 03:57 PM
ScubaSteve ScubaSteve is offline
Member
 
Join Date: Nov 2009
Location: Vancouver
Posts: 1,591
ScubaSteve is on a distinguished road
Default

Interesting. I'd have to run the math to check it but I think the problem you were having here was the 1K resistor. The transistor might not have been at saturation and so the gain may have been too low for amplifying the PWM. I'm surprised it didn't work. I use the same circuit to control the fans on my tank.

Good call on the pull-down resistor. I always surprised people neglect them, not just for safety but also to just have a nice product. Why would you want you LEDs going to 100% any time you unplug something?
Reply With Quote
  #8  
Old 04-27-2013, 04:08 PM
Vancouver Reefer's Avatar
Vancouver Reefer Vancouver Reefer is offline
Member
 
Join Date: Mar 2009
Location: Kenora, ON
Posts: 135
Vancouver Reefer is on a distinguished road
Default

I have been using the 2n2222 for all my power control on my controller with no problem, but those LPF drivers nearly got my controller launched out the window!

__________________
View my Aquarium & Reef Controller build here:


The Ultimate DIY Aquarium Controller of the 21st Century!!!


LED's, PH, Salinity, Clock, LCD, ATO, Auto Water Changer, Variable Speed Cooling Fan Control and lots, lots more......


Reply With Quote
  #9  
Old 04-27-2013, 04:26 PM
ScubaSteve ScubaSteve is offline
Member
 
Join Date: Nov 2009
Location: Vancouver
Posts: 1,591
ScubaSteve is on a distinguished road
Default

Time to make the switch to the LDD drivers
Reply With Quote
  #10  
Old 04-27-2013, 05:50 PM
Vancouver Reefer's Avatar
Vancouver Reefer Vancouver Reefer is offline
Member
 
Join Date: Mar 2009
Location: Kenora, ON
Posts: 135
Vancouver Reefer is on a distinguished road
Default

Next time!
__________________
View my Aquarium & Reef Controller build here:


The Ultimate DIY Aquarium Controller of the 21st Century!!!


LED's, PH, Salinity, Clock, LCD, ATO, Auto Water Changer, Variable Speed Cooling Fan Control and lots, lots more......


Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.