Double triggering piezo sensors

I’m trying to figure out what’s going on with the double or triple trigging notes from my implementation of Tod E. Kurt’s piezo sensor arduino MIDI project. Near as I can tell, the resonance of the piezo seems to be almost as hard as the initial strike to the sensor. I can’t figure out what else would be causing double triggering at every level of threshold I set for the analog in pin.

 Var Folders Wa Wa4Wayr+Hnk1A67Fcw65Rk+++Ti -Tmp- Ichat Images 3D99473B-Ecdd-42C4-Ab88-544Fa3B8207B Flysketchworkflow-2008.01.08-17.29.23

I’m just stabbing at science on this. Derek said it best just a few minutes ago:

were’s an oscilloscope when you need one?

So a few things that I’m wondering about. One is to keep the analog pin open for a static amount of time instead of the dynamic period of time that the Todbot code prescribes… Two is to make sure that the current going into the analog pin is only flowing one way with the help of a zener diode… Thirdly, it could be is that the surface I have the sensor attached to may be *too* resonant, and is compounding the problem.

so I’m going to try some of these things tonight…

I was very glad to see the Ardrumo project, and in such a timely fashion, too. While I had limited success with it, I wouldn’t chalk it up to anything but my own system and setup. I should try it again and see if it works now that I have my electronics side in much better shape.

Here’s a diagram I made of the setups I’ve tried and am working on… These are your options if you’re on a mac…

Data Flow Slide

Technorati Tags: , , , , , , , , , ,

2 Comments

  1. Tod E. Kurt:

    Hi Steve,
    Agreed, piezos ‘ring’ like crazy. They’re designed to be buzzers after all. I’ve got another piezo signal conditioning circuit used on a project from a long time ago. I’ll pull it up, do some tests, and post my results. I recall it being very good, creating a nice wide pulse with no ringing. I think it was basically a half-wave rectifier with small capacitor to temporarily store the charge. Then you measured the time it was over some threshold.

  2. olivar:

    I think you should try a 0.01microfarad cond. inserted after the piezzo and a 100k resistor to the ground after that.

    my two cents

Leave a comment