I can't even hook up a piezo speaker!
TD-Linux
Posts: 33
I wrote a simple program for the SX that toggled rb (it had lots of delay subs)
I ran it so that rb ran about ~350Hz.
I had a LED connected to it (classic circuit with LED connected between pin and Vdd) and decided I wanted to hear the sound. So I took the Parallax piezo element, hooked the positive side to Vdd, and the negative side to the same connection as the LED. (The LED resistor was connected between it and power, so there was no resistor on the element).
The instant I turned it on, the element made made a very strange whooshing sound, and about a second later everything died - probably the regulator cutting in, but I have yet to test that.
Does anyone have any info on connecting piezo elements, or more specifically, what went wrong in my circuit?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SX-Key + SX52 + Proto Board + SX-Key Software + Computer + USB to Serial Adapter + Resistor + LED = Blinky LED!
As the SX52 reaches the EOL, the blinky light slowly fades away...
I ran it so that rb ran about ~350Hz.
I had a LED connected to it (classic circuit with LED connected between pin and Vdd) and decided I wanted to hear the sound. So I took the Parallax piezo element, hooked the positive side to Vdd, and the negative side to the same connection as the LED. (The LED resistor was connected between it and power, so there was no resistor on the element).
The instant I turned it on, the element made made a very strange whooshing sound, and about a second later everything died - probably the regulator cutting in, but I have yet to test that.
Does anyone have any info on connecting piezo elements, or more specifically, what went wrong in my circuit?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SX-Key + SX52 + Proto Board + SX-Key Software + Computer + USB to Serial Adapter + Resistor + LED = Blinky LED!
As the SX52 reaches the EOL, the blinky light slowly fades away...
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Time for a trip to RadioShack.
What's the normal resistance of a piezo element? I get 6.2 ohms both ways. This piezo element worked before on my BS2SX. I don't want to test on that because it will be quite an expensive loss.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SX-Key + SX48 + Proto Board + SX-Key Software + Computer + USB to Serial Adapter + Resistor + LED = Blinky LED!
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"If I was king for just one day...I don't think I could screw things up any worse [noparse];)[/noparse]"
·
is the element I use. It was labeled 'Piezo Speaker'.
I suppose I could have killed it along with my voltage regulator and SX, but that seems unlikely.
Aren't Piezo elements just pieces of special metal glued together conductively? That would explain the resistance reading, but not why I don't fry my Basic Stamp with it.
Maybe I should do a Google search on how piezo works...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SX-Key + SX48 + Proto Board + SX-Key Software + Computer + USB to Serial Adapter + Resistor + LED = Blinky LED!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10