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
0 votes
1 answer
103 views

Interfacing 8 ohm speaker ouput with ESP32

I'm trying to use an ISD1820 recording module with the ESP32, except I want to store the recordings and send them over Wifi rather than playing them back. The ISD1820 has an output for an 8-ohm ...
user89016's user avatar
1 vote
0 answers
109 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
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
2 votes
2 answers
222 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
1 vote
2 answers
444 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 votes
2 answers
2k views

Perform Volume Control on arduino speaker

I am following this guide to produce tones with the arduino: https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody This uses the tone() builtin function. The connections is that one pin of the ...
user1584421's user avatar
  • 1,405
0 votes
1 answer
413 views

Tone() function pauses between notes

I tried to experiment with the tone() function that comes with the arduino library. I played around with the standard code example located here: https://www.arduino.cc/en/Tutorial/BuiltInExamples/...
user1584421's user avatar
  • 1,405
2 votes
2 answers
1k 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
1 vote
0 answers
304 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
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 votes
1 answer
149 views

Host a webserver on an ESP32D that has a hyperlink that triggers an Arduino song through a buzzer

I would like to use my ESP32D to create a wireless access point and host an HTML page that has a hyperlink and a few other things on it that triggers an Arduino song (rickroll), and plays it through a ...
JaydenE55's user avatar
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
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
0 votes
1 answer
3k views

Sound quality is poor using a piezo in TinkerCad

I did a quick search and couldn't seem to find this question posted already, but I'm sure it must have so forgive me if it's a repeat. I'm using a piezo and Arduino on TinkerCad to produce notes ...
Mike's user avatar
  • 1
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
0 votes
1 answer
272 views

Arduino Nano Fried on Music Reactive Led Strip

I'm doing a project that involves an Arduino Nano, a sound detection microphone module and a RGB Led strip (individually adressable leds). I also bought an accumulator so I can connect everything ...
imx78's user avatar
  • 1
0 votes
1 answer
475 views

Arduino code for turning an led on by one clap and then off by one clap

I want my Arduino to turn on a LED when sound sensor detects a clap (noise) and keeps the LED on until the sound sensor detects another clap (noise) which turns the LED off. int Sensor = A0; boolean ...
Krishna Chakrabarty's user avatar
1 vote
2 answers
214 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
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
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
0 votes
1 answer
558 views

How to use more than 2 I2S microphones on MKR Zero?

I am trying to build a portable device that can record from at least 3 microphones. I had a look and saw I2S is good for audio so I bought an Arduino MKR Zero to read them with. I was wondering how to ...
David Gregory's user avatar
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
0 votes
0 answers
511 views

How to stop the screeching noise that comes from buzzer?

I use sfm-27 dc 3-24v Buzzer. It sounds fine if i close the buzzer using my palm but if i doesn't close it, it will make a screeching noise. I play melody using the buzzer so the sound is important. ...
Hanim's user avatar
  • 11
1 vote
2 answers
119 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
0 votes
1 answer
1k views

Why does my code treat my sound sensor as if it's always HIGH

I have a sound sensor that was working perfectly fine as I was using it as a clap sensor to turn lights on and off. However, I tried to change the code to make it work a little smoother and for ...
JoffLobster's user avatar
1 vote
1 answer
215 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
0 votes
1 answer
63 views

Having an issue accessing values from a pointer

Context This may be more of a C++ question than an arduino specific question, but it's dealing with arduino c++ so I thought I'd start here. I'm building a class to abstract some simple melody ...
Chris Schmitz's user avatar
0 votes
1 answer
457 views

Writing Data through Pin at certain frequency

I have an Arduino UNO which is connected to an KLZ25 board, the Arduino sends an 1MHz Clock at Pin 9 and now I should write the PDM-Data with 1 Mhz at pin 8. But i don't know how to write with such a ...
FoldFence's user avatar
  • 103
0 votes
1 answer
69 views

I am not able to set the correct configuration of sound module

I have been trying to make sound reactive LED lights but my sound module is detecting only very close voice the LED react only when I press it to the speaker with my hands I have tried to set the ...
Atom Warex's user avatar
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
-1 votes
2 answers
1k 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. ...
user135172's user avatar
1 vote
2 answers
766 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
0 votes
2 answers
646 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 ...
hmppp's user avatar
  • 13
0 votes
2 answers
94 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 ...
Manel Alonso's user avatar
0 votes
4 answers
91 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 ...
jace's user avatar
  • 11
3 votes
1 answer
289 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
1 vote
2 answers
911 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
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
1 vote
0 answers
482 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
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
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
2 votes
0 answers
978 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
0 votes
2 answers
112 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, ...
pcjuzer's user avatar
  • 101
0 votes
3 answers
5k 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); ...
Mishal's user avatar
  • 1
0 votes
1 answer
423 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 ...
Moby1's user avatar
  • 15
-2 votes
1 answer
4k 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 ...
Majid Hojati's user avatar
5 votes
2 answers
739 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
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
0 votes
1 answer
120 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 (...
Jamie's user avatar
  • 23
2 votes
1 answer
526 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