cancel
Showing results for 
Search instead for 
Did you mean: 

sound alarm - stm32mp157c-dk2

IYetk
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

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 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

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 'Accept as Solution' on the reply which solved your issue or answered your question.
IYetk
Associate III

This answer gives me the picture

thanks a lot.