piezo buzzer clicking noise
ghost13
Posts: 133
I'm trying to control my piezo via direct output from my basic stamp 1 (it has worked on other projects) and now it only makes a clicking noise - no buzzing.
whatsup with this?
thanks!
PS: my code is really simple - just
whatsup with this?
thanks!
PS: my code is really simple - just
HIGH 0
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
and it just started really suddenly. maybe a temperature thing?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I had no idea there was a difference between a piezo buzzer and speaker. I thought any piezo = piezo. Is there anyway to make this speaker buzz from my BS1? Or better yet, actually say something smilewinkgrin
THANKS!!!!!!!
You might be able to use the SOUND command (see the PBASIC·manual for syntax and circuit diagrams).· For instance:
' SOUND.BS1' This program generates a constant tone 25 followed by an ascending tones.' Both the tones have the same duration.' {$STAMP BS1}' {$PBASIC 1.0}SYMBOL tone = B2Main: FOR tone = 0 TO 255 SOUND 0, (25, 10, tone, 10) NEXT END
But the sound command is awesome! I must make myself a tone generator soon..
Also, I can only generate the tone when I check the voltage across the speaker. What's up with that???
Thanks!
You can download the book here:
www.parallax.com/Store/Books/EducationalTexts/tabid/181/CategoryID/66/List/0/Level/a/ProductID/139/Default.aspx?SortField=ProductName%2cProductName
Hope this helps
Al