This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

making Tune instead of Beep using Bizzer with PWM library

i have added pwm into proximity profile example and now i am able to make beep using buzzer with pwm library.Now i want to make some sort of Tune instead of beep.

Can any one help!....Thanks.

Parents
  • Hi,

    You will need to change the frequency and/or the duty cycle to make different pitches/tones. To make a kind of simple melody you can play one tone for a fixed number of seconds, then change to a different tone for a fixed number of seconds and then change to a third tone. You can e.g. set-up a repeatable app-timer that switch to the next tone every x seconds.

Reply
  • Hi,

    You will need to change the frequency and/or the duty cycle to make different pitches/tones. To make a kind of simple melody you can play one tone for a fixed number of seconds, then change to a different tone for a fixed number of seconds and then change to a third tone. You can e.g. set-up a repeatable app-timer that switch to the next tone every x seconds.

Children
No Data
Related