Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [audio]

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

0
votes
1answer
21 views

Are hardware interrupts used while controlling an LCD screen using the LiquidCrystal library?

I'm working on a tone generator project that uses Mozzi to make sound (sine waves mainly). As I understand, Mozzi can glitch if used along with hardware interrupts. The plan is to use the classic ...
0
votes
1answer
108 views

Arduino - Playing WAV files with a buzzer

I have developed an Arduino program that plays a WAV file from the SD card using a speaker. This is the circuit schematic The sketch I'm using is based on TMRpcm library and PWM output #include <...
0
votes
1answer
240 views

“exit status 1” error when invoking “useInterrupt” method

for context to this post you can catch up on this post I am working with an Arduino Leonardo and Adafruit Music Maker shield. I am trying to use the startPlayingFile method via the interrupt pin ...
0
votes
0answers
14 views

Receiving volume change from Mac to 32u4 [duplicate]

I'm looking to make an audio interface using an arduino micro, and I can already change the volume using the arduino, but I would like to also receive the current value from the computer to the ...
0
votes
1answer
39 views

NOT realtime MP3 decoder

I know that MP3 is the most popular audio format out there, but I need to be able to convert them to wav files for bother project I'm working on. It can be done with a PC but I would like to know if ...
0
votes
0answers
48 views

bad audio quality

I want to do a project where I need a relatively small speaker, so I tried one of a door bell (16 ohm , 0.25 W), but the sound quality was so bad. Actually I don't know if it's because of the speaker ...
3
votes
1answer
66 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 ...
0
votes
1answer
233 views

`.readFileCounts()` not working on DFPlayer mini module

I just played around using a MP3-TF-16P module, aka DFPlayer mini. The library and the examples I used as a basis can be found here. My current setup contains a button (NC, normally closed), which is ...
0
votes
0answers
19 views

Input from two microphones to bluetooth

I am a complete noob at arduino, so I apologize if this is a stupid question. I would like to take input from two microphones and send the output to a bluetooth headset using an Arduino processor? Is ...
0
votes
1answer
49 views

Any suggestions? (On running two programs within one Arduino maybe) [closed]

Super duper noob here! Please help me out thanks!. So what I am doing right now for a project is to create a device that can read the EMG (muscle tension) in the body, and when it reads a specific ...
1
vote
2answers
141 views

Writing “theremin” outputs to a MIDI file on an SD card

I am making a musical instrument (theremin simulator). I want there to be a "record" capability which stores the volume and note the user is playing, into a MIDI file. Note this doesn't actually ...
0
votes
1answer
23 views

Disable the Amplifier during the flashing ESP8266

I use ESP-12 and Adafruit Mono Amplifier for playing audio. It works but It has one big issue. My circuit uses RxD to transfer audio (A+ connect to RxD), also ESP uses for flashing the chip. This ...
1
vote
0answers
101 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 ...
1
vote
3answers
628 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 ...
0
votes
2answers
79 views

Elechouse Mo3 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> ...
1
vote
2answers
835 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 ...
0
votes
0answers
290 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 ...
0
votes
1answer
127 views

Strange issue with FHT library for sound-reactive LED project

I have been playing with the FHT library and have run into an interesting issue with fht_mag_octave() disrupting the output of my ADC actions.  Running on a MEGA ADK. The idea is that I'm using FHT ...
1
vote
1answer
179 views

Is it possible to read-write the memory of a Gikfun ISD1820 voice recording module?

I just got a Gikfun ISD1820 voice recording module for an Arduino project that I'm working on. I want to be able to record a few seconds message and then send the message over wifi to another Arduino ...
0
votes
0answers
59 views

Getting the frequency from my guitar to output on the Serial Monitor

Does anyone know an easy way for a beginner to get the correct frequency from an analog source (guitar) that is connected to an Arduino? I am using an Arduino Uno and have been trying to get the ...
0
votes
0answers
250 views

Wifi radio with an Arduino

I've done a Wifi radio with a headless Raspberry Pi in the past (connecting a radio MP3 stream available on internet directly on boot, without any user input), and now I'm wondering: would it be ...
0
votes
1answer
144 views

Audio.h Library Issues

I'm trying to incorporate audio into my Arduino project for the first time, and have been have a lot of issues. I originally couldn't get the Audio library to work, but after installing it through the ...
0
votes
0answers
46 views

Summing stereo signals with seperate readings

i would like to sum several several stereo-jacks to a mono-cable AND be able to read the inputs of every stereo jack separately on my arduino. How do i seperate those readings while summing the audio ...
0
votes
1answer
144 views

How do I connect an Adafruit headphone jack to an Arduino 101?

I just purchased Adafruit headphone jack and I want to know how to connect it to an Arduino 101. I'm trying to use a breadboard to play a sample tone melody from the Arduino libraries, which I want to ...
1
vote
3answers
253 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'...
0
votes
1answer
300 views

Buzzing on computer speakers when LEDs are on

I have an Arduino Nano connected via USB to a Mac Mini. When the LEDs come on, an external speaker connected to the Mini starts to hum/buzz quite loudly. If the LEDs are turned off, the buzz stops. ...
2
votes
2answers
523 views

Read Audio Data in Real-time over 3.5mm Stereo Cable

My Goal Have Arduino read audio output from a TRS stereo audio cable (coming from a computer, smartphone, etc.). As motivation for this use-case, once some audio data (depending on the sample rate) ...
0
votes
0answers
30 views

Advice for best setup for playing audio files with arduino from sdcard (PWM, audio module, arduino due?) [duplicate]

I built a project using arduino and a audio module (DFPlayer mp3 player). It worked perfectly, but I don't have access to the files in the SDCard so that I can change it using the API. The files need ...
0
votes
0answers
67 views

Advice for best setup for playing audio files with arduino (PWM, audio module, arduino due?)

I built a project using arduino and a audio module (DFPlayer mp3 player). It worked perfectly, but I don't have access to the files in the SDCard so that I can change it using the API. The files need ...
0
votes
1answer
348 views

Is it possible to use Arduino PWM for audio within a PAM8493 amplifier?

I've seen some projects using PWM for playing audio files, and it seems like it needs an amplifier, otherwise the sound is very low. I already made a project using a DFPlayer and PAM8403, but now I ...
3
votes
4answers
2k 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 ...
0
votes
2answers
278 views

PCM audio, PROGMEM sounds through speaker, multiple clips (using speaker_pcm)

I downloaded the PCM Audio speaker_pcm (see link below) and it worked easily with the supplied Mac startup chime. I also got my own sounds parsed properly via a combination of sox and wav2c ...
0
votes
1answer
176 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
0answers
52 views

GSM Shield 2 - no input on audio jack

I'm talking to the shield using a Serial Connection and when I receive or place a call I get audio out through my headphones, but the input doesn't work. I've tried AT+QMIC to set microphone gain ...
0
votes
0answers
254 views

Connecting Arduino to Android Via Bluetooth for Volume Control

I want to use a strip pressure sensor to control the volume of my Android Music Player/ Audio File. So I basically need to control my android device through a pressure sensor strip connected to an ...
3
votes
2answers
4k views

Transistor amplifier to drive speaker using Arduino PWM

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 ...
0
votes
2answers
677 views

Interfacing TRRS headphone to Arduino Uno

I have been working in a Arduino project lately which requires human voice input to Arduino with some processing Arduino need to perform specific task. Simple sampling of incoming signal and ...
1
vote
0answers
313 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 ...
3
votes
3answers
255 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 ...
1
vote
0answers
234 views

How to play Midi from the Sparkfun Mp3 Player Shield?

in the video: https://www.youtube.com/watch?v=zc1zbwheyE0 I suspect they may be using the midi playback functionality of the chip (VS1053b) on the Mp3 shield. how do you playback Midi from the mp3 ...
0
votes
3answers
176 views

How can I see if volume buttons of Apple earphones are pressed?

I need to be able to see if the volume controls and the middle button of Apple earphones are pressed. I am using an Arduino Uno. I was thinking about using the analogRead function. I tried ...
0
votes
2answers
62 views

How to analyse audio and to affect source?

I want to use the audio from my PC and have it going to the speakers and Arduino for some lighting effects. This project is a bit of a struggle because I don't know what the best way of analysing ...
2
votes
2answers
407 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 ...
0
votes
2answers
852 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 ...
-1
votes
1answer
395 views

Issues with analog microphone readings

I'm having issues with sampling audio with a microphone and NodeMCU v3. I realize this is the Arduino section so if NodeMCU running the Arduino IDE is not meant for this forum, let me know. The ...
0
votes
1answer
301 views

Control RGB led using microphones, getting the right components

Sorry if this is too basic, but I am very new to arduino and electronics. I come from programming, I am trying to start a project where I can control an RGB led strip, I want to be able to control the ...
1
vote
1answer
261 views

Using an Arduino for a Diorama Controller

Kind of new to the whole DIY electronics scene. I'm building a diorama for my son. It will include a length of track, a station, some other buildings, and scenery. It will be HO scale. The ...
0
votes
1answer
45 views

How do I output tone() and audioFX board output through a single speaker?

I'm building a BMX start gate controller. It requires a voice sample to be played ("Riders ready, watch the gate!") before playing a series of tones at very specific frequencies and intervals. After ...
4
votes
3answers
603 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 ...
1
vote
1answer
202 views

An audio jack modem

I'm looking at controlling Arduino by reading audio commands sent from a raspberry pi (through javascript). I've found the SoftModem code and wonder how it works. It claims that "It uses the phone's ...