i need help

SgtWookie

Joined Jul 17, 2007
22,230
Do you want the input signal to stay at 5v once it gets there?
What is it that you are trying to do; what is your application?
 

praondevou

Joined Jul 9, 2011
2,942
Since I guess u want a linear increasing voltage, you could use an LM258 which works with a single supply. Configure it as an integrator. With the proper input configuration the ouput will increase from 0 (low-level output voltage of this IC is typ. 5mV) to 5V. The LM 3914 input signal voltage is actual not so problematic as long as it stays under the max rating. see datasheet.
 

SgtWookie

Joined Jul 17, 2007
22,230
Here's one way to do it using a few common components; see the attached.
Q1 and Q2 are wired as a current mirror.
The 12v supply current through Q1 and R1 determines the charge current for C1.
The values of R1 and C1 determine the time it takes to charge C1 up to 5v.
D1 clamps C1's voltage to ~5.1v.
D2 provides a discharge path when the incoming 12v is turned off.

You can substitute many other small-signal PNP transistors for the 2N3906's shown.
You can substitute many other 5.1v Zener diodes.
You can also substitute many other diodes for the 1N4148, but a low forward-voltage Schottky diode like a 1N5817 would be the best.
 

Attachments

#12

Joined Nov 30, 2010
18,224
Discrete current mirrors suck horribly. You need resistance in the emitter circuits to make them track well. A few hundred ohms should help.
 

praondevou

Joined Jul 9, 2011
2,942
I have to admit I liked Wookies circuit more because it's discret. But I would like to know if the attached circuit would cause any problems under real-world conditions? (bypass caps are missing, ok)

Or would it work too? I didn't build it physically, so I couldn't say. For the single-supply opamp I'd use the LM258
 

Attachments

Last edited:

SgtWookie

Joined Jul 17, 2007
22,230
I have to admit I liked Wookies circuit more because it's discret. But I would like to know if the attached circuit would cause any problems under real-world conditions? (bypass caps are missing, ok)
A bypass cap across the supply pins is always a good idea.
One item that's missing is a method to quickly discharge the 47uF timing cap. Without that, the charge may be retained for a period of time and cause all of the LEDs to be turned on if the power is cycled on/off/on within a fairly short period of time. That's the reason I added the discharge diode above the Zener in my circuit. It's not absolutely necessary, but it takes care of the rapid cycle problem.

For the single-supply opamp I'd use the LM258
Just about any voltage feedback single-supply or RRIO opamp that's stable at the gain used would work. LM358's are commercial opamps and cheaper than the LM258's, but the LM258 would work.
 

praondevou

Joined Jul 9, 2011
2,942
A bypass cap across the supply pins is always a good idea.
One item that's missing is a method to quickly discharge the 47uF timing cap. Without that, the charge may be retained for a period of time and cause all of the LEDs to be turned on if the power is cycled on/off/on within a fairly short period of time. That's the reason I added the discharge diode above the Zener in my circuit. It's not absolutely necessary, but it takes care of the rapid cycle problem.


Just about any voltage feedback single-supply or RRIO opamp that's stable at the gain used would work. LM358's are commercial opamps and cheaper than the LM258's, but the LM258 would work.

Thanks for the info .;)
 

SgtWookie

Joined Jul 17, 2007
22,230
Hello Mike,
Perhaps you did not read the entire thread before you replied, but the problem was resolved by the end of the first page.
 
Top