Hi all I've got a pack of these buzzers: HERE
I'm having trouble getting any sound out of the buzzer?
I've written a simple test program that sets the pin high, then NOPs 10 times. It then sets the pin low, and NOPs 10 times. When I did this and looked at the scope I saw it was AC. So I threw a diode in to see if that would fix things... Nope. I've uploaded a shot from the scope. Any ideas what I'm doing wrong? Ignore the drawing that shows a LED it should be a standard diode.
Any tips let me know. Thanks.
I'm having trouble getting any sound out of the buzzer?
I've written a simple test program that sets the pin high, then NOPs 10 times. It then sets the pin low, and NOPs 10 times. When I did this and looked at the scope I saw it was AC. So I threw a diode in to see if that would fix things... Nope. I've uploaded a shot from the scope. Any ideas what I'm doing wrong? Ignore the drawing that shows a LED it should be a standard diode.
Any tips let me know. Thanks.
Attachments
-
7.5 KB Views: 25
-
30.6 KB Views: 18