Coder Posted September 15, 2020 Share Posted September 15, 2020 I want to add sounds to my button presses. Is there a simple way to do that? Can I store the sounds on board or do I have to upload each time the board is powered up. Link to comment Share on other sites More sharing options...
Cristian.Fatu Posted September 18, 2020 Share Posted September 18, 2020 Hello, It depends on the sounds you intend to play. What I mean is that you can generate sounds using digital pins using Pulse-width modulation (PWM) or Pulse-density modulation (PDM). Like this you can generate (from your code) a sine wave. Best Regards, Cristian Link to comment Share on other sites More sharing options...
Coder Posted September 18, 2020 Author Share Posted September 18, 2020 Interesting... That is good to know. I wanted to upload sound effects for button presses. .wav files maybe? Link to comment Share on other sites More sharing options...
JColvin Posted September 25, 2020 Share Posted September 25, 2020 Hi @Coder, You may be able to store the .wav files on an SD card and then read them off the SD card into RAM and then play them out through an audio codec, but the implementation of how this might be done will vary on what board you are using (a microcontroller, a microprocessor, a FPGA, a SoC, etc). Thanks, JColvin Link to comment Share on other sites More sharing options...
Question
Coder
I want to add sounds to my button presses. Is there a simple way to do that?
Can I store the sounds on board or do I have to upload each time the board is powered up.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.