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
1answer
42 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 ...
0
votes
1answer
180 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 ...
0
votes
1answer
342 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
2answers
8k 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 ...
0
votes
2answers
201 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 ...
0
votes
3answers
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 ...
0
votes
1answer
84 views

Vibration pattern matching [closed]

I would like to generate vibration patterns using the SW-420 or something similar that is able to reproduce the same pattern on similar vibrations. So if a 10p coin was dropped on a table from 1m at a ...
0
votes
1answer
879 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 ...
0
votes
1answer
663 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 ...
0
votes
2answers
524 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
1answer
88 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 (...
0
votes
1answer
3k 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
595 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 ...
0
votes
2answers
1k 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 ...
0
votes
1answer
96 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 ...
0
votes
1answer
316 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 ...
0
votes
1answer
57 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 ...
0
votes
2answers
74 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
2answers
61 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
1answer
368 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
502 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 ...
0
votes
1answer
310 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 ...
0
votes
2answers
824 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 ...
0
votes
1answer
559 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 ...
0
votes
1answer
549 views

Sending sound signal of computer's sound card to arduino

how can i send the signal of sound card to arduino? I want to send sound signal of computer's sound card to Arduino just connect a wire from card to Arduino.. and then i will process it by programming ...
0
votes
1answer
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....
0
votes
0answers
31 views

Detect low-frequency 'kicks' from analog jack music

I want to detect kicks / high-amplitude, low-frequency peaks in music coming from an RCA jack directly to an Arduino Uno analog pin. I've seen some tutorials online, but only managed to find stuff ...
0
votes
1answer
223 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 ...
0
votes
0answers
266 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. ...
0
votes
4answers
90 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
3answers
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); ...
0
votes
1answer
342 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 ...
0
votes
0answers
40 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
207 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 ...
0
votes
1answer
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 ...
0
votes
1answer
828 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 ...
0
votes
1answer
110 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[] ...
0
votes
1answer
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 ...
-1
votes
2answers
969 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. ...
-2
votes
1answer
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 ...

1
2