piezo transducer to adc ?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    27

    Default piezo transducer to adc ?

    Greetings all...

    I need to interface one of those cheap piezo disc transducer thingies to a pic via an adc pin - the sort of thing you can get in Maplins for 10p or whatever.

    Last time I remember playing with one on the 'scope, it produced wildly varying output depending on how hard you hit it - as is its nature (!).

    Is it possible to tame and scale this output to receive a value twixt 0-255 or should I be looking at a different kind of sensor?

    I need something that responds to being hit !

    Any thoughts?


    Giulio

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If you put a scope on a piezo, you'll see that it certainly responds to being hit... this application is used in some Burglar Alarm Sensors to detect doors and windows being smashed and with amplification to detect drilling and masonry demolition. Sadly the days of digging into your favourite Bank vault from the sewers (as perfected in France) is long gone... the technology may not have reached rural areas of Bolivia and Peru yet, but the currency isn't exactly changeable at the local wine mart...

    Perhaps if you elaborate on your application, (there's different kinds of hits... raindrop and freight train tend to be two ends of the scale that spring to mind) there might be a few better suggestions.

  3. #3
    Join Date
    Aug 2005
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    Haha! Thanks for the reply. There goes my evil plan to appropriate wheelbarrows full of Peruvian banknotes...

    Ok, I intend to mount this sensor in (or under) a silicon rubber membrane (think syn-drum) and, hopefully, send the resultant data via USB to a PC, which will then play a sound sample corresponding to the number received.

    I simple look-up table at the PC end should suffice, e.g. receive values 0-20 = play little sound, receive values 21-50 = play LoUdEr SoUnD, receive values 51 - 100 = PLAY VERY BIG SOUND, etc...

    These values are arbitrary, of course. I don't suppose it's realistic to expect to be able to discern 255 discreet values from this type of sensor, but you get the idea.

    As far as the raindrop/freight train analogy goes, there's the rub (and quite prescient of you...). Some drummers I know play exactly like Hinakuluiau, others as though a freight train had passed over one's skull...

    I did have a look at these entirely nifty QTC pills, but there seem to be few resources on the Internet regarding them.

    That's the (half-baked) plan!

  4. #4
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    My son has taken Radio Shack piezos and made his own drum pads which he has wired into a sound module/amp. Fairly impressive... I suspect you could get a minimum ten sound levels with these things. Not too bad. Love to hear how things turn out for you.

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Usually drum pads use Piezo or more than often cheap(and ooh the most cheapest and nifty) unidirectional microphone.

    Run the signal of the the microphone to a high-pass filter avoid to have 'false trigger' comming from the rumble or low frequency sound generated by the FOH or musician monitor amplifier system.

    Most drum-pad system have the ability to adjust the trigger level for the same reason as above.

    HTH
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  3. PIC18F2423, ADC problem
    By mistergh in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th March 2009, 01:31
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts