Skip to main content

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
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
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
1 vote
1 answer
479 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
276 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 ...
Miguel Sanz Narrillos's user avatar
1 vote
1 answer
3k 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 ...
Egm's user avatar
  • 65
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
0 votes
1 answer
420 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 ...
Tiago's user avatar
  • 11
0 votes
2 answers
599 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 ...
soundscapes's user avatar
0 votes
1 answer
420 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 ...
Nobody's user avatar
  • 45
0 votes
1 answer
5k 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() ...
Utsav's user avatar
  • 231
0 votes
1 answer
229 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 ...
Nidupb's user avatar
  • 103
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
4 votes
3 answers
783 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
0 votes
2 answers
9k 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 ...
konsalex's user avatar
  • 103
2 votes
0 answers
713 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
0 votes
1 answer
180 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 ...
Roga's user avatar
  • 1
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
0 votes
1 answer
370 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 ...
tabish's user avatar
  • 121
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
0 votes
2 answers
950 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 ...
deltaray's user avatar
  • 284
2 votes
2 answers
251 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
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
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
0 votes
2 answers
270 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 ...
agos46's user avatar
  • 3
1 vote
1 answer
744 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
0 votes
3 answers
2k 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 ...
user3378649's user avatar
0 votes
1 answer
632 views

Help with a rather specific implementation of FFT Library?

So, I guess what I'm trying to do here is properly understand the FFT library posted here by Open Music Labs, done in C++. I believe I understand the Fourier transform, but the FFT has some nuance ...
Scorch's user avatar
  • 149
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
0 votes
1 answer
1k views

Playing music with an Arduino

Good evening! I am quite new with Arduino but not in programming. Still, I have already done some programs with few leds. I was just wandering how to create a circuit and a program that would play ...
Revolucion for Monica'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
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
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
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
0 votes
1 answer
643 views

Are there ultrasonic transducers which are able to produce a "chirp" sound wave?

I'm working in a ultrasonic radar project and the supervising teacher wants us to produce a chirp sound wave (a frequency-varying sinusoid). I'm familiarised with the usual ultrasonic module, but as ...
ebernardes's user avatar
0 votes
2 answers
2k views

How to capture good sound with Arduino?

Is it possible to capture good sound with Aduino? I need to record street / birds / nature sounds. As I found, maximal sample rate, achievable with built-in ADC is 9kHz, which is to low. So, I ...
Dims's user avatar
  • 169
0 votes
1 answer
862 views

Would Arduino Nano be good for Bluetooth + Sound

So I've been browsing around for a whole looking for a good microcontroller that's super small. So far the smallest one I found was an Arduino Nano. But before I go buying it, there are some questions ...
Rowan Harley's user avatar
0 votes
1 answer
122 views

Speaker not producing the right sound after a led strip was introduced

Grove speaker: http://www.seeedstudio.com/depot/Grove-Speaker-p-1445.html ws2812-led strip Hi, I have been working to produce tones on a speaker and it works with the following code int melody[] ...
Zainau's user avatar
  • 47
0 votes
1 answer
1k views

How to use a grove speaker without using delayMicroseconds?

is there another way to replace delayMicroseconds(BassTab[note_index]) as I cannot have delays in my loop due to the need of having multi-tasking in my sketch. Grove speaker: http://www.seeedstudio....
Zainau's user avatar
  • 47
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
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
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
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
2