2012-11-01 11:01 PM
Hi all
I am using stm32f2XX. I want to write a source code to generate beep sound by providing PWM input . Could anyone pls suggest me in how to proceed with this. Thanks #think! #beep #about-pwm-input2012-11-02 03:42 AM
I am using stm32f2XX. I want to write a source code to generate beep sound by providing PWM input . Could anyone pls suggest me in how to proceed with this.
Input? I'm confused. What Input/Output are you looking for, what frequency/pwm do you want to generate? There should be a whole heap of PWM examples within the firmware libraries (STM32 various) and I've posted a bunch to the forum.2012-11-02 10:37 AM
''Input? I'm confused!''
Me too!''Could anyone pls suggest me in how to proceed with this''
You need to start with a clear specification of your requirement - independent of implementation details (such as STM32 and PWM); ie, you need to define what you are trying to achieve. Once you have a clear definition of define what you are trying to achieve, you can then - and only then - move on to think about how you might achieve that end... It is a common mistake to get bogged-down in the ''how'' before properly defining the ''what''.
2014-03-26 08:37 AM
2014-03-26 08:44 AM
HELLO how can I generate beep sound with stm32 ,please help thanks,,
Does it take a lot of effort and practice to be this clueless? It would surely depend on the type of STM32, the pins being used, and the device being used to emit the sound.2014-03-26 03:52 PM
''how can I generate beep sound with stm32''
In much the same way that you'd do it with any other device! A beep is just a signal which goes up & down - or turns on & off - at a suitable audible rate.Study the STM32 documentation;think
about how you could use the facilities described therein to generate such a signal...2014-03-27 08:20 AM
Please bear in mind that the STM32 IO port bit does not have the capability to drive a speaker directly.
It is capable of generating the signal but a transistor or op-amp must be used to driver the speaker. There has been at least one other thread discussing this.2014-03-27 01:08 PM
''STM32 IO port bit does not have the capability to drive a speaker directly''
Depends how loud you want the beep to be!Could certainly drive a piezo sounder...
2014-03-27 04:28 PM
Clive1: ''Does it take a lot of effort and practice to be this clueless?'' Classic...
Does quickly smoldering/carbonized - board/component - qualify as a ''beep?''2014-03-27 05:42 PM
Yeah, sorry that was a bit mean, I got frustrated with the lack of any thought.
The poster didn't read the thread, or the asking questions page.