Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
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
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
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
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
1 vote
2 answers
904 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