logo elektroda
logo elektroda
X
logo elektroda

How to Build a Linear Voltage Decay Circuit (9V-12V DC, 3-5s Ramp Down)

195 17
ADVERTISEMENT
  • #1 21669115
    Andrew Betts
    Anonymous  
  • ADVERTISEMENT
  • #2 21669116
    Rohit Dubla
    Anonymous  
  • ADVERTISEMENT
  • #3 21669117
    Rohit Dubla
    Anonymous  
  • #4 21669118
    Andrew Betts
    Anonymous  
  • ADVERTISEMENT
  • #5 21669119
    Andrew Betts
    Anonymous  
  • #6 21669120
    Steve Lawson
    Anonymous  
  • #7 21669121
    Rohit Dubla
    Anonymous  
  • #8 21669122
    Andrew Betts
    Anonymous  
  • #9 21669123
    Mark Harrington
    Anonymous  
  • #10 21669124
    Rohit Dubla
    Anonymous  
  • #11 21669125
    Steve Lawson
    Anonymous  
  • #12 21669126
    Steve Lawson
    Anonymous  
  • #13 21669127
    Mark Harrington
    Anonymous  
  • #14 21669128
    Mark Harrington
    Anonymous  
  • #15 21669129
    Rohit Dubla
    Anonymous  
  • #16 21669130
    Rohit Dubla
    Anonymous  
  • #17 21669131
    Steve Lawson
    Anonymous  
  • ADVERTISEMENT
  • #18 21669132
    Rohit Dubla
    Anonymous  

Topic summary

✨ The discussion focuses on designing a linear voltage decay circuit that, when powered with 9V to 12V DC, produces a linear ramp-down output voltage from the supply voltage to near 0V over 3 to 5 seconds. The user requires the output to remain at the supply voltage while powered and then linearly decay to zero upon power removal, with the process repeating upon reapplication of power. A 555 timer-based ramp generator was found but operates in the opposite direction (0V to 12V). Proposed solutions include using a constant current source (CCS) to linearly charge a capacitor, thereby creating a linear voltage ramp across the capacitor, which is subtracted from the supply voltage to achieve the desired linear decay at the output. The slope of the ramp is governed by the current and capacitance (V(t) = (I*t)/C), allowing calculation of component values for the desired timing. Alternative approaches suggest using PWM control via a 555 timer or microcontroller (Atmel or PIC) with low-pass filtering to achieve adjustable linear voltage decay. Circuit simulations indicate that adjusting resistor values in the CCS affects ramp time but not linearity. Some shared circuits use transistor, LED, and resistor configurations to implement the CCS, with attention to voltage references and capacitor types (ceramic or tantalum) for precision. The output voltage is intended to feed into a 555 timer control pin (pin 5) to modulate its output. The discussion also notes the importance of ensuring the output voltage instantly returns to supply voltage when power is reapplied and that the voltage decay is linear rather than exponential or logarithmic.

FAQ

TL;DR: For a 12→0 V linear ramp in 3–5 s, use a constant‑current source into a capacitor; 300 µF at 1 mA ≈ 3 s. “The CCS will ensure that the ramp is linear.” [Elektroda, Rohit Dubla, post #21669121]

Why it matters: This FAQ shows how to build and tune a simple, repeatable linear voltage decay for hobby and embedded projects, without microcontrollers.

Quick-Facts

Quick Facts

How do I get a 12 V to ~0 V linear ramp after power turns on?

Use a constant‑current source (LED + transistor + R1) to charge a capacitor. Subtract the capacitor’s rising voltage from Vcc at the collector to get a linear falling output. Adjust R1 (current) and C (capacitance) to set duration. [Elektroda, Rohit Dubla, post #21669117]

What values give about 3 seconds over a 10 V span?

Use V(t)=I·t/C. For a 3 s drop from 10 V, pick C=3·I/Vcc. Example: I=1 mA, Vcc=10 V → C≈300 µF. “V(t)=(I·t)/C.” [Elektroda, Rohit Dubla, post #21669121]

Will the output jump back to 12 V when power returns?

Yes. The requirement is immediate return to 12 V on re‑apply. Design the ramp to occur only during powered intervals. [Elektroda, Andrew Betts, post #21669119]

I only have an upward ramp—how do I get a downward ramp for PWM/comparator use?

Swap the comparator inputs: use the ramp on one input and the reference on the other to invert the slope. [Elektroda, Rohit Dubla, post #21669124]

Does the ramp have to drive a heavy load?

Assume a light load. If you must drive more than a control pin, buffer the output. The discussion assumes minimal loading. [Elektroda, Steve Lawson, post #21669120]

How do I tune the time without hurting linearity?

Change R1 to set current and C to set duration. Simulation showed R1=10 kΩ ≈5.5 s and 560 Ω ≈3 s, with linearity maintained. [Elektroda, Rohit Dubla, post #21669129]

What is a constant current source (CCS) here?

A transistor with LED and emitter resistor forms a CCS. It forces near‑constant current, making the capacitor voltage rise linearly. “The CCS…will ensure that the ramp is linear.” [Elektroda, Rohit Dubla, post #21669121]

Will this ramp continue after power is removed?

This thread’s solution targets a ramp during power‑on. A post clarified that a post‑power‑off ramp was a misread requirement. [Elektroda, Steve Lawson, post #21669131]

Any pitfalls or edge cases I should know?

Diode‑referenced current sources drift with temperature. Expect timing variance unless you stabilize or calibrate the reference network. [Elektroda, Steve Lawson, post #21669125]
ADVERTISEMENT