Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [audio]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
335 views

MCU Recommendations for Audio Pitch Shifting

I'm looking to use a MCU for audio sampling. I want to sample incoming audio and pitch shift it (without speeding it up/slowing it down). A bit about the build. I'm planning to make a circuit board ...
1 vote
1 answer
57 views

No output from PCM5102 I2S DAC

I'm trying to connect a HiLetgo PCM5102 I2S DAC to a Teensy 4.0, but I'm not getting any audio out. I have it wired as: SCK - GND BCK - BCLK1 (21) DIN - OUT1A (7) LCK - LRCLK1 (20) GND - GND VIN - +3....
2 votes
1 answer
717 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
0 answers
25 views

Unable to play audio on ESP32 speaker that receives audio from phone via Bluetooth

I have the following code that I am using to receive audio from phone via Bluetooth Classic and sending it to the internal DAC of the ESP32 which is connected to headphones. When I run this code on ...
0 votes
0 answers
43 views

MP3 player buttons not working

I wanted to create an MP3 player using DFPlayer but because DFPlayer was not available in my area I bought FN-M16P to create the player. The buttons are not working. I used this code when I tried to ...
1 vote
2 answers
235 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> ...
-1 votes
1 answer
152 views

Playing Audio from SD - Get VU, or audio waveform

I am using the library SimpleSDAudio to play a song from my SD card to an op-amp later in the circuit. I would like to take a sample from the audio pin (possibly with a Analog read) to power some ...
0 votes
3 answers
2k 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
1 answer
36 views

Frequency problems with DIY arduino and resonator

I made a simple music program using an arduino Uno and the tone() function. It works fine. I decided to build my own circuit using a barebones AVR and upload that program. I did not know exactly what ...
0 votes
0 answers
119 views

Raspberry pi pico I2S work on byte by byte transfer but not on buffer read writes

I'm using a raspberry pi pico W and testing audio loopback (microphone to speaker in a loop) using INMP441 microphone and MAX98357 amp board. Followed functions from this page https://arduino-pico....
1 vote
0 answers
478 views

Functions downgraded in the I2S library using an ESP32

I am following the instruction to setup a microphone with an esp32 with arduino cli. Here is the tutorial https://dronebotworkshop.com/esp32-i2s/#Resources https://www.youtube.com/watch?v=m-MPBjScNRk&...
4 votes
1 answer
50 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, ...
1 vote
1 answer
460 views

Mega 2560 does not play audio file when I want. It plays when the first condition is met, but not the other

Okay, so I am making a jewelry box for my niece that will spin a necklace holder with a stepper motor, play an audio file and turn on LED lights. I am using an Arduino MEGA 2560. The flow is this: ...
1 vote
0 answers
221 views

What is the most simple sketch to confirm the DAC works for audio on a speaker with it's own amplifier for an ESP32?

I have a PC speaker with it's owner power supply (no amplifier needed). It just uses a standard AUX jack. Most examples sketches use an amplifier like the MAX98357A. I have explored some libraries too,...
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 ...
2 votes
2 answers
215 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, ...
-1 votes
1 answer
132 views

tone() corrupts the PWM on a different pin

I have to use PWM to control some lights. I do this successfully with: analogWrite(11, 127); for a 50% PWM pulse on pin 11. Now, i also have to have tone() support on my code. When I do: tone(10, ...
2 votes
1 answer
1k 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
1 answer
84 views

3.5mm jack frequency response at low frequency (20Hz) [closed]

I'm trying to drive a bass shaker at low frequencies, down to 20Hz, with an Arduino. Has anyone ever done something like this? I found an audio amp that takes in 3.5mm aux, and I was hoping to get a 3....
0 votes
3 answers
504 views

Arduino Board with Microphone

I have this microphone (http://www.digikey.com/product-detail/en/CMA-4544PF-W/102-1721-ND/1869981) and an Arduino Uno board. I'm trying to read audio values off of my microphone (to test the noise of ...
0 votes
0 answers
851 views

MP3-TF-16P only works while connected to serial monitor

I am building a project with Arduino Nano and the component in the subject, which, as far as I understand, can be assimilated to a DFPlayerMini (not sure if it's the same thing or it's just a cheap ...
-1 votes
2 answers
2k views

Perform Volume Control on arduino speaker

I am following this guide to produce tones with the arduino: https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody This uses the tone() builtin function. The connections is that one pin of the ...
-1 votes
1 answer
81 views

Library fails to compile

I want to try out this library: https://github.com/connornishijima/arduino-volume3 I downloaded the zip file from github, renamed it, and included it as a library in the IDE. So run one of the ...
0 votes
1 answer
382 views

Tone() function pauses between notes

I tried to experiment with the tone() function that comes with the arduino library. I played around with the standard code example located here: https://www.arduino.cc/en/Tutorial/BuiltInExamples/...
0 votes
2 answers
2k views

Detect the end of playback of a MP3 file with DFPlayerMini / DFRobotDFPlayerMini.h library

For a project I'm doing I've used an ESP8266/12e, a RTC Module DS3231 and a DFplayerMini Basically it's a caller for birds and it has to play a 12-minute long MP3. The MP3 file should be played for 2 ...
1 vote
0 answers
131 views

HOW convert momentary button to touch sensor TTP223?

I am trying to convert this project https://maker.pro/arduino/projects/simple-fm-radio-receiver-with-arduino-uno-and-rda5807m to 3 touch sensors TTP223. But so far my new code don't work. Please can ...
1 vote
1 answer
957 views

I2S pins don't output audio in ESP8266

I am trying to use the ESP8266 to output some audio, but I'm having trouble making it work. I downloaded the library ESP8266Audio and am testing one of the examples they have in the repo, namely ...
1 vote
0 answers
48 views

Audio range with custom waveshape

I am planning to use several Arduino to produce audio range analog signals. I need to use custom waveshapes generated on the fly. As far as I understand, there are two paths: Aquiring a DAC, but can ...
8 votes
2 answers
13k 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 ...
1 vote
1 answer
294 views

Modify duty cycle of tone on AVR

I'm writing a MIDI - to square wave converter designed to interface between a MIDI instrument and a musical Tesla coil. Essentially, this should act like a monophonic MIDI synthesiser, but the ...
1 vote
3 answers
2k views

Generate a true analog signal using Arduino

I am looking for a way to create a true analog output with the arduino uno. I am constantly reading an analog input on a0 pin, all i want to do is send the same signal as output. I know arduino ...
1 vote
0 answers
334 views

How to use an Arduino to play audio from an Adafruit Soundboard using audio file name

I'm trying to control an adafruit soundboard with my elegoo uno R3. I'm a beginner programer and I'm trying to get the soundboard to play a sound file by name when I press a button. I have confirmed ...
1 vote
0 answers
137 views

Arduino Visible Light Communication(Audio transmission)

I think this is a broad question. I'm currently implementing visible light communication with Arduino. I'm using a laser as my transmitter and LDR as my receiver. I'm able to transmit a text from one ...
1 vote
1 answer
356 views

SimpleAudioPlayer + sleep function

I have tested the SimpleAudioPlayer example. https://www.arduino.cc/en/Tutorial/SimpleAudioPlayer This works fine, but when I add a sleep(1000) at the end of the loop() function, the music sounds ...
1 vote
2 answers
285 views

SN76489 - Ready pin not working?

I'm testing the SN76489AN chip with Arduino and I'm able to play the 3 tones I want etc BUT I don't understand why the READY pin is not working? The datasheet says the pin goes high when the chip is ...
1 vote
1 answer
79 views

Signal names HiFi

i'm not sure if this is the right address, but maybe you know about it. I currently integrate bluetooth to my car's radio using a esp32. First i wanted to insert the signal at the d2b cd player, but ...
2 votes
0 answers
139 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 ...
0 votes
1 answer
473 views

I2S read() is which channel?

The Arduino I2S reference describes the I2S standard and functions available with the standard I2S library, (Bizarrely it doesn't reference the existing read() function which is used in the examples ...
1 vote
2 answers
4k 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 ...
2 votes
0 answers
49 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 ...
1 vote
0 answers
33 views

Sparkfun Spectrum Shield no change in frequency

So i wanted to build a music visualizer using a MSGEQ7. As I just got started with electronics, I did some soldering beforehand and I think I am doing okish. While it might not be perfect, the contact ...
1 vote
1 answer
546 views

How should I decide the cut-off frequency for my low-pass filter?

I'm trying to generate some basic thumping stereo sound using Arduino's PWM pins along with low-pass filters. This is the frequency spectrum for the sound I want to play using Arduino UNO's PWM pins: ...
2 votes
1 answer
175 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 ...
1 vote
1 answer
119 views

changing bitrate of audio recording and taking samples from audio in arduino

I am looking to make a baby cry detection module that is a part of a bigger project i.e. IOT based baby monitoring system. Using AI, i have a dataset (of baby crying and not crying) to train model ...
1 vote
1 answer
450 views

Multiple IR Sensors with Arduino

I am fairly new to working with sensors and Arduino. I am working on a project using Max MPS to control the volume of three audio files. There will be three framed photos, each having its own IR ...
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 ...
1 vote
1 answer
185 views

Time signal. Determine the presence of pulses and their duration [closed]

I want to detect the exact time signal from an FM radio station. The signal is transmitted in the form of 5 short pulses and one long one. My task is to determine the presence of a pulse in the audio ...
0 votes
1 answer
552 views

Play audio on an ESP32 or an Arduino

I am in the process of making a talking robot and I have linked my ESP32 to a Google text-to-speech service. The service returns me a base64 8-bit audio response. I need to play this audio and I can't ...
1 vote
2 answers
1k views

Can we generate 20kHz tone with normal buzzer in arduino?

Can normal buzzer be used for generating high frequency audio and if this is possible then can normal microphone module be able to detect the same frequency range(15 kHz - 20 kHz). Here is the ...
3 votes
0 answers
114 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 ...