Knock

A Piezo is an electronic device that can both be used to play tones and to detect tones. In this project, a Piezo captures a knock and sends a string "Knock!" back to the computer over the serial port. In order to see this text you can use the Arduino serial monitor.

Connect the piezo's red wire to Arduino's analog pin 0, the black wire to ground, and a resistor in the range of the Megaohm parallel to the piezo element. Use the Arduino code "Knock" to analyze the analog input values.

By omer
Created on April 16, 2009, 12:06

Category: Analog

Difficulty: kids

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: analog, input, piezo

Images

Files

Fritzing Files

Code Files

Links

  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam