So. Hopefully someone can help me. I've been trying to build:
With R1=R2=1k, and RT=2.2k, and C=0.01uF
I'm using 0V as the V- for the opamps, and 5V as the V+. Then, in the circuit, where it says to ground the inverting input on the one and the noninverting input on the other opamp, I just use a voltage divider to give it 2.5V.
So by that logic, I should be getting a triangle wave that goes from ~0V, to ~5V
In pspice, if I use the u741s for the circuit, I get a pretty nice output that shows roughly what I want. The peaks of the wave are rounded, but I'm pretty sure it'll still work for what I'm using it for. If I use OPAMPS instead of u741s, I don't get any output, but I'm not very good with pspice yet, so I could just be setting up the generic 'opamp' part incorrectly.
I've constructed it, and it fails. I simply get a constant voltage output from both the schmitt trigger and the integerator. (Different voltages, but not square/triangle waves, like I should.)
I've tried using u741s, and a single LM358 to built it, but both gave the same results. I've also tried building it exactly like stated in the schematic, with the two inputs grounded, and applied -10V, and
+10V to v-, and v+, but it still didn't work.I can't figure out if maybe I'm just providng R/C values that won't work for some reason, or if I'm missing something else entirely.
Oh, and interestingly enough, if I model this in pspice with 741s, there is something like 50ms of a flat output, followed by the waves I want. It doesn't matter, because 50ms of garbage output is completely irrelevent for me when I end up building this, but I thought it was interesting.
And if anyone can think of a better way to generate a triangle wave with stuff I'd probably have lying around, that'd work too....
I'm controlling a 4 different motors with h drivers, and I'm using a quad comparator and 4 pots to adjust the duty cycle of the square wave given to each motor, so I can drive it all with just one input triangle wave to the comparator. I've never really done this before, but I figured somewhere between like 5 and 20 kHz is the right frequency to drive a small DC motor at (Please correct me if I'm wrong, I could very well be. I just got those numbers from a few minutes of googling), and just plugging in random values, I came up with 11kHz, so I stuck with that.