Skip to main content
Visitor II
November 11, 2024
Question

integrate Qt with STM32CubeIDE to send data to DAC on clicking a button

  • November 11, 2024
  • 3 replies
  • 1264 views

please help me on how to integrate Qt with STM32CubeIDE so that clicking a button in a Qt application sends data to the DAC on the STM32MP157D-DK1

3 replies

Visitor II
November 19, 2024
Ozone
Principal
November 19, 2024

> DBELL.1 from ST mentioned that The STM32MP157D-DK1 doesn't support DAC i.e. the pins are not available.

An alternative would be an external serial DAC, controlled via the /sys/bus/i2c or /sys/bus/spi interface.
The Arduino connectors make both interfaces specifically available.

Senior II
November 21, 2024

can we use the onchip peripheral such as opamps in the board and get the signal via pins available on the board

Ozone
Principal
November 21, 2024

I recommend to crosscheck the MCU datasheet (for the peripheral / GPIOpin assignment) and the schematics for the board in question.
In many cases, those pins are connected to external hardware like TFTs, ethernet, DRAM etc. and are initialized for this functionality. And due to fixed connections (PCB routing), these pins can't really be used for analog in/out purposes.

Senior II
November 22, 2024

ok i will use an external dac or audio codec but tell me How to play audio files using STM32157d-dk1.how to use serial audio interface