This is a small Arduino tone generator project.
It uses Arduino Uno, one buzzer, one potentiometer to change the pitch.
This Arduino Pitch Control Circuit using Potentiometer is simple and easy to make.
It helps beginners understand PWM, analog reading and digital output.
We can use this project to learn basic sound making using Arduino.
Arduino Coding:
int pot = A0
int buz = 8
int val
int freq
void setup() {
pinMode(buz, OUTPUT)
}
void loop() {
val = analogRead(pot)
freq = map(val, 0, 1023, 100, 2000)
tone(buz, freq)
delay(10)
}Code Explanation:
- Pot is potentiometer pin.
- Buz is buzzer pin
- AnalogRead reads voltage from potentiometer
- Map converts analog value into frequency range
- Tone sends square wave to buzzer
- Delay gives small pause for stability
Circuit Working:

Parts List:
| Part | Quantity |
|---|---|
| Resistors | |
| 220Ω 1/4 watt | 1 |
| 10k potentiometer | 1 |
| Semiconductors | |
| Arduino Uno | 1 |
| Passive Buzzer | 1 |
Arduino gives tone signal to buzzer and potentiometer gives voltage signal to Arduino analog pin.
Arduino reads this value and converts it into frequency.
Then Arduino sends frequency to buzzer on digital pin using tone function.
When we turn potentiometer knob, the voltage at center pin changes.
Arduino reads this voltage and gets a number between 0 and 1023.
Arduino maps this number to frequency.
Higher voltage gives higher tone.
Lower voltage gives lower tone.
Arduino sends this frequency to buzzer.
Buzzer vibrates and makes sound.
How to Build:
To build a Arduino Pitch Control Circuit using Potentiometer follow the below steps:
- Assemble all the parts as shown in circuit diagram.
- Potentiometer center pin goes to Arduino A0
- Potentiometer left pin goes to Arduino 5V
- Potentiometer right pin goes to Arduino GND
- Buzzer positive pin goes to Arduino digital pin 8
- Buzzer negative pin goes to GND
- Connect R1 220 ohm resistor in series with buzzer positive line
Conclusion:
This Arduino Pitch Control Circuit using Potentiometer is easy to try for.
It teaches analog reading, mapping and sound output.
We can expand this to music projects, alarms or fun sound toys.
Good for beginners to understand how hardware and code work together.
Leave a Reply