I want to make a homemade function generator.
I used a Wien-bridge oscillator with a UA741 to produce the sine wave, amplify it with another UA741 because it has quite low amplitude, then integrate it using a TL071 (which has a very good slew rate) to obtain the square wave.
Everything was running smoothly on simulations.
When I tried to implement the circuit I saw that even though the sine wave is fine, I can't get a square wave. The square wave integrator acts as a buffer, it doesnt affect the sine wave at all.
I use Proteus for my simulations and everything was fine in the simulations.
When I checked the simulation I realized that I havent chose the "Attach hierarchy module" for the TL071. When I checked the box I get the same result in the simulation as I get in my real circuit. I don't know what the problem is.
Circuit runs on +/-12 volts at around 16 kHz.
- Whole circuit
- Square wave integrator part
- Attach hierarchy module setting
- Attach hierarchy module checked
- Yellow is sine wave generated by the oscillator
- Blue is amplified sine wave
- Purple is supposed to be square wave
- Green is supposed to be triangle wave
- Attach hierarchy module unchecked
- Yellow is sine wave generated by the oscillator
- Blue is amplified sine wave
- Purple is square wave
- Green is triangle wave