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
6answers
69k 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.
5
votes
3answers
84 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 ...
5
votes
2answers
387 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. ...
4
votes
2answers
13k 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 ...
3
votes
3answers
1k 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 ...
3
votes
3answers
734 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 ...
3
votes
1answer
981 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 ...
3
votes
2answers
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 ...
3
votes
1answer
336 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 ...
3
votes
1answer
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 ...
3
votes
2answers
417 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 ...
3
votes
0answers
141 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. ...
2
votes
2answers
226 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. ...
2
votes
3answers
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 ...
2
votes
1answer
987 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 ...
2
votes
1answer
229 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 ...
2
votes
1answer
401 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 ...
2
votes
2answers
403 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 ...
2
votes
0answers
29 views

Why is my 5 pin switching headphone jack shorting out my circuit when I plug a 3.5mm phono cable into it? [migrated]

I have an STX-3790-5N 3.5mm stereo switching headphone jack in my circuit. https://static.utmel.com/r/datasheets/kyconinc-stx37905n-datasheets-2162.pdf The intention is for the audio signal to flow ...
2
votes
0answers
584 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 ...
2
votes
0answers
483 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 ...
2
votes
0answers
579 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 ...
1
vote
2answers
265 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 ...
1
vote
3answers
915 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 ...
1
vote
2answers
6k 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 ...
1
vote
2answers
106 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 ...
1
vote
3answers
641 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)....
1
vote
2answers
589 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 ...
1
vote
3answers
1k 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" //...
1
vote
1answer
604 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 ...
1
vote
2answers
332 views

Detecting Ultrasonic sensor malfunction within the arduino sketch [closed]

Is it possible to write code in the sketch that checks the functioning of the ultrasonic sensor? Say if the sensor stopped working then the arduino will alert the user in the serial monitor.
1
vote
1answer
387 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 ...
1
vote
1answer
114 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 ...
1
vote
1answer
56 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 ...
1
vote
1answer
55 views

I want turn the led off only when the input is low for a prolonged period of time and not when there are ups and downs in sound signal [closed]

My project is baby cry detection,when the baby cries the led must turn on and when it stops it should turn off, but I want it to turn off only when the baby has stopped crying , not when there are ups ...
1
vote
1answer
520 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 ...
1
vote
2answers
687 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
50 views

How to get sound from analog pin of arduino play it through other pin using speaker [closed]

I am working on a small project on sound detection of lungs. I want to get the sound using a sound sensor and play it on a speaker in real-time using Arduino. Please suggest to me a good sound sensor ...
1
vote
0answers
459 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 ...
1
vote
2answers
66 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 ...
1
vote
1answer
120 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 ...
1
vote
0answers
373 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 ...
1
vote
0answers
30 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, (...
1
vote
1answer
187 views

Changing parameters of pulseIn() to sense different materials

I have a ultrasonic sensor and in order to get the distance I use the pulseIn() function included in the arduino library, and then change it to distance. As the ultrasounds does not work equally in ...
1
vote
0answers
51 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 ...
1
vote
0answers
1k 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 ...
1
vote
0answers
326 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 ...
1
vote
1answer
337 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 ...
1
vote
3answers
977 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 ...