ToneAC on stm32

Post here first, or if you can't find a relevant section!
Post Reply
geologic
Posts: 12
Joined: Thu Dec 15, 2022 10:12 am
Answers: 1

ToneAC on stm32

Post by geologic »

Hi all

I've used ToneAC library with arduino Uno (https://bitbucket.org/teckel12/arduino-toneac/wiki/Home), i tried to compile it with STM32duino but it is not compatible.
Do you know any alternative? I would like to play some louder sounds than tone library on a passive buzzer.

Thanks
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: ToneAC on stm32

Post by ag123 »

you can try playing with the hardware timer and PWM
https://github.com/stm32duino/Arduino_C ... er-library
https://github.com/stm32duino/STM32Exam ... dwareTimer

but that if that is some form of sigma delta DAC
https://en.wikipedia.org/wiki/Delta-sigma_modulation
it would take some codes and circuits to achieve it.

for 'louder' sound, you need a transistor or amplifier
https://github.com/ag88/stm32duino_rtttl
Post Reply

Return to “General discussion”