Skip to main content
IYetk
Associate III
September 27, 2019
Solved

sound alarm - stm32mp157c-dk2

  • September 27, 2019
  • 2 replies
  • 832 views

I want to use sound alarm in my M4 program or on A7 Linux side.

It can be any kind of sound (beep...etc).

What should I do ?

Which external pheriperal can I buy ,

or is it possible to do it with internal pheriperals on the board and how ?

tnx

This topic has been closed for replies.
Best answer by PatrickF

That's a very wide and generic question, there is plenty possible solutions you should study by yourself (simple buzzer, piezo, audio amplifier, etc...).

Limit is to have a control interface available on the board, could be a simple GPIO, but also Timer_PWM, I2C, SPI_I2S/SAI, etc... Obviously the external device should be also compatible with the capabilities of STM32MP157C (output current, protocol, speed, etc...) and with SW driver available (if needed).

Natively, the DK2 has an audio jack output, where you could connect an amplified speaker set. Then you could play any audio file using Linux.

2 replies

PatrickF
PatrickFBest answer
ST Employee
September 27, 2019

That's a very wide and generic question, there is plenty possible solutions you should study by yourself (simple buzzer, piezo, audio amplifier, etc...).

Limit is to have a control interface available on the board, could be a simple GPIO, but also Timer_PWM, I2C, SPI_I2S/SAI, etc... Obviously the external device should be also compatible with the capabilities of STM32MP157C (output current, protocol, speed, etc...) and with SW driver available (if needed).

Natively, the DK2 has an audio jack output, where you could connect an amplified speaker set. Then you could play any audio file using Linux.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
IYetk
IYetkAuthor
Associate III
September 27, 2019

This answer gives me the picture

thanks a lot.