• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Sine Wave Output Circuit with RC Filter

Arduino Sine Wave Output Circuit with RC Filter

Last updated on 3 December 2025 by Admin-Lavi Leave a Comment

This project show how to make simple Arduino sine wave circuit with RC filter.

Arduino cannot give real analog output, but it only gives PWM signal.

So we use low pass RC filter to change PWM into smooth sine wave.

Two potentiometer control amplitude and frequency.

This circuit is very easy and good for small experiment.

Low Pass RC Filter Blocking High Frequency PWM:

Graph showing how RC filter removes high-frequency components:

Gain
1.0 |---------\
0.8 |          \
0.6 |           \
0.4 |            \_____
0.2 |                  \______
0.0 |_____________________________→ Frequency
                 fc

fc is cutoff frequency = 1 / (2 × pi × R × C)

Arduino Coding:

#include <Arduino.h>

int ampPin = A0;
int freqPin = A1;
int pwmPin = 11;

float angle = 0.0;

void setup() {
pinMode(pwmPin, OUTPUT);
}

void loop() {
int ampRead = analogRead(ampPin);
int freqRead = analogRead(freqPin);

float amplitude = map(ampRead, 0, 1023, 0, 255);
float frequency = map(freqRead, 0, 1023, 1, 50);

float sineValue = sin(angle) * amplitude + amplitude;
int pwmValue = constrain(sineValue, 0, 255);

analogWrite(pwmPin, pwmValue);

angle += 0.02 * frequency;
if (angle > 6.28) angle = 0;
}

Circuit Working:

Arduino Sine Wave Output Circuit Diagram with RC Filter

Parts List:

ComponentValue / TypeQuantity
Resistors2.2k1
Potentiometer 10k2
CapacitorCeramic 100nF1
SemiconductorArduino Uno1

This circuit show how to make simple sine wave using Arduino.

We can change sine wave frequency and amplitude very easy.

Arduino pin 11 give PWM signal out.

PWM value keep changing like sine shape.

This make digital sine form.

Then R1 with capacitor C1 make low pass filter.

Filter remove fast PWM and give smooth analog sine.

Potentiometer VR1 control amplitude going to A0.

Potentiometer VR2 control frequency going to A1.

Arduino read both values and change the output signal.

Formula with Calculation:

Low pass filter cutoff frequency formula:

fc = 1 / (2 × pi × R × C)

here,

  • R is 2.2k
  • C is 100nF

fc = 1 / (2 × 3.14 × 2200 × 0.0000001)
fc = 1 / (1.38 × 0.00022)
fc = 723 Hz

This is enough to smooth PWM around 31kHz of Arduino.

How to Build:

To build a Arduino Sine Wave Output Circuit with RC Filter following are the steps to follow:

  • Collect all parts same like circuit diagram.
  • Arduino A0 go to center pin of amplitude potentiometer VR1, other two pins go to 5V and GND.
  • Arduino A1 go to center pin of frequency potentiometer VR2, other two pins go to 5V and GND.
  • Arduino pin 11 connect to resistor R1 2.2k.
  • Other side of R1 connect to capacitor C1 100n and other leg of capacitor go to GND.
  • Point between R1 and C1 is final sine wave output.
  • Make sure all grounds connect together.

Conclusion:

This Arduino Sine Wave Output Circuit with RC Filter is easy way to make smooth sine signal.

Signal is not perfect like real DAC but good for hobby and audio demo.

Two knobs give easy control for amplitude and frequency.

Easy to build and good for beginners.

References:

Creating sine waves with an Arduino

Filed Under: Arduino Projects, Inverter Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « 7812 Based 12 Volt DC Power Supply Circuit
Next Post: Simple 12V Battery Charger Circuit using TIP41 Transistor »

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • Alarm Circuits (45)
  • Amplifier Circuits (67)
  • Arduino Projects (99)
  • Audio Circuits (114)
  • Automobile Circuits (19)
  • Battery Charger Circuits (65)
  • Free Energy (13)
  • Heater and Temperature Controllers (13)
  • High Voltage (1)
  • Indicator Circuits (45)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (148)
  • Meters and Testers (30)
  • Motor Controllers (22)
  • Oscillator Circuits (39)
  • Power Supply Circuits (104)
  • Remote Control Circuits (10)
  • Security and Protection (29)
  • Sensors and Detectors (126)
  • Solar Circuits (29)
  • Timer Circuits (41)
  • Transistor Circuits (87)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (6)

Recent Posts

  • 12V Battery Low Voltage Alarm Circuit
  • Low Voltage Alert Circuit for 9V Battery
  • Digital Code Lock Circuit using IC 4017
  • Darkness Activated LED Circuit
  • Fan Start 10 Second Delay Timer Circuit

Recent Comments

  1. TDHofstetter on DIY Variable Power Supply Circuit using Arduino
  2. feathbuff on Simple Micro Ampere Meter Circuit
  3. Admin-Lavi on Simple School Project Multimeter Circuit
  4. choke on Simple School Project Multimeter Circuit
  5. Admin-Lavi on Analog to Digital Converter Circuit using IC 555

Copyright © 2026 | New Circuit Ideas