how to generate a pure sine wave using an Op-Amp

Published by MKDas on

Hi, you can generate a pure sine wave just using an Op-Amp. It is very simple and can be used in many applications. In this article, we are going to learn how to generate a pure sine wave using an Op-Amp.

Disclaimer: Electricity is always dangerous. Skill required to work with electricity. Do work at your own risk. The author will not be responsible for any misuse or harmful act. This website contents are also copyright protected. Anything copied and directly posted on your website and claiming it as yours is prohibited and nonsensical. The author published all the articles as open source to help you to make your project and learning purpose only. Learn and make one for yourself. If need any help feel free to ask the author. The author will be helpful to you. Thanks.

How to generate pure sine and co-sine wave?

There are different ways to generate sine and cosine waves. But You can do it in one of the most simple ways. Just using an Op-Amp. Even you do not need any special one for this. Just use any general-purpose Op-Amp for this. 3 resistors and 3 capacitors will be enough for our “how to generate a pure sine wave using an Op-Amp” project.

Circuit diagram:

Sine and Cosine wave generator circuit

Circuit explanation:

Here all the capacitors are non-polar ceramic capacitors. You can change the values to change the frequency. Here a start button is connected to the proteus circuit only. You do not need to use it in a practical circuit.

The working concept is very simple. One Op-Amp (LM358) generates an output which is slowed by the capacitor again another Op-Amp helps in another slow movement of reference. Thus a sine wave is formed rather than a square wave. And due to capacitor phase shift, we get a cosine wave.

Simulation result:

Sine wave and cosine wave output

While simulating in proteus, press the start button once. In a practical test, you do not need this.

You can read this article from our blog: How to make a Single Phase AC voltmeter using PIC16F76 & Capacitor power supply

Practical test:

Practically, the circuit was arranged in a small project board and measured with an oscilloscope. Here I used variable resistors to test the effect of changing resistor values. You can do that too to do some research on a sine wave.

Test circuit on project board
Output wave shape


This project was a very small one and interesting too. Who doesn’t like a sine wave? That’s why it was really interesting to me too. I hope you enjoyed the project and made one for yourself. Thank you, Enjoy!


I'm Mithun K. Das; B.Sc. in EEE from KUET, Bangladesh. Blog: "First, electronics was my passion, then it was my education, and finally, electronics is now my profession." I run my own electronics lab, M's Lab ( Where I work with the creation of new products from ideas to something in real life. Besides this is my personal blog where I write for hobbyists and newcomers in the electronics arena. I also have a YouTube channel where I publish other helpful videos, you can find the link inside the articles. I always try to keep it simple so that it becomes easy to understand. I hope these will help them to learn electronics and apply the knowledge in their real life.


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *