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
35 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 ...
user1584421's user avatar
  • 1,395
0 votes
0 answers
105 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....
Allahjane's user avatar
  • 101
1 vote
0 answers
427 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&...
ecjb's user avatar
  • 165
4 votes
1 answer
49 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
1 vote
0 answers
212 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,...
adamaero's user avatar
  • 198
2 votes
2 answers
199 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,395
-1 votes
1 answer
115 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, ...
user1584421's user avatar
  • 1,395
-3 votes
1 answer
83 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....
Charles L.'s user avatar
-1 votes
1 answer
80 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 ...
user1584421's user avatar
  • 1,395
-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 ...
user1584421's user avatar
  • 1,395
0 votes
1 answer
346 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/...
user1584421's user avatar
  • 1,395
1 vote
0 answers
129 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 ...
massimo's user avatar
  • 11
0 votes
0 answers
817 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 ...
Luca's user avatar
  • 183
1 vote
1 answer
921 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 ...
yH20's user avatar
  • 11
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 ...
huhu roro's user avatar
1 vote
1 answer
288 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 ...
catalogue_number's user avatar
1 vote
0 answers
331 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 ...
Eric Walier's user avatar
1 vote
0 answers
132 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 ...
Zampa_frazer's user avatar
2 votes
0 answers
134 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
0 votes
1 answer
452 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 ...
pm101's user avatar
  • 103
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 ...
mxrdck's user avatar
  • 11
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 ...
Kaytee's user avatar
  • 21
0 votes
1 answer
324 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 ...
JTaft121's user avatar
1 vote
1 answer
529 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: ...
TheReal_Skywalker's user avatar
2 votes
1 answer
171 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
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 ...
eToll Systems's user avatar
1 vote
1 answer
118 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 ...
Muhammad Waqar Anwar's user avatar
1 vote
1 answer
438 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 ...
Destiny Rodriguez's user avatar
0 votes
1 answer
540 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 ...
Fernando Troya's user avatar
1 vote
1 answer
184 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 ...
Антон's user avatar
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 ...
astrick's user avatar
  • 93
3 votes
0 answers
112 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
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
2 votes
1 answer
51 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
1 vote
1 answer
696 views

DFplayer, Play sound when pin is high

I have a code here, from DFmini player. I have a tactile switch. when I press it on and release it will play a sound. My question is that when I press the tactile but not release it so I want it still ...
Habib Anwari's user avatar
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 ...
Stack's user avatar
  • 55
1 vote
0 answers
106 views

Trouble streaming audio from amazon s3 servers

I am experimenting with streaming audio from servers using an ESP32 and this library. I have been able to stream audio from every http server which i have tried but have had mixed success with https ...
user2105725's user avatar
1 vote
1 answer
223 views

Wave file will not play with Teensy 3.5

I am attempting to play a wav file from an SD card using a Teensy 3.5. I am using this buzzer and I have the following code currently: #include <Audio.h> #include <Wire.h> #include <SPI....
STF_ZBR's user avatar
  • 111
3 votes
1 answer
373 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
0 votes
2 answers
6k views

I want to stream audio from an Arduino to a device on the wifi

I only started learning Arduino recently. This is my first project. So the idea for the project is that there will be an Arduino board(Ideally an Uno but I don't know if another board would be better) ...
Epicmania's user avatar
0 votes
1 answer
449 views

Erasing 1 byte of external Flash memory (winbond)

i'm trying to use an external flash memory Winbond 25q64jvsiq for my Arduino Nano based project for audio recording purposes, to have extra memory for recording 1 byte audio samples, since Arduino ...
DSP_engineer's user avatar
1 vote
1 answer
68 views

I cannot get my code to play music in a or manner. I have to open one switch then the other. Music should play with either door open

Problem is if I open the necklaceDoor first, nothing happens. I have to open the ringDoor first. That turns everything on. Then with the necklaceDoor open, the stepper motor will turn off and the ...
Vincent Ledbetter's user avatar
1 vote
1 answer
449 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: ...
Vincent Ledbetter's user avatar
1 vote
0 answers
147 views

Stereo audio Arduino MKR Zero

I am doing a project in which I need to have a stereo audio output in Arduino MKR Zero. The quality of the audio is not important: 8 bit, 44 kHz would be enough. Is it possible to use two combined PWM ...
alessandro's user avatar
1 vote
1 answer
1k views

With the press of a button, I need to play an intro sound file, then one of 50 other sounds in order, each time a button is pressed

I need to play an intro file and one of 50 different files after it in order each time the switch is pressed, with a short delay between the intro and next file. For example let's say the intro is ...
AdamDallas's user avatar
0 votes
2 answers
792 views

Boost an audio signal for analog read - Envelope Detector

I'm working on my first Arduino project and I have a sensitivity issue. I'm building a module to listen to an audio signal and to start the power source of my speaker with a relay. Everything seems ...
Alex Dupuis's user avatar
1 vote
1 answer
147 views

Home made drum kit - How can I speed up the response time after my sensor gets triggered?

I am trying to make a psudo drum kit with my Arduino Due and a couple Force Sensitive Resistors (activated with my fingers, no drum sticks). So far in my testing I'm only using one FSR. I've attached ...
alexs973's user avatar
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 ...
Fabrizio Calderan's user avatar
1 vote
0 answers
236 views

Record stereo audio from two Bluetooth headsets

I've been playing with Arduino for a few years, but I'm new to Bluetooth and streaming audio. I'd like to develop (or assemble or buy) a device for recording stereo audio from a pair of Bluetooth ...
Jonathan VA's user avatar
0 votes
2 answers
173 views

op amp circuit single sourced from arduino power

Getting an audio signal from a 3.5mm jack amplified (non-inverted) and fed into analog in pin on a Mega 2560. I am having problems using a potentiometer as a variable resistor to adjust gain. I'm also ...
What The J's user avatar