Capacitor Charge within a time period

AI Thread Summary
The discussion focuses on calculating the oscillation frequency of an RC circuit involving a capacitor and resistor. The user measures charge and discharge times of the capacitor, finding a charge time of 160μs and a discharge time of 413μs, leading to a frequency of approximately 1745Hz. They derive a formula for frequency based on the time constant (RC) and validate their findings by testing different resistor values, confirming a consistent ratio between discharge and charge times. The user seeks a simplified formula that incorporates constants like voltage levels and the time constant to predict oscillation behavior accurately. The response suggests using symbolic variables for constants to derive a general expression for frequency.
Regis Tro
Messages
1
Reaction score
0

Homework Statement



This is one of my oscillator circuits, that I am trying to develop a simple formula to calculate RC for Oscillation Frequency, based on the fact the oscillation is done with the Capacitor charge changing from 1.1V to 1.68V back and forth, for a set of physical numbers.

What I know so forth?

Having:
  • +5V power supply.
  • 100nF Capacitor.
  • Capacitor lead (a) is connected to Ground
  • Capacitor lead (b) is connected to a 10kΩ (1%) Resistor.
  • Resistor other lead is connected to the output of a 74HCT14 Schmitt-Trigger gate.
  • This auto-oscillating gate delivers +5V or Ground to the Resistor, so it charges or discharges the Capacitor via the Resistor.

Measured using Tektronix 2246 oscilloscope:
I don't know the time required for the Capacitor first charge from zero to 1.1V, this happens at Power On, and I don't care, but I know the Capacitor charges from 1.1V to 1.68V in 160μs, with +5V applied to the Resistor, then the Resistor is switched to Ground and the Capacitor discharges back to 1.1V after 413μs, when Resistor is again switched to +5V, and the cycle repeats forever, generating a sawtooth wave of 1745Hz.​

Homework Equations



Vcharge / VCC = 1 - [ e(-t/RC)]

The Attempt at a Solution



Considering the cap took some unknown time to first charge up to 1.1V, but a known time (160μs) to charge from there to 1.68V, I eliminated (offset) this first unknown charge and its time, and also reduced it from Vcc and started all over from zero.

So, what I have now:
Vcc = (5V - 1.1V) = 3.9V
VcapInitial = 1,10V - 1,1V = 0V
VcapFinal = 1.68V - 1.1V = 0.58V
time = 160μs (from VcapInitial to VcapFinal)
Capacitor = 100nF
Resistor = 10kΩ​

Then, the math:
0.58 / 3.9 = 1 - [e^(-t/RC]
1 - 0.1487 = e^(-t/RC)
-t/RC = Ln(0.8512)
-0.00016 / RC = -0.1610
RC = 0.00016 / 0.1610 = 0.0009937
R = 0.0009937 / 0.0000001 = 9937Ω​

So far so good?
I accept the Resistor as 9937 instead of 10000, "physical variables measuring errors".

Now, what I have for the discharging time:
VcapInitial = 1.68V
VcapFinal = 1.10V
VcapDelta = 0.58V
time to discharge from VcapInitial to VcapFinal = 413μs
Capacitor = 100nF
Resistor = 10kΩ​

Math:
0.58 / 1.68 = 1 - [e^(-t/RC]
1 - 0.3452 = e^(-t/RC)
-t/RC = Ln(0.6548)
-t = -0.4234 * RC
RC = -0.000413 / -0.4234
RC = 0.0009754
R = 0.0009754 / 0.0000001
R = 9754 Ω​

Hmmm, not very close to 10k, but I will take in consideration several possible lab measurement errors.

Question? All i did was correct? is this the way?

The first assumption

So far I have, charge time:160μs, discharge time:413μs. May I assume that the ratio (413μs/160μs) = 2.58 as somehow a constant for different values of the Resistor?

Okay, having the lab available, right now I replaced the 10kΩ resistor for a 2kΩ one, the charge time now is 31.9μs and discharge is 82.3μs, with a ratio of 2.579, wow, the assumption is true, valid and verified. Need to confirm with a precise Frequency/Period meter, and much more resistors and capacitors.

What I wish I could calculate

How can I transform all this data into a simple formula, where the following is constant:
  • VCC = 5V (will never change)
  • Vcap1 = 1.1V (triangle wave bottom voltage = will never change)
  • Vcap2 = 1.68V (triangle wave top voltage = will never change)
  • Ratio Discharge/Charge = 2.58 (I will assume that as valid)
  • Oscillation time = 3.58 * n

and the following may change:
  • R
  • C
  • n (as Charging time)

So, R=10kΩ, C=100nF, f=1745, period=573μs, n=period/3.58, n=160μs.

But I can't see how to use R, C, 5V, 1.1V and 1.68V and end up with 160μs

All my knowledge about the above math I did learn tonight, producing this post.
What I wish I could do, is get to a small formula where with RC you get "n".

Okay, being bold I tried pure arithmetics.
RC = 100nF * 10k = 0.001
The charge time (n) = 0.00016
A ratio between them = 6.25, it could means nothing.

Now, somewhere above I replaced the resistor by a 2k and produced a charging time of 31.9μs, right?
now RC = 100nF * 2k = 0.0002
0.0002 / 0.0000319 = 6.27, it could means nothing, but it pretty close to the 6.25 above.

This is getting to close to 2∏, and I am starting to think...

n = RC / 2∏
n = 10k * 100nF / 6.28
n = 0.001 / 6.28 = 159.1μs
t = 1 / 3.58 * n = 1755 Hz.
That is pretty close to what I have on scope's screen.

The formula f = 2∏/ RC*3.58 = 1.755/RC, fits like a glove, and it has nothing to do with the voltages, charge and discharge times... perhaps I already grossly found it?

1.755 / 10k * 100nF = 1755 Hz, I got 1745 on scope
1.755 / 2k * 100nF = 8770 Hz, I got 8790 on scope

Found out 2kΩ resistor is in real 1976Ω, 10kΩ is 10060Ω, what somehow justify the such differences on scope.

Is there any rational and logical way to get to this simple f = 1.755/RC ?

Any help will be very much appreciated.
Thank you for allowing me in this forum and for this first post.

Regis Tro
Orlando Florida USA
 
Physics news on Phys.org
Hi Regis Tro, Welcome to PF.

You've already done most of the math required to find a simplified expression for the frequency. For a given cycle of the waveform you've found the time to charge (call it Δt1) and the time to discharge (call it Δt2). The period of a cycle is then T = Δt1 + Δt2. Frequency is f = 1/T.

If you assign variable names to all your constants and carry them through the calculations symbolically, you should be able to arrive at an expression for T that involves all the parameters. The time constant ##\tau## should be easily extracted from this leaving an expression that, with the given real-life values of the other parameters, should yield your desired multiplier for your period and frequency expression.

You might want to represent the IC's actual upper and lower output voltages as variables, since not every IC will "hit the rails" with its output.

attachment.php?attachmentid=44492&stc=1&d=1330445188.gif


EDIT: PS: You might want to examine the data sheet for your 74HCT14 Schmitt-Trigger. They provide a simple RC oscillator configuration and a suggested formula for determining the frequency :wink:
 

Attachments

  • Fig2.gif
    Fig2.gif
    11.1 KB · Views: 623
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top