Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [sound]

sound is a vibration that propagates as a typically audible mechanical wave of pressure and displacement, through a transmission medium such as air or water.

Filter by
Sorted by
Tagged with
14 votes
6 answers
84k views

Is there a way to play sounds from an Arduino without using a sound shield?

I would like to play a wav file (spoken words) from my Arduino. I do not want to add a sound shield. Is there a way to play a sound through an output pin? The quality does not have to be great.
Hoytman's user avatar
  • 747
5 votes
3 answers
94 views

How to improve response time of this sound operated LED?

I have written the following code for lighting an LED on a clap ( using sound sensor) that I have connected via a resistance of 330 OHM on pin number 4. However, when I clap once, close to the ...
Haider Ali's user avatar
5 votes
2 answers
728 views

Does the tone() generates unwanted signal?

I was trying to use the tone function for another project but I found that it also generates an undesired frequency (not the harmonics above of square wave it generates) but a lower frq square wave. ...
user174174's user avatar
4 votes
3 answers
781 views

Mini Voice Recorder for Arduino

I am trying to find a small voice recorder that I can use with my Arduino Micro, and I found this. It is exactly what I am looking for, but it is now a retired product. I googled ISD1932, but many ...
Nobody's user avatar
  • 45
4 votes
2 answers
17k views

How to connect Arduino to headphone jack?

I would like to connect a headphone jack to my Arduino and make it as an output. I mean I would simply send some simple beeps. I know that there is a breadboard friendly headphone jack, but I don't ...
Leah's user avatar
  • 145
4 votes
1 answer
1k views

exit status 1 error compiling for board arduino/Genuino Uno when tone code is used

I am just trying to use an ultrasonic sensor with a buzzer but the buzzer doesn't respond to my code. I mean it doesn't make any sound. I tested it to check if by sending 5 volts to it, it will make a ...
Glenn Macion's user avatar
3 votes
2 answers
7k views

How do I use Sound Sensor LM393 + Speaker in Arduino

I have this voice sensor: I need to know how bytes pass through soundsensor into arduino and get this bytes and put out in a speaker. I read on the net a Lib PCM thats converts chars in voices, but ...
Radagast's user avatar
  • 133
3 votes
3 answers
2k views

Sound Recognition

I'm looking to recognize a particular sound using arduino uno. I need to recognize a clap sequence to trigger a relay. Having given it some thought i need it to be continuous listening mode with out ...
Ajay Free's user avatar
3 votes
1 answer
1k views

Setting the frequency of a timer interrupt

The concept: Play a sine wave saved as a character array in PROGMEM through an 8-bit DAC connected to the PORTC pins on the Arduino Mega. This works: // File just defines an array and a size #include ...
Dave's user avatar
  • 133
3 votes
1 answer
390 views

Push-Pull tone code

I wanted to use a piezo sounder to sound an alarm in an application. Testing indicated that tone() was not very loud. I could use some external circuitry to swing the pins ±5V but as I have plenty of ...
Milliways's user avatar
  • 1,645
3 votes
1 answer
1k views

How to configure I2S with ESP32 and MAX98357A to reproduce wav files?

I have configured I2S to reproduce files with an ESP32 and a MAX98357A from and SD card. The problem is that it reproduces the files way too fast, like they are sped up * 100. Here is my (simplified) ...
Joaquin's user avatar
  • 51
3 votes
2 answers
4k views

Help Understanding FFT Analysis and analogRead()?

Here's the deal, I'm attempting to learn how to use an FFT (Fast Fourier Transformation) Library for sound analysis (link is here). My issue is that this comes with included C++ code to show users how ...
Scorch's user avatar
  • 149
3 votes
3 answers
3k views

How to get rid of low quality sound out from DFPlayer plus amplifier?

I use my Seeeduino V4, DFPlayer mini, and this speaker module from AliExpress to create an automatic doorbell. The problem is that it seems that this speaker module's Yurobot amplifier is not ...
Starter's user avatar
  • 153
3 votes
1 answer
286 views

TM1638 making high pitch sound?

I have a TM1638 board with 8 seven-segment displays, 8 LEDS, and 8 buttons. Each time multiples leds are on, the board makes an annoying high pitch sound. I'm controlling it with an Arduino Uno. ...
Dat Ha's user avatar
  • 2,913
3 votes
0 answers
1k views

How to build image with ultrasound sensors HC-SR04 [closed]

There is a simple algorithm on Wikipedia: how to build ultrasound image. And I want to build one. Resolution and presision are of no importance, I just want to do this for the case of study - I want ...
xakepp35's user avatar
  • 133
2 votes
2 answers
216 views

Tone() generates a high pitched sound when button is released

I have a simple circuit that makes use of the tone() function to produce some sounds. I also have a button, hooked with an interrupt function, that whenever is pressed, a variable changes. Sometimes, ...
user1584421's user avatar
  • 1,405
2 votes
2 answers
982 views

Keypad pin as an interrupt (Wiring or programming)

I have this project of a "phone". It consists of: Arduino DUE, 4x4 Keypad, SD Data shield, a phone receiver detect (on/off) an Amp and a Speaker. In the beginning, after the phone receiver ...
GoldenMoose's user avatar
2 votes
2 answers
249 views

What do I need to make fluffy toys move and talk?

My kids got many fluffy toys, and I would like to make them move and talk. Something like a small platform with wheels and a speaker and some sensors that I would be able to mount any of the toys on. ...
Michael's user avatar
  • 141
2 votes
3 answers
2k views

Proper way to run functions in loop

I am having a problem getting my functions to run properly from the loop. I am building a model railroad crossing gate and need to run the 4 processes once the sensor signals the train entering the ...
dinotom's user avatar
  • 360
2 votes
1 answer
1k views

Rotate Robot head according to Sound level

I'm currently working on a robot using an Arduino and I'd like to control robot's head like this: Imagine that it is on your desk and it can turn it's head through a range of 150 degrees like a human ...
Samitha Nanayakkara's user avatar
2 votes
1 answer
241 views

Connect an mp3 player to an Arduino?

I have been looking for a good way to play sounds using an Arduino. I started to consider just buying a cheap mp3 player and replacing the player's buttons with optical switches, which connect to an ...
Hoytman's user avatar
  • 747
2 votes
1 answer
520 views

Is there any arduino microphone that can record heart sound?

I'm currently undergoing a project where I record heart sound (mechanical response) and send it over bluetooth to an app. However I'm finding it really hard to find an arduino microphone or just ...
Jamie's user avatar
  • 23
2 votes
2 answers
443 views

Arduino MP3 Player

I want to make a MP3 player with arduino. My problem is what board should I use? There is the SparkFun MP3 Player Shield, SparkFun Audio-Sound Breakout - WTV020SD. Then I want to attach a 2.8 TFT ...
Dgameiro's user avatar
2 votes
0 answers
963 views

Connecting RCA audio cables to Arduino

I'm working on a project which needs better audio quality than just a piezo buzzer, so I went out and bought a pair of used cheap speakers for $3. It turns out that they have RCA audio inputs rather ...
David Liao's user avatar
2 votes
0 answers
66 views

LEDs interfering with analog sound detection

My project is a sound reactive LED display on an Arduino Nano. There are 112 WS2811s in series connected to 5v, Gnd and D5 via 220ohm resistor. I have a Keyes style sound detection module that has an ...
Tom Auger's user avatar
  • 193
2 votes
0 answers
710 views

Arduino FFT library - Open Music Labs installation help

I downloaded the zip file of the FFT library from the below link http://wiki.openmusiclabs.com/wiki/ArduinoFFT and it now as I implement the example codes, it gives out a message which says "Error ...
Abhilash's user avatar
2 votes
0 answers
2k views

SimpleSDaudio giving a lot of static from speaker

I'm using SimpleSDaudio (http://www.hackerspace-ffm.de/wiki/index.php?title=SimpleSDAudio) to play wav files. The connections are as follows: MISO pin 12 SCK pin 13 SS pin 4 MOSI pin 11 Speaker ...
user2252219's user avatar
2 votes
0 answers
342 views

How to generate Analog Signal (Voice) to the microphone

I have question about microphone and generating sound signal. I have microphone in my intercom at home. It is simple analog microphone, not digital. What I want is to connect arduino analog ...
dugdthndwytn's user avatar
1 vote
3 answers
1k views

Can do I make an Arduino program that can decipher telephone touch tones?

I have an old land line phone that I want to connect to my Arduino. Then I would like to write a program that can decipher the touch-tone button presses (which are a combination of two tones) so that ...
Hoytman's user avatar
  • 747
1 vote
2 answers
287 views

Switch on the piezo emitter for a short time

I need a short beep for every minute of change. I wrote a separate function. The signal duration should be 50 ms, the rest of the time the emitter connected to the A1 contact should be silent. A ...
Антон's user avatar
1 vote
2 answers
416 views

Analog Microphone values not changing

I just bought a microphone for my Ardoino Nano 33 BLE. The mic can use both Analog and Digital input. Here is the mic and how it's connected. Here is the code where I read the input int sensorPin = ...
Vubbe's user avatar
  • 11
1 vote
3 answers
2k views

Arduino recognize specific sound?

I'm wondering if Arduino is able to not just measure sound and work based on hearing a sound that is "loud enough", but if it is able to identify a specific sound (say the first few seconds of a song)....
sonder's user avatar
  • 13
1 vote
1 answer
743 views

How to Serial read two consecutive chars sent by computer to Arduino?

My program reads the input and plays the appropriate note for 500 milliseconds. If I type in 'a', tone(8, 440, 500) will be called. I now want to add different note lengths so that in the future, I ...
shurup's user avatar
  • 300
1 vote
1 answer
1k views

ESP32 playing wav sounds distorted or too fast (but not all wav's)

I am building a sound project on an ESP 32 via I2S using an example from: https://github.com/nhatuan84/esp32-i2s-sdcard-wav-player It works fine with the example wav file t.wav posted in the ...
Jeroen's user avatar
  • 21
1 vote
2 answers
117 views

A recommendation for a fast-response-time-resolution-mp3-module for arduino

I am working with Arduino which activates a box which is similar to a Skinner Box. Some of the output sound stimuli are sine waves with duration of less then 5 milliseconds. I output the sounds using ...
user135172's user avatar
1 vote
2 answers
1k views

Sound localization using two mics, Arduino Uno on MATLAB

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net. I want to know if its possible to actually achieve sound localization using ...
geek101's user avatar
  • 111
1 vote
3 answers
2k views

LEDs not working with tone() function

I have a strange issue. I have 3 LEDs, each is supposed to beep with a correlated tone... Imagine the beginning of a racing game (beeping with traffic lights). Here's my code: #include "pitches.h" //...
Tyler's user avatar
  • 13
1 vote
1 answer
478 views

Can we use yx5300 to play audio from a file in Arduino?

I want to play a file that I have in my USB device through a yx5300 mp3 module. I have a file in my USB device at path Music/hello.mp3. I want to play this file using the yx5300 module or some other ...
Shubham Rawat's user avatar
1 vote
1 answer
1k views

With the press of a button, I need to play an intro sound file, then one of 50 other sounds in order, each time a button is pressed

I need to play an intro file and one of 50 different files after it in order each time the switch is pressed, with a short delay between the intro and next file. For example let's say the intro is ...
AdamDallas's user avatar
1 vote
1 answer
68 views

Sound sensor only detect peaks

I'm using this SparkFun Sound Sensor in my project for a simple ambient sound meter. I'm just trying to monitor the raw analog envelope output for the moment. My problem is that the output only ...
loicb's user avatar
  • 111
1 vote
2 answers
213 views

Creating and Arduino synthesizer without the tone library

I am thinking about trying to make an Arduino synthesizer using the true analog output on the Due. However I would like to be able to play multiple notes at the same time on a single buzzer. Is this ...
Someone's user avatar
  • 113
1 vote
2 answers
758 views

Analog output gives a close range of values

I try to get a good range of values from VMA309 sound sensor. However, when I connect it properly it gives me a range of values +/-5 like below. The documentation says it should give numbers ...
bassyproductionz's user avatar
1 vote
2 answers
904 views

Digital Sound sensor

I am having trouble with my digital sound sensor. My goal: Clap 2 times and a led goes on. So I wrote this code. I don't know if it is correct or not. This happens: If I clap, from the serial monitor ...
jan's user avatar
  • 19
1 vote
1 answer
356 views

SimpleAudioPlayer + sleep function

I have tested the SimpleAudioPlayer example. https://www.arduino.cc/en/Tutorial/SimpleAudioPlayer This works fine, but when I add a sleep(1000) at the end of the loop() function, the music sounds ...
Mario's user avatar
  • 21
1 vote
0 answers
104 views

Using I2S MEMS microphone breakout (SPH0645) as frequency detector

Good day. I would like to ask for help regarding the code for my project. I am using an I2S MEMS microphone breakout (SPH0645) to my Arduino Nano 33 IoT. Here are my pin configurations LRCL to A2 of ...
niwran gaming's user avatar
1 vote
0 answers
302 views

Making tmrpcm.play("1.wav") depend on LDR feedback?

I have the speaker working with the tmrpcm.play working, but this only plays when the arduino is powered up or reset. Can i make the .wav play in anther other ways? I wan't the file to play when i ...
Elisabot's user avatar
1 vote
1 answer
212 views

How to detect patterns in an FFT output?

I have an FFT output from a microphone and I want to detect a specific animal's howl from that (it howls in a characteristic frequency spectrum). Is there any way to implement a pattern recognition ...
rubemnobre's user avatar
1 vote
0 answers
481 views

PCM library - Timer0

I would need a quick help if possible because I have a project with the deadline tomorrow night. On my Uno (atmega328p in fact), I need to communicate with a SPI flash to transfer music and then, take ...
idalurf's user avatar
  • 11
1 vote
0 answers
32 views

Power on, power off voice using fx board

I played with one of those Adafruit FX sound boards in a project a while ago, and see a lot of potential uses for it. I would like to create “something” for my daughter, when she turns the lights on, (...
Bender's user avatar
  • 61
1 vote
2 answers
1k views

Voice recognition without module, is it possible? [closed]

I'm trying to figure out how to process a voice signal for simple purposes. Wherever I look people using or suggesting recognition modules for Arduino. What I'm wondering: is this possible to make a ...
Unal Celik's user avatar