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.

-2
votes
0answers
35 views

Error in compiling code

The code below is given by the Arduino site (Simple Audio Player), and I am having a compile error in the function Audio.write(buffer,s). This code can be found in audio library: #include <SD.h&...
0
votes
2answers
33 views

Arduino potentiometer (external power) with amplifier

i am trying to make some kind of an amplifier. I got an amp board but want to read out the value from the potentiometer. The problem is that this pot is connected to the amp and has to be connected to ...
-1
votes
2answers
59 views

Why won't my code play a tone for my arduino

I have the following code that I use to try to play a melody on my Arduino, but there is no melody just a tapping noise. I am using the built in tone() function to play on a speaker/buzzer. I know ...
-1
votes
0answers
30 views

Arduino “real time” noise level detection?

I live in a noisy area and want to build a device which just streams the noise level (decibel for example) to Google or AWS IoT. There I then want to show the noise during the night and from where it ...
0
votes
1answer
28 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
301 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
330 views

“exit status 1” error when invoking “useInterrupt” method [duplicate]

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
45 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 ...
3
votes
1answer
102 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
337 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
21 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
51 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
179 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
130 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
989 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
93 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
1k 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
320 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
163 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
213 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
61 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
276 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
194 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
49 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
169 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
314 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
334 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
641 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
71 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
393 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
3k 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
327 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
199 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
59 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
265 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
780 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
339 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
268 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
254 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
189 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
65 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
463 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
960 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
421 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
345 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
283 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 ...