Education – the RC circuit

Hello readers

Today we continue down the path of analog electronics theory by stopping by for an introductory look at the RC circuit. That’s R for resistor, and C for capacitor. As we know from previous articles, resistors can resist or limit the flow of current in a circuit, and a capacitor stores electric current for use in the future. And – when used together – these two simple components can be used for many interesting applications such as timing and creating oscillators of various frequencies.

How is this so? Please consider the following simple circuit:



When the switch is in position A, current flows through R1 and into the capacitor C1 until it is fully charged. During this charging process, the voltage across the capacitor will change, starting from zero until fully charged, at which point the voltage will be the same as if the capacitor had been replaced by a break in the circuit – in this case 6V. Fair enough. But how long will the capacitor take to reach this state? Well the time taken is a function of several things – including the value of the resistor (R1) as it limits the flow of current; and the size of the capacitor – which determines how much charge can be stored.

If we know these two values, we can calculate the time constant of the circuit. The time constant is denoted by the character zeta (lower-case Greek Z).

The time constant is the time taken (in seconds) by the capacitor C that is fed from a resistor R to charge to a certain level. The capacitor will charge to 63% of the final voltage in one time constant, 85% in two time constants, and 100% in five time constants. If you graphed the % charge against time constant, the result is exponential. That is:

Now enough theory – let’s put this RC circuit to practice to see the voltage change across the capacitor as it charges. The resistor R1 will be 20k ohm, the capacitor 1000 uF.

Our time constant will be R x C which will be 20000 ohms x 0.001 farads, which equals 20 (seconds).  Notice the unit conversion – you need to go back to ohms and farads not micro-, pico- or nanofarads. So our example will take 20 seconds to reach 63% of final voltage, and 100 seconds to reach almost full voltage. This is assuming the values of the resistor and capacitor are accurate. The capacitor will have to be taken on face value as I can’t measure it with my equipment, and don’t have the data sheet to know the tolerance. The resistor measured at 19.84 k ohms, and the battery measured 6.27 volts. Therefore our real time constant should be around 19.84 seconds, give or take.

First of all, here is a shot of the little oscilloscope measuring the change in voltage over the capacitor with respect to time. The vertical scale is 1v/division:

And here is the multimeter measuring the voltage next to a stopwatch. (crude yet effective, no?)

The two videos were not the most accurate, as it was difficult to synchronise the stopwatch and start the circuit, but I hope you could see the exponential relationship between time and voltage.

What about discharging? Using the circuit above, if we moved the switch to B after charging the capacitor –  and R2 was also 20k ohm – how long would it take to discharge the capacitor? Exactly the same as charging it! So one time constant to discharge 63% and so on. So you can take the graph from above and invert it as such:

How can we make use of an RC circuit?

I’m glad you asked. Consider the following circuit:


When power is applied, the capacitor starts to charge, and in doing so allows current to flow to the emitter of the transistor, which turns on the LED. However as the capacitor charges, less current passes to the base of the transistor, eventually turning it off. Therefore you can calculate time constants and experiment to create an off timer. However, a preferable way would be to make use of a 555 timer. For example, an RC combination is used to set the pulse length used in astable timing applications, for example using R1, R2 and C1:


(For more information on the 555 timer, please read this article)

Another use of the RC circuit is oscillating. Due to varying capacitor values due to tolerance, you most likely cannot make precision frequency generators, but you can still have some fun and make useful things. Here is a classic oscillator example – an astable multivibrator:


What is going on here? Here it is in action:

and here is one side being measured on the little scope:

We have two RC circuits, each controlling a transistor. When power is applied, there is no way to determine which side will start first, as this depends on the latent charge in the capacitors and the exact values of the resistors and capacitors. So to start let’s assume the left transistor (Q1) and LED are on; and the right transistor (Q2) and LED are off. The voltage at collector of Q1 will be close to zero as it is on. And the voltage at the base of Q2 will also be close to zero as C2 will initially be discharged. But C2 will now start charging via R4 and base of Q1 to around 5.4V (remember the 0.6v loss over the base-emitter junction of a transistor). While this is happening, C1 starts charging through R2. Once the voltage difference reaches 0.6V over the capacitor, Q2 is turned on.

But when Q2 is on, the voltage at the collector drops to zero, and C2 is charged, so it pulls the voltage at the base of Q1 to -5.4v, turning it off and the left LED. C1 starts charging via R1, and C2 starts charging via R3 until it reaches 0.6v. Then Q1 turns on, bringing the base of Q2 down to -5.4V – switching it off. And the whole process repeats itself. Argh. Now you can see why Arduino is so popular.

Time for a laugh – here is the result of too much current through a trimpot:

So there you have it – the RC circuit. Part of the magic of analogue electronics! And if you made it this far – check out my new book “Arduino Workshop” from No Starch Press.

In the meanwhile have fun and keep checking into Why not follow things on twitterGoogle+, subscribe  for email updates or RSS using the links on the right-hand column? And join our friendly Google Group – dedicated to the projects and related items on this website. Sign up – it’s free, helpful to each other –  and we can all learn something.

The following two tabs change content below.

John Boxall

Founder, owner and managing editor of

15 Responses to “Education – the RC circuit”

  1. I’m a bt confused about the multvbrator crcut. From what I can tell, the capactors are back-based when ther correspondng transstor s on (R2 -> C1 -> Q1, for example). I mplemented the crcut and checked t wth a voltmeter and sure enough, t’s at around -0.5V. Isn’t ths a bad dea for an electrolytc cap?

    • John Boxall says:

      Hello Dustn
      My apologes for the delay n ths reply. After speakng wth a few oldes n theory, yes t s not such a good dea. However n practce we’ve been dong ths for about thrty years and t’s ok due to the low power and voltage n ths type of crcut – our verson wll run happly lke ths n safety. However one could always ncrease the resstor values and use smaller, non-polarsed capactors as well f n doubt.
      Thank you for your comments
      Cheers, John

      • Gotcha – thanks! I dd hook ths up to a ‘scope today to verfy my hunch. As crcuts go, t’s actually pretty complex, snce the capactors float, rather than keepng one termnal at a ground or +6V.

      • John Boxall says:

        Excellent! Yes, t s somewhat complex. Funnly enough, t s the standard crcut n most electroncs texts here n Australa. I thnk there must be a lot of kds (and adults) put off learnng electroncs when they got to the stage of tryng to fgure out a multvbrator crcut. Anyhow, have fun and thanks for your nput.

  2. John Boxall says:

    Hello Mke
    Very nterestng, thank you for that ntroducton. When I update the post wll look nto them further.

  3. Dr. Chris Shaw says:

    H John

    have tred to set up the smple off tmer crcut above wth C1 4.7mcF, R1 100Kohm, am usng a 1.5 V (or 9V) source, and a BC182L transstor. What I seem to observe s that the LEd comes on but never swtches off? Would the choce of BC548 be crtcal n ths crcut?

  4. Dr. Chris Shaw says:

    H John,

    It’s ok sorted problem. Dodgy components. Crcut worked ok wth 9 Volt supply so can play round wth t now.

  5. Yochay says:

    Very nterestng artcle.
    Is there a way to modfy the osclator, such that a sngle clck on a swtch causes only 2 or 3 blnks of the led?

  6. Abeer says:

    I have a term paper to do about applcatons of RC crcut and need to know specfc machnes or nstrument that uses RC crcut,
    any suggestons?

    Thank you for your tme:)

  7. Aaron Holmes says:

    Thanks for wrtng ths up! I used your astable multvbrator crcut to create ths Instructable.

  8. aditya jain says:

    hey there m just a tyro n ths feld.I was just wonderng how to select the values of resstor and capactor to make the led blnk through transstor? Thanks n advance :)


Leave a Reply

Subscribe via email

Receive notifications of new posts by email.

The Arduino Book

Arduino Workshop

Für unsere deutschen Freunde

Dla naszych polskich przyjaciół ...

Australian Electronics!

Buy and support Silicon Chip - Australia's only Electronics Magazine.

Use of our content…

%d bloggers like this: