Slow ramp up and down led - The Planted Tank Forum
 1Likes
Reply
 
LinkBack Thread Tools Display Modes
post #1 of 19 (permalink) Old 06-05-2016, 11:03 PM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
Slow ramp up and down led

I've been searching and searching and cannot find something to fit my need. I want to slowly ramp my leds on and then when the power goes off slowly ramp down. I'm using a meanwell 60-48d with a 9 volt wall wart right now. The ramp times only need to be about 10-15 seconds. Each meanwell powers a 50 watt led chip (33volt @about 700mA). I can't find any type of circuit for that much of a power hog led. Most circuits I see are for 12 volts or less. I only want to do this so my discus stop freaking out when the lights turn off and on abruptly. Thank you.

I do have a couple 555 timers and a few hundred resistors and capacitors. Any input would be great.

Bump: I also have a few npn transistors too.
m_t_r_86 is offline  
Sponsored Links
Advertisement
 
post #2 of 19 (permalink) Old 06-05-2016, 11:36 PM
Planted Tank Guru
 
PTrader: (0/0%)
Join Date: Jun 2013
Location: WI
Posts: 11,145
Quote:
Originally Posted by m_t_r_86 View Post
I've been searching and searching and cannot find something to fit my need. I want to slowly ramp my leds on and then when the power goes off slowly ramp down. I'm using a meanwell 60-48d with a 9 volt wall wart right now. The ramp times only need to be about 10-15 seconds. Each meanwell powers a 50 watt led chip (33volt @about 700mA). I can't find any type of circuit for that much of a power hog led. Most circuits I see are for 12 volts or less. I only want to do this so my discus stop freaking out when the lights turn off and on abruptly. Thank you.

I do have a couple 555 timers and a few hundred resistors and capacitors. Any input would be great.

Bump: I also have a few npn transistors too.

You "just" need to apply a 1-10V analog signal to the dim circuit.
That model was the first driver I used and dimming it is one of the reasons I went w/ LDD's and 5V PWM

Works fine w/ things like the Apex..not so well w/ things like Typhons, Storm(x), or any Aduino based controllers..

There are dozens of builds for Aduino and a handful of cheapish PWM controllers

your best bet is converting the 5V PWM to 0-10V analog.
Keep in mind it won't dim to zero (10% is your lowest stable setting) so your light will still "jump" to 10%.
Also requires a secondary timer to shut it off fully..

That said what you need is 1)Typhon.
2)on/off timer and a circuit like this:


DON'T think you can use a Typhon 10V PWM..won't work..

There are some pre-made boards to do this as well ..but I have no guarantee what does or doesn't work.
As I said above, cut my teeth on this but at the time didn't want to add more active circuitry (separate power supply to transistor/opamp) and stubbornly wanted all passive components..
'Almost" got it..long story..
Gave up went to LDD's never looked back.........

for fun:
http://www.reefcentral.com/forums/sh....php?t=2318572

looking at that thread again pretty sure this is fully functional w/ any 5v pwm..


basically smooth the pm w/ a r/c circuit and double the voltage...

"A man with a watch knows what time it is. A man with two watches is never sure."
jeffkrol is online now  
post #3 of 19 (permalink) Old 06-05-2016, 11:42 PM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
I understand I need a 1-10v supply to the dim circuit on the meanwell. I am currently running a9 volt wall wart to power that circuit.

My question is, without the use of a POT, how do I slowy ramp up/of my lights? Do I add circuitry to the 0-10v circuit or the LED output. To be honest, I'm not sure.

Bump: Also, I'm not trying to spend a lot.

Bump: Is there a way, using my 9 volt wall wart and some diy circuit to create a soft on off into the 0-10v dim circuit?

20 Gallon Long - Moderately/Heavily Planted
40 Breeder - In the Works
m_t_r_86 is offline  
 
post #4 of 19 (permalink) Old 06-06-2016, 12:02 AM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
I don't think I'm fully understanding your second circuit layout. What is the 0-100% p1c and the random arrow coming off of the radiator at the top of the drawing? I understand the rest.

Bump: I would like to keep this nice and simple If it's possible.

20 Gallon Long - Moderately/Heavily Planted
40 Breeder - In the Works
m_t_r_86 is offline  
post #5 of 19 (permalink) Old 06-06-2016, 12:31 AM
Planted Tank Guru
 
PTrader: (0/0%)
Join Date: Jun 2013
Location: WI
Posts: 11,145
Quote:
Originally Posted by m_t_r_86 View Post
I understand I need a 1-10v supply to the dim circuit on the meanwell. I am currently running a9 volt wall wart to power that circuit.

My question is, without the use of a POT, how do I slowy ramp up/of my lights? Do I add circuitry to the 0-10v circuit or the LED output. To be honest, I'm not sure.

Bump: Also, I'm not trying to spend a lot.

Bump: Is there a way, using my 9 volt wall wart and some diy circuit to create a soft on off into the 0-10v dim circuit?
Well the above has the answer "except" for cost.
Typhon is about $45

Other than that.. possibly " something like this":
Just substitute 9V for the 22..

https://www.circuitlab.com/circuit/xw65e2/voltage-ramp/
Basically want to soft start the 9v........



Bump:
Quote:
Originally Posted by m_t_r_86 View Post
I understand I need a 1-10v supply to the dim circuit on the meanwell. I am currently running a9 volt wall wart to power that circuit.

My question is, without the use of a POT, how do I slowy ramp up/of my lights? Do I add circuitry to the 0-10v circuit or the LED output. To be honest, I'm not sure.

Bump: Also, I'm not trying to spend a lot.

Bump: Is there a way, using my 9 volt wall wart and some diy circuit to create a soft on off into the 0-10v dim circuit?
0-100% PWM is just from your PWM 'generator' like the Typhon.
in this case some British controller site/program (PIC)
http://www.picbasic.co.uk/forum/
Arrow at the top is for a variable resistor (pot) to trim the circuit so as to get the correct range out..Ends the need for precision components at that point........

"A man with a watch knows what time it is. A man with two watches is never sure."
jeffkrol is online now  
post #6 of 19 (permalink) Old 06-06-2016, 06:01 PM
Planted Tank Guru
 
PTrader: (0/0%)
Join Date: Jun 2013
Location: WI
Posts: 11,145
2 more "soft start" circuits..................
Soft Start PSU

"A man with a watch knows what time it is. A man with two watches is never sure."
jeffkrol is online now  
post #7 of 19 (permalink) Old 06-06-2016, 06:08 PM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
I like the first circuit quote a bit and looks to be the most practical. I do have a question about it. I noticed it said the voltage can be adjusted. How exactly? Is it just by the type of resistor I use or is the chip something I can preset? Thanks!

20 Gallon Long - Moderately/Heavily Planted
40 Breeder - In the Works
m_t_r_86 is offline  
post #8 of 19 (permalink) Old 06-06-2016, 07:23 PM
Planted Tank Guru
 
PTrader: (0/0%)
Join Date: Jun 2013
Location: WI
Posts: 11,145
Quote:
Originally Posted by m_t_r_86 View Post
I like the first circuit quote a bit and looks to be the most practical. I do have a question about it. I noticed it said the voltage can be adjusted. How exactly? Is it just by the type of resistor I use or is the chip something I can preset? Thanks!
which one????
This?


Quote:
The circuit must be assembled on a good quality PCB.
LM 317 can deliver only up to 1A 0f current.
The input voltage must be few volts higher than the desired output voltage.
Here the input voltage can be 18 or 20V DC.
Capacitor C2 must be rated at least 30V.
BTW: I can point you in the direction but the nuts and bolts is really above my paygrade..
anyways there are dozens........


http://www.talkingelectronics.com/pr...200TrCcts.html

"A man with a watch knows what time it is. A man with two watches is never sure."

Last edited by jeffkrol; 06-06-2016 at 08:01 PM. Reason: edit
jeffkrol is online now  
post #9 of 19 (permalink) Old 06-07-2016, 12:46 AM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
Quote:
Originally Posted by jeffkrol View Post
2 more "soft start" circuits..................
Soft Start PSU
After further looking into the circuits, ice decided to go with the second one. But can you explain the equation at the bottom right of the diagram please. Would I be correct to assume T=time? What does the RC=??? Thanks again.

I also ordered everything for it so I'm just waiting on everything to come in. Ebay says the 13th.




Bump: It just seems to be a more flexible circuit than the lm317
m_t_r_86 is offline  
post #10 of 19 (permalink) Old 06-07-2016, 01:44 AM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
Also, what should my supply voltage be based on these equations? I'm obviously not going to get 9.0vdc out of my 8.4vdc wall wart. Even using the equation: Vo=2.77*(1+R1/R2). Because if I use a 2k7 resistor for R1 and a 1k2 resistor for R2 I get 9.0025vdc. Thanks.
m_t_r_86 is offline  
post #11 of 19 (permalink) Old 06-07-2016, 02:35 AM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
Also, I think the equation is incorrect. According to the L200 voltage regulator data sheet, it should NOT read Vo=2.77*(1+r1/r2). On the data sheet it reads Vo=Vref*(1+r2/r1).

I'm not sure which equation to use now. The first one looks to be the more accurate but the second one comes of 3 different websites data sheets and a manufacturers pdf.

Any ideas?

Bump: So o figured it out. In the drawn diagram jeffkrol provided, r1 and r2 were switched from the diagram from the L200 days sheet or vice versa. Either way, the equation is correct. I do understand the circuit and equations to go with it a lot better. Except for the bottom right equitation.
m_t_r_86 is offline  
post #12 of 19 (permalink) Old 06-07-2016, 03:07 AM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
I do have one final question. Will this circuit work in reverse? Meaning when power is turned off, will it perform a slow off? If not could I add another resistor above but before c2 capacitor to adjust the rate of drain from the capacitor allowing a slow off? Ideas?
m_t_r_86 is offline  
post #13 of 19 (permalink) Old 06-07-2016, 05:27 AM
Planted Tank Guru
 
PTrader: (0/0%)
Join Date: Jun 2013
Location: WI
Posts: 11,145
Quote:
Originally Posted by m_t_r_86 View Post
Also, I think the equation is incorrect. According to the L200 voltage regulator data sheet, it should NOT read Vo=2.77*(1+r1/r2). On the data sheet it reads Vo=Vref*(1+r2/r1).



Bump: So o figured it out. In the drawn diagram jeffkrol provided, r1 and r2 were switched from the diagram from the L200 days sheet or vice versa. Either way, the equation is correct. I do understand the circuit and equations to go with it a lot better. Except for the bottom right equitation.
p3/12
Ref voltage starts at:
2.77 "typical" w/ a 20V "input"..
http://www.st.com/content/ccc/resour...CD00000053.pdf

Hmm.. problem may be you will start at 3v, which is about 25%.
That still may be a bit shocking....
Quote:
Adj. output voltage down to 2.85V
IF I remember correctly, you may be able to adj.current down (or voltage, forgot which). People use these to get max out w/ less than max dim.. i.e like 9V not getting you full current.
In other words adj. here will get you 100% at say 9v (110 & 10V)
I suspect a bit of playing with this will drop current (brightness) below the normal 25%. You will have to play w/ this a bit I suspect..

As to soft shut down...???
A capacitor may work.. not sure how it affects the ramp up though..Making c2 large may do it..

Anyways, from data sheet:


As a minor word of caution: When I attempted a passive voltage doubler to dim my Meanwell w/ 5V to start I ran into a current problem. This meanwell requires more current than a, say, LDD which can see micro amps..
Point is you need to watch the current limiter so as to not go too low..
Like I said, I can "see" some "possibilities" of this but most is over my pay grade..

"A man with a watch knows what time it is. A man with two watches is never sure."

Last edited by jeffkrol; 06-07-2016 at 05:41 AM. Reason: edit
jeffkrol is online now  
post #14 of 19 (permalink) Old 06-07-2016, 06:06 AM
Planted Tank Guru
 
PTrader: (0/0%)
Join Date: Jun 2013
Location: WI
Posts: 11,145
circuit using the lm317 would have been my choice. Vo down to 1.25V...............

"A man with a watch knows what time it is. A man with two watches is never sure."
jeffkrol is online now  
post #15 of 19 (permalink) Old 06-07-2016, 12:31 PM Thread Starter
Algae Grower
 
m_t_r_86's Avatar
 
PTrader: (0/0%)
Join Date: Jan 2016
Posts: 70
Quote:
Originally Posted by jeffkrol View Post
circuit using the lm317 would have been my choice. Vo down to 1.25V...............
I'm glad you pointed that out. I did not think about the beginning voltage and agree with you. I need to be closer to 0 volts going to my dimmer input on my meanwell and the lm317 has the lowest starting voltage output of the 2 circuits. So I'm going to build both and see which one will be best suited for my leds. With the lm317 circuit, what is the equation to calculate puppy voltage? Also, after some research, the amperage need to go to the dinner input on the meanwell can be no lower than 40mA. Well this be a problem from either circuit? Thanks again for all the info.

Bump: And is that 5k resistor actually a pot?

Bump: Or a pnp transistor?
m_t_r_86 is offline  
Reply

Tags
None

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the The Planted Tank Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may 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
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome