<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:14pt"><div id="yiv404155227"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 14pt; font-family: arial, helvetica, sans-serif; "><div id="yiv404155227yui_3_2_0_22_133502013241148"><span id="yiv404155227yui_3_2_0_22_1335020132411119">If you add an electrolytic coupling capacitor to that schematic before it goes into the soundcard it will block any DC 'electret powering' voltage and prevent it from getting back into your piezo circuit. A 1uF should do it. &nbsp;</span></div><div id="yiv404155227yui_3_2_0_22_133502013241154">&nbsp;</div><div>Rich Duckworth<br id="yiv404155227yui_3_2_0_22_133502013241159">Lecturer in Music Technology<br id="yiv404155227yui_3_2_0_22_133502013241164">Department of Music<br id="yiv404155227yui_3_2_0_22_133502013241169">House 5 <br
 id="yiv404155227yui_3_2_0_22_133502013241174">Trinity College <br id="yiv404155227yui_3_2_0_22_133502013241179">Dublin 2<br id="yiv404155227yui_3_2_0_22_133502013241184">Ireland<br id="yiv404155227yui_3_2_0_22_133502013241189"><br id="yiv404155227yui_3_2_0_22_133502013241192"></div><div id="yiv404155227yui_3_2_0_22_133502013241195">Tel 353 1 896 1500</div><br><br><div>It's the
 most devastating moment in a young mans life, when he quite reasonably says to himself, "I shall never play The Dane!"<br>  <div style="font-size: 14pt; font-family: arial, helvetica, sans-serif; " class="yiv404155227yui_3_2_0_22_1335020132411100"> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; " class="yiv404155227yui_3_2_0_22_1335020132411102"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> "pd-list-request@iem.at" &lt;pd-list-request@iem.at&gt;<br> <b><span style="font-weight:bold;">To:</span></b> pd-list@iem.at <br> <b><span style="font-weight:bold;">Sent:</span></b> Saturday, 21 April 2012, 16:32<br> <b><span style="font-weight:bold;">Subject:</span></b> Pd-list Digest, Vol 85, Issue 65<br> </font> </div> <br>Send Pd-list mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank"
 href="mailto:pd-list@iem.at">pd-list@iem.at</a><br><br>To subscribe
 or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp; <a rel="nofollow" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a rel="nofollow" ymailto="mailto:pd-list-request@iem.at" target="_blank" href="mailto:pd-list-request@iem.at">pd-list-request@iem.at</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a rel="nofollow" ymailto="mailto:pd-list-owner@iem.at" target="_blank" href="mailto:pd-list-owner@iem.at">pd-list-owner@iem.at</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Pd-list digest..."<br><br><br>Today's Topics:<br><br>&nbsp;  1. Re: trying to track down a bug: Pd-extended 0.43-1 beta on<br>&nbsp; &nbsp; &nbsp; Oneric 32 bit (Hans-Christoph Steiner)<br>&nbsp;  2. Re: [PD-announce] leer este&nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  07 (laura plana)<br>&nbsp;  3. Re: (OT)
 safely connect piezo transducer to soundcard as<br>&nbsp; &nbsp; &nbsp; microphone (Matteo Sisti Sette)<br>&nbsp;  4. Re: (OT) safely connect piezo transducer to soundcard as<br>&nbsp; &nbsp; &nbsp; microphone (Matteo Sisti Sette)<br>&nbsp;  5. Re: HID double triggers (James Dunn)<br>&nbsp;  6. Re: (OT) safely connect piezo transducer to soundcard as<br>&nbsp; &nbsp; &nbsp; microphone (Martin Peach)<br>&nbsp;  7. Re: (OT) safely connect piezo transducer to soundcard as<br>&nbsp; &nbsp; &nbsp; microphone (Matteo Sisti Sette)<br>&nbsp;  8. Re: (OT) safely connect piezo transducer to soundcard as<br>&nbsp; &nbsp; &nbsp; microphone (Martin Peach)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sat, 21 Apr 2012 09:42:28 -0400<br>From: Hans-Christoph Steiner &lt;<a rel="nofollow" ymailto="mailto:hans@at.or.at" target="_blank" href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>Subject: Re: [PD]
 trying to track down a bug:
 Pd-extended 0.43-1 beta<br>&nbsp;&nbsp;&nbsp; on&nbsp;&nbsp;&nbsp; Oneric 32 bit<br>To: IOhannes m zmoelnig &lt;<a rel="nofollow" ymailto="mailto:zmoelnig@iem.at" target="_blank" href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br>Cc: <a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:65D79887-DF07-435A-85DB-EC0F96F9B59C@at.or.at" target="_blank" href="mailto:65D79887-DF07-435A-85DB-EC0F96F9B59C@at.or.at">65D79887-DF07-435A-85DB-EC0F96F9B59C@at.or.at</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br><br>On Apr 21, 2012, at 9:09 AM, IOhannes m zmoelnig wrote:<br><br>&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>&gt; Hash: SHA1<br>&gt; <br>&gt; On 2012-04-16 20:44, John Harrison wrote:<br>&gt;&gt; Sorry for the delay on this. I downloaded today's binary build of<br>&gt;&gt; Pd-extended for Ubuntu 11.10 32 bit, then ran
 Pd-extended with -nrt in<br>&gt; <br>&gt; is it possible to build Gem (from the git "master" branch)
 yourself?<br>&gt; what is the exact version it shows for Gem?<br><br>Gem in Pd-extended is the 0.93 branch, at commit 1458b4f8cfa12503bba94e2a8804f802f07efdaa<br><br><a rel="nofollow" target="_blank" href="http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-extended/0.43/externals/Gem/">http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-extended/0.43/externals/Gem/</a><br><br>.hc<br><br><br><br><br>----------------------------------------------------------------------------<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kill your television<br><br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Sat, 21 Apr 2012 14:47:54 +0000<br>From: laura plana &lt;<a rel="nofollow" ymailto="mailto:lauraplanagracia@hotmail.com" target="_blank" href="mailto:lauraplanagracia@hotmail.com">lauraplanagracia@hotmail.com</a>&gt;<br>Subject: Re: [PD] [PD-announce]
 leer este&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp;  07<br>To: <a rel="nofollow" ymailto="mailto:pd-announce@iem.at" target="_blank" href="mailto:pd-announce@iem.at">pd-announce@iem.at</a><br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:BLU0-SMTP25695864525F1A8B623D9F5C9230@phx.gbl" target="_blank" href="mailto:BLU0-SMTP25695864525F1A8B623D9F5C9230@phx.gbl">BLU0-SMTP25695864525F1A8B623D9F5C9230@phx.gbl</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>&lt;b&gt;&lt;span style="font-size: 25pt;"&gt;<br>&lt;a&nbsp; alt="cbrincoboraxdeslucirciquiribailesee"<br>id="bataholaatarquinarbromoacalabrotararchimandritauop3h"<br>href="iucogeduraadaponer.y56.info/eS/?msg=diezajase3fj&amp;p=<a rel="nofollow" ymailto="mailto:pd-announce@iem.at" target="_blank" href="mailto:pd-announce@iem.at">pd-announce@iem.at</a>" &gt;<br>pd-announce@iem.at clic aqu? pantalla de correo electr?nico&lt;/a&gt;&lt;/B&gt;&lt;font color=#fffff4&gt; 174zlbcaaveral<br>-------------- next part --------------<br>An
 HTML attachment was scrubbed...<br>URL: &lt;<a rel="nofollow" target="_blank" href="http://lists.puredata.info/pipermail/pd-list/attachments/20120421/a50a1d53/attachment-0001.htm">http://lists.puredata.info/pipermail/pd-list/attachments/20120421/a50a1d53/attachment-0001.htm</a>&gt;<br>-------------- next part --------------<br>_______________________________________________<br>Pd-announce mailing list<br><a rel="nofollow" ymailto="mailto:Pd-announce@iem.at" target="_blank" href="mailto:Pd-announce@iem.at">Pd-announce@iem.at</a><br><a rel="nofollow" target="_blank" href="http://lists.puredata.info/listinfo/pd-announce">http://lists.puredata.info/listinfo/pd-announce</a><br><br>------------------------------<br><br>Message: 3<br>Date: Sat, 21 Apr 2012 16:16:17 +0200<br>From: Matteo Sisti Sette &lt;<a rel="nofollow" ymailto="mailto:matteosistisette@gmail.com" target="_blank"
 href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;<br>Subject: Re: [PD] (OT) safely connect piezo transducer to soundcard as<br>&nbsp;&nbsp;&nbsp; microphone<br>To: Martin Peach &lt;<a rel="nofollow" ymailto="mailto:martin.peach@sympatico.ca" target="_blank" href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>Cc: PD-List &lt;<a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:4F92C131.1030505@gmail.com" target="_blank" href="mailto:4F92C131.1030505@gmail.com">4F92C131.1030505@gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>On 04/21/2012 12:38 AM, Martin Peach wrote:<br>&gt; You could put a resistor in series to limit the current or a pair of<br>&gt; diodes in parallel to clamp the voltage. Probably a pair of 1N4001s like<br>&gt; this would
 work:<br>&gt;<br>&gt; IN---+------+-----OUT<br>&gt; | |<br>&gt; ^ v<br>&gt; | |<br>&gt; GND--+------+-----<br><br>Hi,<br><br>Thanks for the suggestion. If I understand correctly, here the <br>non-ideality of the diodes is what does the trick, and this would limit <br>the voltage to below the diode's drop,
 right? which is about 1V or so...<br><br>Now, thinking about it, wouldn't the following be even better? (this <br>hadn't come to my mind before)<br><br>&nbsp; IN---+------+-----OUT<br>&nbsp; |<br>&nbsp; v<br>&nbsp; |<br>&nbsp; |<br>&nbsp; ^<br>&nbsp; |<br>&nbsp; GND--+------+-----<br><br>with two ZENER diodes of appropriate reverse voltage? Facing each other?<br><br>So within the "allowed" voltage range there would be no (or much less) <br>distortion?<br><br>Maybe I'm being too naive here?<br><br><br><br>------------------------------<br><br>Message: 4<br>Date: Sat, 21 Apr 2012 16:24:52 +0200<br>From: Matteo Sisti Sette &lt;<a rel="nofollow" ymailto="mailto:matteosistisette@gmail.com" target="_blank" href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;<br>Subject: Re: [PD] (OT) safely connect piezo transducer to soundcard as<br>&nbsp;&nbsp;&nbsp; microphone<br>To: <a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank"
 href="mailto:pd-list@iem.at">pd-list@iem.at</a>, <a rel="nofollow" ymailto="mailto:richduckworth@yahoo.com" target="_blank" href="mailto:richduckworth@yahoo.com">richduckworth@yahoo.com</a><br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:4F92C334.9090103@gmail.com" target="_blank" href="mailto:4F92C334.9090103@gmail.com">4F92C334.9090103@gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>On 04/21/2012 02:14 AM, richard duckworth wrote:<br>&gt; Piezo mics should go through a very high impedance buffer stage.<br> &gt; ......<br><br>Thank you very much, that was illuminating.<br><br>However for now I'm was looking for a simplistic solution without the <br>slightest care for sound quality, as I'm just using the signal to take <br>its envelope in order to detect knocks and the like.<br><br>But now I know why it sounds the way it sounds and that with an <br>appropriate high impedance buffer stage it can sound way
 better, the day <br>I'll need it :D<br><br><br><br><br><br>------------------------------<br><br>Message: 5<br>Date:
 Sat, 21 Apr 2012 15:22:22 +0100<br>From: James Dunn &lt;<a rel="nofollow" ymailto="mailto:james@4thharmonic.com" target="_blank" href="mailto:james@4thharmonic.com">james@4thharmonic.com</a>&gt;<br>Subject: Re: [PD] HID double triggers<br>To: IOhannes m zmoelnig &lt;<a rel="nofollow" ymailto="mailto:zmoelnig@iem.at" target="_blank" href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br>Cc: <a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:4F92C29E.5000703@4thharmonic.com" target="_blank" href="mailto:4F92C29E.5000703@4thharmonic.com">4F92C29E.5000703@4thharmonic.com</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br><br>Quoth IOhannes m zmoelnig, on 21/04/2012 14:23:<br>&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>&gt; Hash: SHA1<br>&gt;<br>&gt; On 2012-04-18 20:27, Andrew Faraday wrote:<br>&gt;&gt; I've had
 this problem before with [hid], apparently it's a hardware<br>&gt;&gt; issue called 'debouncing', which is often ignored
 because it is often<br>&gt;&gt; irrelevant (pushed is pushed, for game controllers, rather than a<br>&gt;&gt; button-on/button-off signal used for most music systems).<br>&gt;&gt;<br>&gt;&gt; You can deal with the problem in pure data by using a trigger, float and<br>&gt;&gt; delay of one millisecond. See the attached patch, click the message<br>&gt;&gt; boxes and watch your terminal for the result.<br>&gt; [change] seems to be the more appropriate solution here...<br>&gt;<br>&gt; fgmasdr<br>&gt; IOhannes<br><br>Thanks for the suggestion. The problem I have with these two solutions <br>is that they only work when the double triggers are in sequence. <br>Sometime they arrive like this:<br><br>[hid] 0.7, written by Hans-Christoph Steiner &lt;<a rel="nofollow" ymailto="mailto:hans@eds.org" target="_blank" href="mailto:hans@eds.org">hans@eds.org</a>&gt; <br>&lt;mailto:<a rel="nofollow" ymailto="mailto:hans@eds.org" target="_blank"
 href="mailto:hans@eds.org">hans@eds.org</a>&gt;<br>&nbsp; &nbsp;  compiled on Apr 15
 2012 at 08:12:47<br>[hid] opened device 4 (/dev/input/event4): AT Translated Set 2 keyboard<br>print: key key_j 1<br>print: key key_l 1<br>print: key key_j 1<br>print: key key_l 1<br>print: key key_j 0<br>print: key key_j 0<br>print: key key_l 0<br>print: key key_l 0<br><br>So I would need to store the value of each key individually and check <br>each one with [change].<br>Instead of this long-winded method, I've downloaded [linuxevent] which <br>is working nicely so I think I'll stick with this even though it may be <br>deprecated?<br><br>Surely this is a bug with [hid] though?<br><br>James<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;<a rel="nofollow" target="_blank"
 href="http://lists.puredata.info/pipermail/pd-list/attachments/20120421/674af5e2/attachment-0001.htm">http://lists.puredata.info/pipermail/pd-list/attachments/20120421/674af5e2/attachment-0001.htm</a>&gt;<br><br>------------------------------<br><br>Message: 6<br>Date: Sat, 21 Apr 2012 11:03:25 -0400<br>From: Martin Peach &lt;<a rel="nofollow" ymailto="mailto:martin.peach@sympatico.ca" target="_blank" href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>Subject: Re: [PD] (OT) safely connect piezo transducer to soundcard as<br>&nbsp;&nbsp;&nbsp; microphone<br>To: Matteo Sisti Sette &lt;<a rel="nofollow" ymailto="mailto:matteosistisette@gmail.com" target="_blank" href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;<br>Cc: PD-List &lt;<a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>Message-ID: &lt;<a rel="nofollow"
 ymailto="mailto:BLU0-SMTP534D94809FC233CDA94E87ED230@phx.gbl" target="_blank" href="mailto:BLU0-SMTP534D94809FC233CDA94E87ED230@phx.gbl">BLU0-SMTP534D94809FC233CDA94E87ED230@phx.gbl</a>&gt;<br>Content-Type: text/plain;
 charset="ISO-8859-1"; format=flowed<br><br>On 2012-04-21 10:16, Matteo Sisti Sette wrote:<br>&gt; On 04/21/2012 12:38 AM, Martin Peach wrote:<br>&gt;&gt; You could put a resistor in series to limit the current or a pair of<br>&gt;&gt; diodes in parallel to clamp the voltage. Probably a pair of 1N4001s like<br>&gt;&gt; this would work:<br>&gt;&gt;<br>&gt;&gt; IN---+------+-----OUT<br>&gt;&gt; | |<br>&gt;&gt; ^ v<br>&gt;&gt; | |<br>&gt;&gt; GND--+------+-----<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; Thanks for the suggestion. If I understand correctly, here the<br>&gt; non-ideality of the diodes is what does the trick, and this would limit<br>&gt; the voltage to below the diode's drop, right? which is about 1V or so...<br>&gt;<br>&gt; Now, thinking about it, wouldn't the following be even better? (this<br>&gt; hadn't come to my mind before)<br>&gt;<br>&gt; IN---+------+-----OUT<br>&gt; |<br>&gt; v<br>&gt; |<br>&gt; |<br>&gt; ^<br>&gt; |<br>&gt;
 GND--+------+-----<br>&gt;<br>&gt; with two ZENER diodes of appropriate reverse voltage? Facing each other?<br>&gt;<br>&gt; So within the "allowed" voltage range there would be no (or much less)<br>&gt; distortion?<br>&gt;<br>&gt; Maybe I'm being too naive here?<br>&gt;<br><br>Yes that's the next step, if you want a larger voltage range. Or use <br>strings of ordinary diodes to add about .6V per diode. I think if you <br>only want to detect hits it doesn't matter too much. Ideally, you would <br>know the voltage range of your audio input and set the levels to fit that.<br><br>Martin<br><br><br><br>------------------------------<br><br>Message: 7<br>Date: Sat, 21 Apr 2012 17:07:12 +0200<br>From: Matteo Sisti Sette &lt;<a rel="nofollow" ymailto="mailto:matteosistisette@gmail.com" target="_blank" href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;<br>Subject: Re: [PD] (OT) safely connect piezo transducer to soundcard
 as<br>&nbsp;&nbsp;&nbsp; microphone<br>To:
 Martin Peach &lt;<a rel="nofollow" ymailto="mailto:martin.peach@sympatico.ca" target="_blank" href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>Cc: PD-List &lt;<a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:4F92CD20.7050907@gmail.com" target="_blank" href="mailto:4F92CD20.7050907@gmail.com">4F92CD20.7050907@gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>By the way, thinking about it again, I think the sound card applies a DC <br>voltage to its input (about 3V) (in order to polarize an electret <br>microphone), so I'm afraid the parallel diodes can't work because the <br>one pointing downwards would always be "on".........<br><br>On 04/21/2012 05:03 PM, Martin Peach wrote:<br>&gt; On 2012-04-21 10:16, Matteo Sisti Sette wrote:<br>&gt;&gt; On 04/21/2012 12:38 AM,
 Martin Peach wrote:<br>&gt;&gt;&gt; You could put a resistor in series to limit the current or a
 pair of<br>&gt;&gt;&gt; diodes in parallel to clamp the voltage. Probably a pair of 1N4001s like<br>&gt;&gt;&gt; this would work:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; IN---+------+-----OUT<br>&gt;&gt;&gt; | |<br>&gt;&gt;&gt; ^ v<br>&gt;&gt;&gt; | |<br>&gt;&gt;&gt; GND--+------+-----<br>&gt;&gt;<br>&gt;&gt; Hi,<br>&gt;&gt;<br>&gt;&gt; Thanks for the suggestion. If I understand correctly, here the<br>&gt;&gt; non-ideality of the diodes is what does the trick, and this would limit<br>&gt;&gt; the voltage to below the diode's drop, right? which is about 1V or so...<br>&gt;&gt;<br>&gt;&gt; Now, thinking about it, wouldn't the following be even better? (this<br>&gt;&gt; hadn't come to my mind before)<br>&gt;&gt;<br>&gt;&gt; IN---+------+-----OUT<br>&gt;&gt; |<br>&gt;&gt; v<br>&gt;&gt; |<br>&gt;&gt; |<br>&gt;&gt; ^<br>&gt;&gt; |<br>&gt;&gt; GND--+------+-----<br>&gt;&gt;<br>&gt;&gt; with two ZENER diodes of appropriate reverse voltage? Facing each
 other?<br>&gt;&gt;<br>&gt;&gt; So within the "allowed" voltage range there would be no (or much less)<br>&gt;&gt; distortion?<br>&gt;&gt;<br>&gt;&gt; Maybe I'm being too naive here?<br>&gt;&gt;<br>&gt;<br>&gt; Yes that's the next step, if you want a larger voltage range. Or use<br>&gt; strings of ordinary diodes to add about .6V per diode. I think if you<br>&gt; only want to detect hits it doesn't matter too much. Ideally, you would<br>&gt; know the voltage range of your audio input and set the levels to fit that.<br>&gt;<br>&gt; Martin<br>&gt;<br><br><br><br><br>------------------------------<br><br>Message: 8<br>Date: Sat, 21 Apr 2012 11:31:28 -0400<br>From: Martin Peach &lt;<a rel="nofollow" ymailto="mailto:martin.peach@sympatico.ca" target="_blank" href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;<br>Subject: Re: [PD] (OT) safely connect piezo transducer to soundcard as<br>&nbsp;&nbsp;&nbsp; microphone<br>To: Matteo Sisti
 Sette &lt;<a rel="nofollow" ymailto="mailto:matteosistisette@gmail.com" target="_blank" href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;<br>Cc: PD-List &lt;<a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>Message-ID: &lt;<a rel="nofollow" ymailto="mailto:BLU0-SMTP92CD4B67CD820FF6D452E2ED230@phx.gbl" target="_blank" href="mailto:BLU0-SMTP92CD4B67CD820FF6D452E2ED230@phx.gbl">BLU0-SMTP92CD4B67CD820FF6D452E2ED230@phx.gbl</a>&gt;<br>Content-Type: text/plain; charset="ISO-8859-1"; format=flowed<br><br>On 2012-04-21 11:07, Matteo Sisti Sette wrote:<br>&gt; By the way, thinking about it again, I think the sound card applies a DC<br>&gt; voltage to its input (about 3V) (in order to polarize an electret<br>&gt; microphone), so I'm afraid the parallel diodes can't work because the<br>&gt; one pointing downwards would always be "on".........<br><br><br>That sounds
 unlikely. If it had 3V on the input you would always get a <br>high value with nothing connected. Anyway,
 it's better to use a line <br>input with piezos because their output is in volts, not millivolts.<br><br>If it really has 3V on it, putting a 10k resistor in series with the <br>input will protect it and still pass the piezo signal, which is very <br>high impedance, so won't be diminished much:<br><br>IN----+----+----/\/\/----OUT<br>&nbsp; &nbsp; &nbsp;  |&nbsp; &nbsp; |<br>&nbsp; &nbsp; &nbsp;  ^&nbsp; &nbsp; V<br>&nbsp; &nbsp; &nbsp;  |&nbsp; &nbsp; |<br>GND---+----+-------------<br><br>Martin<br><br><br>&gt;<br>&gt; On 04/21/2012 05:03 PM, Martin Peach wrote:<br>&gt;&gt; On 2012-04-21 10:16, Matteo Sisti Sette wrote:<br>&gt;&gt;&gt; On 04/21/2012 12:38 AM, Martin Peach wrote:<br>&gt;&gt;&gt;&gt; You could put a resistor in series to limit the current or a pair of<br>&gt;&gt;&gt;&gt; diodes in parallel to clamp the voltage. Probably a pair of 1N4001s<br>&gt;&gt;&gt;&gt; like<br>&gt;&gt;&gt;&gt; this would work:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;
 IN---+------+-----OUT<br>&gt;&gt;&gt;&gt; | |<br>&gt;&gt;&gt;&gt; ^ v<br>&gt;&gt;&gt;&gt; | |<br>&gt;&gt;&gt;&gt; GND--+------+-----<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks for the suggestion. If I understand correctly, here the<br>&gt;&gt;&gt; non-ideality of the diodes is what does the trick, and this would limit<br>&gt;&gt;&gt; the voltage to below the diode's drop, right? which is about 1V or so...<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Now, thinking about it, wouldn't the following be even better? (this<br>&gt;&gt;&gt; hadn't come to my mind before)<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; IN---+------+-----OUT<br>&gt;&gt;&gt; |<br>&gt;&gt;&gt; v<br>&gt;&gt;&gt; |<br>&gt;&gt;&gt; |<br>&gt;&gt;&gt; ^<br>&gt;&gt;&gt; |<br>&gt;&gt;&gt; GND--+------+-----<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; with two ZENER diodes of appropriate reverse voltage? Facing each other?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; So within the "allowed" voltage range there
 would be no (or much less)<br>&gt;&gt;&gt; distortion?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Maybe I'm being too naive here?<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Yes that's the next step, if you want a larger voltage range. Or use<br>&gt;&gt; strings of ordinary diodes to add about .6V per diode. I think if you<br>&gt;&gt; only want to detect hits it doesn't matter too much. Ideally, you would<br>&gt;&gt; know the voltage range of your audio input and set the levels to fit<br>&gt;&gt; that.<br>&gt;&gt;<br>&gt;&gt; Martin<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br><br><br><br><br>------------------------------<br><br>_______________________________________________<br>Pd-list mailing list<br><a rel="nofollow" ymailto="mailto:Pd-list@iem.at" target="_blank" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a><br>to manage your subscription (including un-subscription) see<br><a rel="nofollow" target="_blank"
 href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br><br><br>End of Pd-list Digest, Vol 85, Issue 65<br>***************************************<br><br><br> </div> </div>  </div></div></div></div></div></body></html>