Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
19 views

Play computer *.wav files through Arduino

I am doing mice behavioral training. I have an arduino-controlled box for that. The sounds are play using Mp3 player controlled b the arduino. However, the mp3 player is not good enough for my needs. ...
0
votes
0answers
24 views

Music Reactive Fountains

I want to make Music Reactive Fountain. When You say "Holaaaaaa" The fountain (PWM arduino signal) should increase making the fountain reach it's maximum height according to the amplitude of my voice ...
0
votes
1answer
67 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 ...
0
votes
2answers
48 views

How to read sound sensor readings and light up sensor with water sensor if the readings is above threshold & when water is detected for 2 mins?

I am student that is new to Arduino and working on a project to trigger an alert if the sound level detected exceeds the threshold for a period of 2 mins. But I am stuck, would like to check how do I ...
0
votes
2answers
53 views

Where does the sound come from this board? [closed]

As the question says, i can't figure out where the sound comes from on this board that i bought, nothing on the manuals and can't see any speaker on the board... It is a "RFID Proximity Entry Door ...
0
votes
4answers
74 views

help with a loop

I recently got into programing and I'm making an alarm. I cant figure out how to make a buzzer loop. I have two blinking LED's and two fading ones. Now I plan to have sound and it won't work. It only ...
0
votes
2answers
55 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
0answers
41 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. ...
0
votes
2answers
157 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 ...
5
votes
3answers
78 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 ...
0
votes
0answers
110 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
1answer
136 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 ...
0
votes
0answers
28 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
0answers
159 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 ...
0
votes
2answers
47 views

Arduino tone frequency isn't always precise

I'd like to play an asynch 'beep' sound (2.5kHz, pin 8) on an Arduino Mega with several other modules connected. I write them here, just for the record: SDCard reader and RFID reader through SPI bus, ...
0
votes
3answers
2k views

Is there a way to play .mp3 files from an SD card on Arduino?

Is there a way to have mp3 files on an SD card in the SD card shield for the Arduino and play an mp3 file on that SD card with a buzzer? If possible also with something like: playmp3(thismp3.mp3); ...
0
votes
1answer
119 views

Play .Wav sound only once on switch change [closed]

I have a project where if you change the value of the spdt switch the colour of the LEDs change. As well as this a .wav file plays. The problem is I only want the .wav to play once. At the moment it ...
-3
votes
1answer
2k views

Arduino uno audio output quality improvement [closed]

I am new to electronics. I am going to play a sound truck from SD card when user push a button, Well This is very easy and there are lots of methods and codes to play it. the problem is with sound ...
4
votes
2answers
139 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. ...
0
votes
3answers
519 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 ...
0
votes
1answer
59 views

Can an accelerometer be used to detect heart sound?

I've recently come across accelerometer and how it can detect electrical mechanical response. I was wondering can it be used to detect heart sound? Lets say you attach the device close to your chest (...
2
votes
1answer
263 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 ...
1
vote
3answers
460 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
436 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 ...
1
vote
1answer
309 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

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 ...
0
votes
1answer
2k views

Recording and playback sound

I'm working in an art project, is some kind of loop between contact microphones and walkie talkies. I want to create some kind of noisy feedback. I'm putting one walkie-talkie inside of a bottle, and ...
1
vote
0answers
37 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 ...
0
votes
0answers
91 views

hc-sr04 water experiment. - ignoring first set of data

Im working on an experiment where I where i need to measure the speed of sound in water. I am using the hc-sr04 sound sensor to gather data, but I have run into a problem where the water reflects some ...
0
votes
1answer
228 views

Arduino HC-SR04 water experiment

I am working on an experiment with the HC-SR04 sound sensor, and i am using it to record the speed of sound. I successfully measured the speed of sound in air, but when measuring it in water, I ...
0
votes
2answers
271 views

Triggering Sound - Arduino + Contact Mic

I previously created a sound installation using contact mics and computer (ableton+max msp) where sound would be triggered when people touched/tapped on the object/surface. Now I want to do something ...
1
vote
0answers
33 views

Not hearing PlayBack from code that records and plays back MIDI

I have altered some code that i found online that records and playback midi data from a midi controller. from my testing i am pretty sure that notes are being recorded from my midi controller, i have ...
0
votes
1answer
200 views

Execute function until called again?

I am building a simple security system with my Arduino Uno. I have an alarm() function: void alarm() { tone(8, 3300, 200); delay(200); tone(8, 3000, 200); delay(200); } When I call it in the ...
0
votes
1answer
2k views

Why is the piezo buzzer not making any sound?

My ciruit: My code: // Pin 13 has a LED connected on most Arduino boards. // give it a name: int led = 13; const int buttonPin = 2; // the setup routine runs once when you press reset: void setup() ...
0
votes
1answer
116 views

Why do we need to amplify the signal of an electret? [closed]

I do understand from my reading that I should amplify the signal from an electret to be able to read it with an Arduino. I'd love to know the science behind that, why should we amplify the signal to ...
3
votes
2answers
850 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 ...
4
votes
3answers
650 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 ...
0
votes
2answers
5k views

Arduino sound equalizer

I'm trying to build a led equalizer using arduino and I want to light up with the frequencies. And I need a little help on how I should do it cause Im a beginner. Should I use pulsein() or analogin ...
1
vote
0answers
487 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 ...
0
votes
1answer
151 views

Applause reactivity

I'm making a pretty basic light circuit and I'd like to have it react to applause or laughter, but NOT during regular speech, amplified over speakers. I'm wondering if anyone has already made a ...
4
votes
2answers
7k 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 ...
0
votes
1answer
220 views

Random output on decoding time from LTC audio using arduino UNO

I am a newbie in Arduino and I am trying to decode time from ltc audio. For this I got Arduino UNO. I got a sample code from here.. Here my code: #define icpPin 8 // ICP input pin on arduino ...
3
votes
1answer
617 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 #...
0
votes
2answers
557 views

Can't play melody and FastLED lights at same time

I'm trying to make an OO state machine based program to play music and lights at the same time. It uses the FastLED library and a 13 pixel neopixel strip. I've confirmed that with the currently wired ...
3
votes
2answers
194 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. ...
1
vote
0answers
880 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 ...
2
votes
3answers
696 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 ...
0
votes
2answers
99 views

Need to make an action just once when condition is reached

I'm making a device for the visually disabled that makes a sound when the water in a bowl reach certain levels. I've already made the sensors for three levels of water and if statements to make the ...
1
vote
1answer
321 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 ...
0
votes
3answers
837 views

Getting the average of sound in last minute

I am reading sound input every 60 seconds and I would like to calculate the average of sound during that period using non-blocking code; what should I do to change the way that I calculate it in ...