Hi, I am new to an embedded platform. I am using STM32F407 board with cortex-m4 and Wolfson pi audio extension card. I am using Keil micro vision 5. I Want to generate white Gaussian noise signal using the code(which I have to write) and I want to pass that output to the speaker. I went through some examples like audio passthrough and some others which were given in DSP Lab modules. I observed that we can give DMIC IN and LINE IN as inputs to the system so that we can hear out using headphones. But in my case, I want to generate that input signal within the code. Is this possible? I tried passing rand function as input which generates random numbers within the range 0 to 32767 in the stm32_loop_intr function, but I couldn't hear anything on headphones. So, is there a way to generate a white Gaussian noise signal? If this is possible, can I hear that sound through headphones?
Do you have any other programming experience? Or (basic) electronics?
This might be rather ambitious for a first project?
Maybe start here: www2.keil.com/.../learn
Yes. I do have a bit of programming experience and have knowledge about basic electronics. Can you help me out on how to solve the above stated problem?
It's not clear which part you're actually stuck on.
It sounds like a school assignment - so you should really be going to your teacher for assistance.
Generate a pattern buffer containing a sine wave of know frequency, and feed that in a loop through you device. Scope the signal to confirm you can see the frequency/amplitude expected, and then listen to the sound via your head phones. Change the frequency and amplitude of the signal until you are sure the hardware and output paths work as expected.
Generate other wave forms and patterns, repeat.
You can export and import raw audio sample data from/to Audacity:
manual.audacityteam.org/.../sample_data_export.html
It can also generate audio for you:
manual.audacityteam.org/.../generate_menu.html
(other audio editing/processing tools are available)
Thank you. I will try to use this option.