Coder 0 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 post Share on other sites
0 Cristian.Fatu 40 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 post Share on other sites
0 Coder 0 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 post Share on other sites
0 JColvin 430 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 post Share on other sites
Question
Coder 0
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 post
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now