Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Integrating square to triangle?

  1. May 18, 2005 #1
    Hi guys, I need a bit of help with this. I've got an op-amp and the standard formula:

    [itex]V_{out} = -\frac{1}{RC}\int V_{in} dt[/itex]

    And i need to integrate a square wave from it in order to determine some capacitor/resistor values to get an output amplitude of 5V and freq 200Hz (triangle wave). Every time i try to do it i end up getting 0 as an answer (which is kind of logical, considering one half of the cycle is the negative of the other). For example:
    [itex] V(t) = V[/itex] for [itex] 0 \leq t \leq 0.0025[/itex]
    [itex] V(t) = -V[/itex] for [itex]0.0025 \leq t \leq 0.005[/itex]

    [itex]V_{out} = -\frac{1}{RC} [ \int_{0}^{0.0025}Vdt - \int_{0.0025}^{0.005}Vdt][/itex]

    [itex]V_{out} = -\frac{1}{RC} (0.0025V - (0.005V - 0.0025V)) = 0[/itex]
    How can i get around this problem? Cheers.
     
  2. jcsd
  3. May 18, 2005 #2

    SGT

    User Avatar

    If you calculate the integral for an entire cycle of the wave you get the area under the curve that is of course 0. What you want is not the integral of one period, but the integral from 0 to a time t, that is a function of t.
    [itex]V_{out}(t) = -\frac{1}{RC} [ \int_{0}^{t}V(τ)dτ [/itex]
    The function Vout(t) is a triangle wave.
    If in the function Vout(t) you replace t by 0.005 you get 0, the value of the integral you have calculated.

    edited to inform:
    I don't know what happened. Where appears the number 964, there should be the greek letter τ (tau)
     
    Last edited by a moderator: May 18, 2005
  4. May 18, 2005 #3
    SGT, it looks like you used the symbol for tau; however, you have to use \tau in latex. Maybe the latex code on the server messed things up here... 964 is the HTML reference to the greek letter tau.
     
  5. May 18, 2005 #4

    SGT

    User Avatar

     
  6. May 18, 2005 #5
    Cheers, i still really dont get what i need to do though. I've got the function for a square wave as stated above, but how do i go about finding an expression for R and C? I know they can pretty much be unlimited as i will just get a ratio between them but i dont really see how i can go about getting that ratio...im completely lost :(
     
  7. May 18, 2005 #6
    You just choose some arbitrary values, J. Doesn't matter as long as the product of the two makes the right number.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Integrating square to triangle?
Loading...