Piezo Vibration Sensor Hookup Guide

Contributors: Jimb0
Favorited Favorite 7


Piezo sensors are flexible devices that generate electric charge when they’re stressed. This characteristic makes piezos an ideal solution for low-power flex, touch, and vibration sensing. In more advanced applications, piezos can be the foundation for energy harvesting. Piezo’s are the perfect sensor for catching when your fridge is running or as the power source for energy harvesting shake-lights.

Piezo Vibration Sensor - Large

Piezo Vibration Sensor - Large with Mass

Piezo Vibration Sensor - Small Horizontal

Piezo Vibration Sensor - Small Vertical


Piezo’s have the potential to produce very large AC voltage spikes – ranging upwards of ±50V. Because they produce such high voltages, large resistors are often used to “load down” the piezo sensor in vibration-sensing applications. Zener diodes can also be used to clamp voltages down to safe levels.

Suggested Materials

This tutorial serves as a quick primer on piezo vibration sensors, and demonstrates how to hook them up and use them. Beyond the sensor, the following materials are recommended:

Arduino Uno – We’ll be using the Arduino’s analog-to-digital converter to read in the voltage produced by the piezo sensor. Any Arduino-compatible development platform – be it a RedBoard, Pro or Pro Mini – can substitute.

Resistor Kit – To dampen the piezo sensor’s AC voltage spikes, a large load resistor – somewhere around 1MΩ – is used. This resistor kit includes multiple 1MΩ’s, in case you want to combine a few in series.

Breadboard and Jumper Wires – The piezo sensor’s legs are spaced by 0.2" and are breadboard compatible. We’ll stick them and the resistor into a breadboard, then use the jumper wires to connect from breadboard to Arduino.

SparkFun RedBoard - Programmed with Arduino

Resistor Kit - 1/4W (500 total)

Breadboard - Self-Adhesive (White)

Jumper Wires Standard 7" M/M - 30 AWG (30 Pack)


Suggested Reading

Piezos are an great entry-level component for beginners, but there are still a few basic electronics concepts you should be familiar with. If any of these tutorial titles sound foreign to you, consider skimming through that content first.

Analog to Digital Conversion

The world is analog. Use analog to digital conversion to help digital devices interpret the world.

What is an Arduino?

What is this 'Arduino' thing anyway?

Analog vs. Digital

This tutorial covers the concept of analog and digital signals, as they relate to electronics.