Questions tagged [tmrpcm]

an Arduino library for asynchronous playback of PCM/WAV files direct from SD card

Utilizes standard Arduino SD library, SD card and output device (Speaker, Headphones, Amplifier, etc)

19 questions
4
votes
3 answers

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 speaker is very low. I am using the below single…
Frank Donald
  • 191
  • 1
  • 2
  • 9
3
votes
2 answers

How do I use Sound Sensor LM393 + Speaker in Arduino

I have this voice sensor: I need to know how bytes pass through soundsensor into arduino and get this bytes and put out in a speaker. I read on the net a Lib PCM thats converts chars in voices, but how do I extract bytes from sound sensor in…
Radagast
  • 133
  • 1
  • 4
3
votes
1 answer

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 is connected properly and can play sound my SD…
kailia
  • 31
  • 1
  • 3
2
votes
2 answers

IRremote and PCM sound libraries interfering

I have a simple sketch which sends IR codes, plays a sound and toggles an LED when you press a button and toggles another LED when it receives that code. The idea is that I have two Arduinos with this same sketch and when you press the button on…
Patrick
  • 63
  • 4
2
votes
4 answers

SD card fails to initialize

I know this question has be asked before on this site. However it was never really answered. I have an Arduino Uno. I am trying to get it to read a 2 GB SDHC Micro SD card. The problem is, the SD card never intializes. I am not sure if there is…
Alex Weber
  • 131
  • 1
  • 1
  • 5
1
vote
0 answers

using pmrpcm library for sound output from Teensy3.2

I converted an MP3 sound effect (5 seconds long) to WAV to play it out of a Teensy3.2 with speaker connected to PWM output pin. The TMRPCM library specifically talks about Arduino AVR boards, but doesn't mention Teensy. On the PJRB (Teensy)…
Bob Found
  • 21
  • 2
1
vote
1 answer

Play sound on top of background music using arduino uno tmrpcm library

We designed a big piano with 15 buttons on it. Every button has a proximity sensor. Whenever users interact with the sensor a specific sound plays for that button. My code is working fine for this purpose but now I want to add background music. Our…
1
vote
1 answer

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 lights and music will continue to play. But I want to…
1
vote
1 answer

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: ringDoor open and necklaceDoor closed: LED on,…
1
vote
0 answers

Arduino malfunction tmrpcm while used digitalRead

I am programming Arduino UNO for this functionality: with use of SD card reader module and SIM900 GSM/GPRS shield I am trying to: 1. Pick up incomming call, play message from SD file and after the message ends, hang up. 2. Call from Arduino to…
1
vote
0 answers

TMRpcm interferes with Wire.h

I'm using TMRpcm library for playing .wav files from my SD card. Everything works fine, but if I include Wire.h library the files aren't playing at all (there's no sound). I have only added this line of code above my program: #include…
0
votes
1 answer

TMRpcm not compatible incompatible with current board

My goal is to play sounds with my Arduino Nano Every. I tried the example sketch that comes with the library but I get the error: **WARNING: library TMRpcm-master claims to run on avr architecture(s) and may be incompatible with your current board…
ADude
  • 27
  • 2
0
votes
2 answers

Audio stops playing after rtc is connected

I am trying to play a song using arduino while at the same time display time using a rtc board using the tmrpcm library. However, if the rtc board is connected no sound is played. I do understand that the tmrpcm may be interfering with the wire.h…
0
votes
1 answer

Why am only hearing noise or no sound?

Alright, there is something missing in the question, I was able to hear one sound of the files and the others apply to the question I asked and that is why I am wondering. what is happening! Here is the code: #include //…
0
votes
1 answer

Trying to save .wav files with new name every loop

I have built a set up with an Arduino UNO hooked up to a switch, so that whenever the switch goes from HIGH to LOW it saves audio to an SD card. I am using the TMRpcm Library. The problem is the current code will only be able to record 1 audio file;…
TSauer52
  • 15
  • 2
1
2