Experimenting with Arduino and piezos

Arduino enthusiast ‘Lucky Larry’ spent some time to document his experimenting with Arduino and some piezo sensors. After realising that they can be also used as knock sensors, he used them to create a minimalist drum machine. However instead of just detecting simple knocks, his code detects the approximate peak frequency of each hit, and generates a matching tone for output. For example:

 

For more information, explanation and the Arduino sketch, head over to Larry’s page here. And we’re on twitter and Google+, so follow us for news and product updates as well. 

If you’re interested in working with piezos for various reasons we have a neat littleSOUND: sound and buzzer module:

 

It can be used as a noise-maker driven by your microcontroller for audible feedback of events, and it can also be used as a knock-detector input to sense events and react to them. Includes a built-in 1M resistor to allow the piezo element to detect shocks. For more information and to order, please visit the product page here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: