Voltage changes in 555 timers

Thread Starter

x11

Joined Dec 25, 2019
6
237B77D4-C23E-44A5-A2BD-093163FB03BB.pngPin 2 and 6 are supposed to detect voltage changes as the capacitor fills/drains, but how does the capacitor really change the voltage? If a capacitor drains, does the voltage increase or decrease and why?
 

crutschow

Joined Mar 14, 2008
38,512
The capacitor doesn't change the voltage.
The voltage on the capacitor changes as charge is added and removed.
When charge is removed, the capacitor voltage decreases.
When charge is added, the capacitor voltage increases.

This is given by the formula V = Q/C where Q is the capacitor charge is coulombs and C is the capacitance.
The total Q transferred into or out of the capacitor = I*t where I is current in amperes and t is time in seconds.

Below is the LTspice simulation of your circuit illustrating the charge and discharge of the capacitor:
The capacitor voltage (yellow trace) decreases (discharges) when the DIS input is low (red trace) and increases (charges) when the DIS input is open (high).
The current into and out of the capacitor through R2 is shown by the green trace (plus current is into and minus current is out of the capacitor).

1577422928826.png
 
Last edited:

MrAl

Joined Jun 17, 2014
13,704
If you are new to resistors and capacitors then a convenient way to look at the charge and discharge through a resistor is by the concept of a "Time Constant". The time constant of a regular RC circuit is:
TC=R*C

and that is the time it takes to charge to 63.2 percent of the power supply voltage.
If it is discharging, it is the time it takes to reach 36.8 percent of the starting voltage across the cap.

After 5 time constants the capacitor is though of as being almost fully charged or fully discharged.

An interesting consequence of this rule of the time constant is that after the first time constant charging up to 63.2 percent of the power supply voltage, the next time constant takes the voltage up another 63.2 percent of the remaining difference between the 63.2 percent and the supply voltage.
For discharging, the first time constant takes the voltage down to 36.8 percent of the starting voltage, and the second time constant takes it down another 36.8 percent, and the third another 36.8 percent, etc., until the voltage is nearly equal to zero then we dont care too much anymore.
 
Last edited:

Hymie

Joined Mar 30, 2018
1,347
For clarification of MrAl’s post above; in the time constant formula the resistance is the value in ohms and the capacitance in Farads. Or alternatively if the resistance is in meg-ohm then the capacitance is in µF.
 

MrChips

Joined Oct 2, 2009
34,817
Stated differently, here is the error from steady-state for each n time-constant.

n %error
1 36.788
2 13.534
3 4.949
4 0.678
5 0.248
6 0.091
7 0.034
8 0.012
9 0.005
10 0.002

For most applications in electronics 3 time-constants is good enough with 5% RC components and 4 time-constants for 1% components.
 

MrAl

Joined Jun 17, 2014
13,704
Where it's within 99.3% of its final value.
10 time-constants brings it within 99.995% of the final value.
It's also a little interesting that for the cap to discharge to exactly 1 percent of it's initial value it takes exactly ln(100) time constants (about 4.605 time constants).
ln(x) being the natural log function.
And to get to exactly 99 percent of its final value for the cap charging it also takes exactly
ln(100) time constants.
 
Top