+ Reply to Thread
Results 1 to 6 of 6

Thread: Piezo as Switch

  1. #1
    Combover Newbie
    Join Date
    Apr 2008
    Posts
    5

    Default Piezo as Switch

    I am trying to use a piezo transducer as a switch with my keyboard hack.
    The keyboard hack is done and works fine and I works using any of the switches that I have tried. I would like to use piezo's to trigger the switch to simulate hitting a key.

    I am aware that piezos generate electricity and so first of all I am worried about blowing everything up. Also they are not necessarily a switch but are used in things like Vdrums to simulate this.

    Has anyone done this or have any advice?

    I'm a noobie to this and hope to share my projects later when they come together.


  2. #2
    walshlg Newbie
    Join Date
    Apr 2008
    Posts
    23

    Default

    makes you wish you had an oscilloscope doesn't it! In general it would seem that a high pass, or maybe better a band pass filter, could be protected by a Zener diode. Or better yet you could use an opto isolator.

  3. #3
    Combover Newbie
    Join Date
    Apr 2008
    Posts
    5

    Default

    Thanks a lot.
    I had a look at a few of these solutions and the opto isolator looks to me to be the best one.
    As far as I can see I should attach one of these to either end of the piezo (so no extra charge can run in the wrong direction) and then run the wire on as if these three components were the switch.

  4. #4
    walshlg Newbie
    Join Date
    Apr 2008
    Posts
    23

    Default

    I've never used piezo's for anything other than starting the grill, but I think they have a very high output impedence so you may need to buffer it to drive the opto. OTOH you could just give it a try to see if it works!

  5. #5
    prprog Newbie
    Join Date
    Nov 2006
    Location
    Puerto Rico
    Posts
    119

    Default piezo as switch

    Combover

    You can try to used an OpAmp (condition the voltage from the piezo with resistance/diodes) and then send this to a 4066 - analog switch.

  6. #6
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,788

    Default

    Piezo's are commonly used as triggers for electronic drum machines - they are VERY simple to use - have a look at this example:

    http://www.edrum.info/files/analog8_v06.gif
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

+ Reply to Thread

Similar Threads

  1. Touch Sensitive Switch (Take 2)
    By MonkeyMera in forum Electronic Projects Design/Ideas/Reviews
    Replies: 10
    Latest: 15th February 2010, 09:38 AM
  2. Button Debounce Coding help
    By Suraj143 in forum Micro Controllers
    Replies: 25
    Latest: 4th August 2007, 09:49 AM
  3. Please help me in writing code
    By abdosat2000 in forum Micro Controllers
    Replies: 9
    Latest: 5th June 2007, 01:41 PM
  4. PIC Switch Management Techniques
    By Mike, K8LH in forum Micro Controllers
    Replies: 2
    Latest: 28th September 2006, 12:33 PM
  5. How to configure this On/Off Switch with Bicolor LED?HELP ME
    By Stimulation in forum Electronic Projects Design/Ideas/Reviews
    Replies: 10
    Latest: 23rd April 2003, 04:55 AM

Tags for this Thread