Trigger input to Basic Stamp
Hi:
I was searching the web on stamp circuits and found the following circuit to interface a piezo sensor. I have interface switches to BS2 , but which command do I used to interface to this circuit?
I was searching the web on stamp circuits and found the following circuit to interface a piezo sensor. I have interface switches to BS2 , but which command do I used to interface to this circuit?
Comments
Good question : [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks
Check out the docs for the Parallax piezo element.
http://www.parallax.com/detail.asp?product_id=605-00004
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
Available now... SX-Video OSD module $59.95 www.sxvm.com
"Save your money. Pay with cash."
·
IF IN0 = 1 THEN ...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I got 1 pair of emitters and 1 of receivers but I've no idea of how to use them wiht the BS2...and since they come from a hacked robot kit : cybot
Thank for your help !
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
++
The piezo is one those discs generally used for generating buzzing sounds. it also can be used for generating voltages when hit. What I don't get is that on some sources (web pages) the piezo output is amplified ..but on other they recommend that since it can generate a high voltage it must be attenuated. (???). I guest the circuit I posted (piezocircuit.gif) reduce the signal. In previous prototype circuits I had found very difficult to handle the signal/event generate by the piezo disc. I read the voltage with an ADC ->Stamp and sometimes the voltage reading does not relate to the "hit event" . I will experiement with your recomendation about the 1meg resistor. Thanks.
In another life, for fun I was an "electronics rodie" for a local band/friend that I new.·
As indicated in an earlier post, the pulses generated from a piezo are very quick and can be missed easily.
Here is a circuit that I have used that uses a current mirror to grab and store the signal very quickly.
A quick and dirty "sample and hold" if you will.· The Idea is for the Stamp to monitor the "Discharge" signal
as an INPUT.· When the "Discharge" signal goes HIGH, then the "Piezo hit value"·is ready and can be read
with an ADC off of the "ADC Signal".· Once the "ADC Signal" has been read,·make the "Discharge" signal
an OUTPUT and LOW, to discharge the .047uF capacitor.· Next, make the·"Discharge" signal an INPUT and
wait for the next·"Piezo hit value".
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.