Skip to main content

Questions tagged [audio]

Using an Arduino to play noise, sounds, or music. Also for questions about audio input.

Filter by
Sorted by
Tagged with
14 votes
3 answers
34k views

Want to create bluetooth audio control (volume up/down, play, pause, etc.) for smartphone

I want to create a bluetooth remote audio control to control smartphone audio, essentially identical in function to this type of equipment: https://www.amazon.com/FAVOLCANO-Bluetooth-Button-...
Howiecamp's user avatar
  • 243
8 votes
2 answers
14k views

Audio Frequency White Noise generation using Arduino Mini Pro

For DIY, how to program Arduino Mini Pro to act as an Audio Frequency White Noise generator? Presumably, a) using one Digital Output pin b) feed to a simple passive RC low pass filter to reduce ...
EEd's user avatar
  • 904
6 votes
2 answers
16k views

Connecting an Arduino to a telephone line?

I would like to connect my Arduino Uno to a telephone line in order to answer a call, record a sequence of DTMF tones, generate a DTMF tone in response, and hang up. The telephone line uses a ...
Nathan Osman's user avatar
6 votes
1 answer
15k views

Streaming audio from PC to Arduino over WiFi

Say I wanted to, purely hypothetically, set up a pirate radio station by connecting an Arduino to a WiFi network away from home, streaming music to the Arduino, decoding it, and broadcasting it with ...
Joris's user avatar
  • 163
5 votes
6 answers
16k views

DFPlayer Noise: Researched, Tried, and Bep Bep Bep Bep Bep

Spent an entire day researching and attempting to fix the DFPlayer noise problem. The amp works as expected, so it is not the problem. I have made a video to help you better understand the sound ...
Joshua Roehrig's user avatar
5 votes
4 answers
7k views

Listen for specific frequency

I’m trying to build a custom baby monitor for my wife who is deaf. It needs to detect loud noises and listen for a specific series of tones from a feeding pump our daughter uses. It will then send a ...
Curtis Fuller's user avatar
5 votes
2 answers
173 views

Practicality of recording speech

Is it practical to record speech with the Leonardo? I want to record speech via a MEMS microphone and stream it over a serial connection to a Raspberry Pi for speech-to-text processing. This article ...
Cerin's user avatar
  • 1,668
4 votes
4 answers
14k views

Transistor amplifier to drive speaker using Arduino PWM [closed]

I have been working on a project lately which uses Arduino to play a wav file from SD card. I am using TMRPCM library which made the job very easy. But the problem is that the output sound in the ...
Frank Donald's user avatar
4 votes
1 answer
1k views

Is it possible to sample sound with arduino?

I have the arduino duemilanove with atMega328. The frequency is 16Mhz. I want to sample and record from the audio jack. I searched and i found if i want to record "everything - so to speak", i have ...
user1584421's user avatar
  • 1,415
4 votes
1 answer
883 views

Is it possible to start audio playback when headphones gets plugged in?

I want to have 6 audio jacks IN waiting for connection to start some WAV/OGG playback as soon as a headphone plugs in. In fact, I'd like to have simultaneous playback in 6 lines. I've seen in the ...
adr1an's user avatar
  • 43
4 votes
2 answers
3k views

Good quality sound using a microcontroller

I am a hobbyist. Doing some experiments with sound quality. I'll pin point my problem and requirements. Problem statement :I want to play audio files ( recorded in human voice, not music files, just ...
muphy's user avatar
  • 59
4 votes
3 answers
799 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
4 votes
2 answers
18k 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
4 votes
1 answer
55 views

Issues using mini microphone module off AliExpress

I have been trying to get a mini microphone module with an inbuilt microphone module I got from AliExpress to my Arduino to confirm if it is working. It was a four pin microphone with pins labeled V, ...
Daniel Abayomi's user avatar
3 votes
2 answers
5k views

What is the best way to get more RAM for a sound buffer?

The problem: How to extend the memory for a sound buffer (intensively used) if: SD card library supports only one file open at a time (and I have one open already) EEPROM chips are able to stand ...
P.W.'s user avatar
  • 317
3 votes
1 answer
3k views

Using TMRpcm library, the audio does not play

I'm using the https://github.com/TMRh20/TMRpcm/wiki library to play wav files from an SD card to a speaker I have attached to my Arduino. I have run separate tests/programs that ensures: my speaker ...
kailia's user avatar
  • 31
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
3 votes
1 answer
435 views

PT2257 only gives me heavy buzzing sound

I have this project where I control a bluetooth audio module with an arduino. In this case, I have used an arduino nano. But then, I have been meaning to add volume control to the project so I use a ...
shafiyyah's user avatar
3 votes
1 answer
803 views

Noise when running Arduino close to analogue audio circuit

TL;DR: My Arduino is injecting a lot of noise into an analogue audio circuit, even when not physically connected. I'm experimenting with using an Arduino as a low-frequency oscillator in audio ...
helveticat's user avatar
3 votes
1 answer
359 views

Arduino audio output circuit

I am looking to build my own arduino-based board that, when triggered, will play a file (line out, not amped to a speaker). Most of the audio shields I see are more complicated than I need, so what I'...
TheAutomator's user avatar
3 votes
1 answer
91 views

Error trying to play audio through an ESP8266 using the 'ESP8266Audio' library

I am attempting to use an esp8266 to play an .mp3 audio file through a connected speaker using the 'ESP8266Audio' library. I have tested that the hardware setup is correct (e.g. I have been able to ...
Padraig Stapleton's user avatar
3 votes
0 answers
120 views

Keypad - Speaker - Interference

I am trying to build a system, that plays specific audios (.wav files) from a SD-Card, according to the key combination that has been pressed. I am using: 4x4 Membrane 4 Ohm Speaker MicroSD Card ...
D_0's user avatar
  • 31
2 votes
3 answers
510 views

What is the phase of tone?

Is it garanteed (with some precision) that the phase of a PWM-signal generated by tone is the same on each pin? Can it be altered (by internal means of Arduino) so that it's different on different ...
YakovL's user avatar
  • 153
2 votes
2 answers
263 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,415
2 votes
2 answers
3k views

DAC to play audio samples

I have a buffer which contains 16000 PCM samples of 8Khz 8-bit mono. I am trying to play it using 12 bit MCP4725 DAC. I have tried using micros() to control the write interval for the DAC. Here's my ...
Ashish K's user avatar
  • 141
2 votes
1 answer
2k views

Audio sampling and serial communication

tl;dr: The sample rate of my code seems to be lower than what I expect it to be. How can I fix this? Director's cut: I am trying to sample audio data and send it via serial. The setup consists of a ...
bhashimoto's user avatar
2 votes
2 answers
3k views

How to run background music while the code for a game is executed

I have some background music. If I put it at the top of the void loop(), it'll first play the music and then execute the game code afterwards. How do I have the code run while the background music ...
user30141's user avatar
2 votes
1 answer
3k views

Arduino Uno synthesizer - Line Level (audio) output to mixer/amplifier

Is using PWM tones from Arduino amplified by a HiFi amplifier safe? Can I damage the amplifier or speakers because the PWM signal is not a "real" audio signal? Taken in consideration that I ...
erik404's user avatar
  • 123
2 votes
1 answer
610 views

High frequency audio sampling and storage

I want to use an arduino duemilanove atmega168 for audio signal processing. I can sample the signal at around 38.5kHz using this code. I want to send the sampled data over the serial to a computer for ...
aaa's user avatar
  • 21
2 votes
3 answers
1k views

How do I handle multiple interrupts and outputs simultaneously?

I'd like to make a musical harp that utilizes break beam sensors. I'd really appreciate guidance on these two questions: How should I go about listening for multiple beam breaks at the same time? I'...
GrantG's user avatar
  • 23
2 votes
2 answers
902 views

Arduino audio frequency reader

I have a simple project for my arduino : light some leds when i send a certain frequency from my smartphone through the jack output . For example , I play a simple audio file generated with a ...
Sir's user avatar
  • 23
2 votes
1 answer
129 views

Arduino Audio Shield Problems

I recently bought a Velleman KA02 Arduino Audio Shield (http://www.velleman.co.uk/contents/en-uk/p579_ka02.html), which uses an ISD1760PY audio chip and soldered it together. The first time I fired it ...
p7810456's user avatar
2 votes
2 answers
12k views

How can I play audio from an SD card?

What is the best / simplest way to play audio files from an SD card? I'm currently working on a sound board, where each button plays a different sound. But I have yet to find the right combination of ...
bytecode77's user avatar
2 votes
1 answer
354 views

Arduino to Home Speakers

I know little about electronics in general. I wanted to connect Arduino, and play a tone using tone() through my home speakers. I've used a 1/8'' audio jack and connect ground to ground and left/...
whitenoisedb's user avatar
2 votes
1 answer
211 views

Using PWM pins on the UNO to generate Stereo Sound

I am trying to generate stereo sound using an Arduino UNO. Instead of using a separate DAC chip (as shown here), can I use the PWM pins on the UNO along with a low-pass filter? Also, would I need any ...
TheReal_Skywalker's user avatar
2 votes
1 answer
320 views

Why won't this code play a converted wav2c header file through an Arduino to my speaker?

I used this converter wav2c to convert a .wav file to a C that I can put in a header file. I was able to put converted audio into the h file but the program where I reference it does not seem to be ...
jaduuuui's user avatar
2 votes
1 answer
474 views

How to detect the pulse width from microphone as Input?

I'm working on a project that detects the pulse width of an audio signal, which uses a microphone as an input. The user gives 2 different types of sounds one last less 0.3 seconds and other lasting ...
satabios's user avatar
2 votes
2 answers
445 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
2 votes
1 answer
86 views

Converting live vocals to discrete signals

I would like to augment a live music performance by displaying an specific LED for any given musical note. For vocals: Rather than attempt to process the audio using the Arduino board, I'd like to ...
Makita's user avatar
  • 121
2 votes
1 answer
331 views

How can I send data to many IC's without using tons of shift registers?

I'm building an audio circuit that will play VGM files (Video Game Music). I have it working with two different "vintage" IC's such as the SN76489 and the AY-3-8912. Currently, my design is using an ...
cbmeeks's user avatar
  • 247
2 votes
0 answers
163 views

Playing stereo sound using AudioOutI2S and Splitting channels correctly

I have an Arduino MKR Zero with an UDA1334 I2S module, alongside 2 Speakers and I am trying to play Stereo sound. So far everything seems to work well, connections are also properly done, and i can ...
Mr. Chin's user avatar
2 votes
0 answers
53 views

Issues with Polytone Library?

I'm building a device that uses two ultrasonic sensors to detect objects and provide audio feedback in the form of beeps that get faster the closer an object is. I have two speakers, one for each ...
Kaytee's user avatar
  • 21
2 votes
1 answer
54 views

Communicate from Arudino to computer over 3.5mm port

I'm wondering if it would be somehow possibly to have easy communication with a computer for Arduinos that don't have USB like the pro mini. That would make an easy way of having two-way communication ...
Karmanyaahm's user avatar
2 votes
0 answers
3k views

Esp32 sending a wav file to API via POST

I'm trying to send a .wav file to an API with an ESP32 using a HTTP Post request with a multipart/Form-data content type. I can already send the API Key as it is a plain key and get a return from the ...
Tom Demuynck's user avatar
2 votes
0 answers
946 views

Connecting Audio Jack to Arduino

So I started working on a project of mine that is mostly software based which I have no problems with, but it includes electronics too. Where I am still learning a lot. Anyways, I have been trying to ...
Amin's user avatar
  • 21
2 votes
0 answers
1k 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
2 votes
2 answers
250 views

Elechouse MP3 shield play random song

Using this code to try and play a random song when someone walks by my distance sensor I get an error, the same song (track 0001) plays every time. Any advice? #include <SoftwareSerial.h> ...
Pagaley 12's user avatar
2 votes
1 answer
742 views

Using a keypad to play an audio file on Arduino Mega and Adafruit VS1053?

I am trying to use a keypad to trigger an audio file using an Arduino Mega and Adafruit VS1053 Music Maker. I have gotten the music files to play independently, and when the correct number is entered ...
Rick's user avatar
  • 31
2 votes
0 answers
555 views

Arduino Audio Recorder - Speed Correct but Wrong Pitch

I'm working on an audio recorder project on an Adafruit Adalogger with SAMD21 ARM-based processor using the Arduino IDE. The desired sampling frequency is 10 kHz, 12-bit resolution with an analog ...
user avatar
2 votes
0 answers
157 views

Using VMA-02 / KA-02 Sound Shield to get line-in input on arduino

I bought this VMA-02 audio shield: http://www.velleman.co.uk/contents/en-uk/p623_vma02.html I want it to get the data from line-in to line-out but with reading it in my arduino scetch first (e.g. ...
D. Müller's user avatar