• 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 » Sound Sensor Direction Circuit using Arduino

Sound Sensor Direction Circuit using Arduino

Last updated on 23 June 2026 by Admin-Lavi Leave a Comment

Sound is everywhere and sometimes we want to know from which side sound comes, example in robot or in security; so with Arduino and some sound sensor we can find sound direction.

In this circuit we used four sound sensors and one OLED display with Arduino and OLED show which side sound comes; also this project for Sound Sensor Direction Circuit using Arduino is simple and good for Arduino beginner.

Arduino Code:

#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);

int rightSensor = 8;
int topSensor = 9;
int leftSensor = 10;
int bottomSensor = 11;

void setup() {
pinMode(rightSensor, INPUT);
pinMode(topSensor, INPUT);
pinMode(leftSensor, INPUT);
pinMode(bottomSensor, INPUT);

if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
for(;;);
}
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
}

void loop() {
int r = digitalRead(rightSensor);
int t = digitalRead(topSensor);
int l = digitalRead(leftSensor);
int b = digitalRead(bottomSensor);

display.clearDisplay();
display.setCursor(10,20);

if(r == 1) {
display.print("RIGHT");
}
else if(t == 1) {
display.print("TOP");
}
else if(l == 1) {
display.print("LEFT");
}
else if(b == 1) {
display.print("BOTTOM");
}
else {
display.print("NO SOUND");
}

display.display();
delay(100);
}

Code Explanation:

  • First we include library for OLED.
  • Then we define sensor pins.
  • In setup we set pins as input.
  • We also start OLED display.
  • In loop we read value of each sensor.
  • If sound detected then that sensor pin becomes high.
  • Arduino checks and shows text on OLED screen according to side.

Circuit Working:

Sound Sensor Direction Circuit Diagram using Arduino

Parts List:

ComponentsQuantity
Arduino UNO R4 WiFi1
MAX4466 Microphone Amplifier Module4
0.96 OLED Display (128 x 64 px)1

In the above circuit diagram when sound comes one sensor will sense it first, then Arduino will check which sensor gave signal.

If right sensor hears sound first then Arduino decides sound came from right side and if left sensor hears first then it is from left.

Same for top and bottom and then Arduino will then show direction on OLED screen.

How to Build:

To build a Sound Sensor Direction Circuit using Arduino follow the below steps for connections:

  • First, gather all the parts as shown in circuit diagram.

Connections of MAX4466 Microphone Amplifier Module:

  • Arduinos 5V pin powers the VCC pins of all sensors.
  • Arduinos GND pin connects to the GND pins of all sensors.
  • OUT pin of right sensor connected to Arduino digital pin 8.
  • OUT pin of top sensor connected to Arduino digital pin 9.
  • OUT pin of left sensor connected to Arduino digital pin 10.
  • OUT pin of bottom sensor connected to Arduino digital pin 11.

Connection of OLED Display:

  • VCC pin connect to 5V of Arduino.
  • GND pin connect to GND of Arduino.
  • SCL pin connect to A5 of Arduino.
  • SDA pin connect to A4 of Arduino.

Testing:

  • Clap near right, left, top or bottom sensor.
  • Snap fingers or tap table close to one sensor.
  • Use small speaker or buzzer near sensor side and if circuit works OLED will show that side direction.

Conclusion:

To conclude, this Sound Sensor Direction Circuit using Arduino shows how easily we can detect direction of sound with Arduino using four sensors.

Also, it is a good starting project to learn sound sensors, OLED display and Arduino programming and we can improve it by using more sensors, better calculation or adding motors to rotate toward sound.

Filed Under: Arduino Projects, Sensors and Detectors

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: « Dancing Water Fountain Circuit with Arduino
Next Post: Sound Sensor Circuit using IC LM393 »

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • 555 Timer Projects (129)
  • Alarm Circuits (80)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (139)
  • Automobile Circuits (39)
  • Battery Charger Circuits (85)
  • DIY Projects (381)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (23)
  • Hobby Circuits (220)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (11)
  • LDR Circuits (46)
  • LED and Lamps (199)
  • Meters and Testers (43)
  • Mini Projects (349)
  • Motor Controllers (25)
  • Oscillator Circuits (64)
  • Power Supply Circuits (234)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (19)
  • Security and Protection (120)
  • Sensors and Detectors (233)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (175)
  • Transmitter Circuit (19)
  • Tutorials (29)
  • Voltage Regulator (40)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. egidio grzinic on High Voltage Fence Charger Circuit
  3. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR
  4. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  5. colin on Simple Single Transistor Audio Amplifier Circuit

Copyright © 2026 | New Circuit Ideas