Capacitor help (sawtooth signal)

Status
Not open for further replies.

kardzzz

New Member
Hi guys, I am using a PIC Micro to generate a signal of 11hz per second (i.e. it pulses 0 and 1 eleven times per second), which will generate a squarewave signal.
I want to modify the signal to output a 'sawtooth' signal. How do I calculate the capacitor value to use?

Is there a formula to use where I input Voltage, frequency etc.

Thanks
 
A resistor and a capacitor (LP filter) will generate an exponential sawtooth (some curvature in the slope of the sawtooth) with a square-wave input. The higher the amplitude of the sawtooth in relation to the square-wave amplitude (determined by the RC time constant), the more slope you will see. If you select the time constant to give a small amplitude sawtooth and then amplify it to the desired level, the slope can be fairly straight.

If you want a perfect sawtooth with straight slopes, you will need a current source driving the cap, or use an integrator circuit (op amp or transistor).
 
Three circuits:
 

Attachments

  • SawtoothRC.jpg
    180.9 KB · Views: 146
  • SawtoothTran.jpg
    177.8 KB · Views: 133
  • Sawtooth.jpg
    225 KB · Views: 147
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…