2024-07-23 04:31 AM
I just finish a TouchGFX code to generate an adjustable sine wave. I am planning to make 3 of them to mix them and play chords but there is a problem: how can i play a function that generated in STM32 on the speakers of that STM32?
I would be so glad to any help from you all.
Solved! Go to Solution.
2024-07-24 01:19 AM - edited 2024-07-24 06:23 AM
Hello,
@Nhyrane wrote:
I work with STM32F746G-Disco board. It has stereo output (two jacks). I just want to direct my signal to stereo but I don't know how to do it.
In that case, you need to use the audio codec on the board.
And its BSP driver from the link:
And refer to the audio example:
2024-07-23 04:47 AM - edited 2024-07-23 05:13 AM
PWM ?
DAC ?
A speaker would likely also require an amplifier/driver of some sort ...
2024-07-23 05:09 AM
Broadly speaking, you would send them to the speaker. Does your board have a speaker? What hardware are you working with?
2024-07-24 01:06 AM
I work with STM32F746G-Disco board. It has stereo output (two jacks). I just want to direct my signal to stereo but I don't know how to do it.
2024-07-24 01:19 AM - edited 2024-07-24 06:23 AM
Hello,
@Nhyrane wrote:
I work with STM32F746G-Disco board. It has stereo output (two jacks). I just want to direct my signal to stereo but I don't know how to do it.
In that case, you need to use the audio codec on the board.
And its BSP driver from the link:
And refer to the audio example:
2024-07-24 02:32 AM
@Nhyrane wrote:I work with STM32F746G-Disco board.
Remember that we can't read your mind, or see what's on your desk - that's why it's important to include these details in your post:
@Nhyrane wrote:It has stereo output (two jacks).
So, from the User Manual, you'll know that they are connected to the external Audio DAC & Amplifier:
2024-07-24 04:34 AM
Thanks for your time and patience. That was my very first blog post but i will take account of your advice. Thanks again for guidance. Have a nice one.