Electronic – Solving the time constant in this specific circuit

capacitorremote controlresistorstransistorsvoltage

I'm having some problems with this circuit from a tutorial website:
enter image description here

When the switch is open, the LED is on.
When the switch is closed, the LED turns off and the timer begins. After a while, the LED will soon turn on. It changes with depending values of the resistor and capacitor (so i think its an RC circuit with a transistor). Im wondering how you would find like an equation that will determine the time constant of this LED turning on when the switch is closed.

Note: the capacitor already has a voltage when the switch is open and it begins to decrease when the switch is closed. When it reaches zero, the voltage goes in the opposite direction (negative), until it hits -0.6V and allows the transistor to turn on and allow the current through. Is the capacitor actually discharging???

Any help appreciated!Thanks! 🙂

Best Answer

The capacitor charges through R1 to +9V - Vbe = 8.3V when the switch is open.

When you close the switch the left end of the capacitor becomes 0V, so the right jumps to -8.3V (exceeding the absolute maximum rating of -6V on Q1, by the way).

Ideally the transistor does not instantly die from this abuse and the capacitor begins to charge towards 0V - Vbe = -0.6V (putting reverse bias on the polarized capacitor, also frowned upon in some circles).

The time constant is \$\tau = R_2 C_1\$. Time Constant has a specific meaning- it is not the same as the time for the transistor to switch because the threshold is not at 63% discharge but more like 50%. The discharge follows an exponential curve. (as pointed out in the comments, the vertical axis is not really right, but the shape is correct).

enter image description here

To clarify the actual discharge curve measured at the right-hand side of the capacitor, so relative to ground, (and ignoring the transistor base for now) can be shown to be \$v(t) = 9 - 17.2e^{-t/\tau}\$ where t>=0 is the time since the switch was closed. The transistor will switch (and the curve will deviate from the ideal since the base clamps it) when v(t) is about +0.7 so that is at \$t = \tau\cdot \ln(0.483)\$ or about \$0.73 R_2 C_1\$. In this particular case C1 = 470uF and R2 = 22K, so the time should be ~7.5 seconds. It may vary a bit from that because the transistor needs some current to operate the LED and also because the 470uF capacitor probably has a large tolerance.

You can easily simulate this in circuitlab to verify the design- the top curve shows the LED current, and the bottom curve the voltage at the base of Q1.

schematic

simulate this circuit – Schematic created using CircuitLab

enter image description here