Arduino Knock


Posted on Feb 4, 2014

A piezo is an electronic device that generates a voltage when it`s physically deformed by a vibration, sound wave, or mechanical strain. Similarly, when you put a voltage across a piezo, it vibrates and creates a tone. Piezos can be used both to play tones and to detect tones. The sketch reads the piezos output using the analogRead() command, enco


Arduino Knock
Click here to download the full size of the above Circuit.

ding the voltage range from 0 to 5 volts to a numerical range from 0 to 1023 in a process referred to as analog-to-digital conversion, or ADC. Piezos are polarized, meaning that voltage passes through them (or out of them) in a specific direction. Connect the black wire (the lower voltage) to ground and the red wire (the higher voltage) to analog pin 0. Additionally, connect a 1-megohm resistor in parallel to the Piezo element to limit the voltage and current produced by the piezo and to protect the analog input. It is possible to acquire piezo elements without a plastic housing. These will look like a metallic disc, and are easier to use as input sensors. PIezo sensors work best when firmly pressed against, taped, or glued their sensing surface. In the code below, the incoming piezo data is compared to a threshold value set by the user. Try raising or lowering this value to increase your sensor`s overall sensitivity.




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    14MHz SSB 10mW transceiver
    Automatic Bell AT89S8252
    MOSFET Power amplifier
    Car central Light Dimmer
    Precision full wave rectifier
    Mains-Powered Timer
    Electric Heater Thermostat
    power failure alarm circuit
    darkness activated alarm
    Whistle Light Switch
    5 Watt Class-A Audio Amplifier Circuit
    Stepper Motor Generator
    automatic wiper control
    Electrical modeling of a nanopore measurement
    LED Driver: 6 Channels with Phase Shift Control
    Four Port Serial Adapter for the EB675001DIP



    Top