making Tune instead of Beep using Bizzer with PWM library

mvreddy gravatar image

asked 2017-04-21 10:49:19 +0100

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.

edit retag flag offensive close delete report spam



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.

Sigurd ( 2017-04-24 17:00:52 +0100 )editconvert to answer