LilyPad Accelerometer Hookup Guide

Pages
Contributors: Gella

Introduction

The LilyPad Accelerometer is a three axis accelerometer made for sewable applications. Based on the ADXL335 MEMS accelerometer from Analog Devices, the LilyPad Accelerometer can detect joint movement as well as inclination and vibration.

The ADXL335 outputs a 0V to 3V analog signal on each of the X, Y, and Z axis. You will need to convert this analog voltage to a gravity amount and use trigonometry to calculate a true ‘angle’. If you are not looking for tilt, it is very easy to use this sensor for basic motion sensing.

LilyPad Accelerometer - ADXL335

DEV-09267
$18.50
For this tutorial, we'll be using CodeBender - you can follow along with the coding enviroment in the tutorial or copy and paste the code into your Arduino IDE.

Suggested Reading

We won't be covering the basics of accelerometer technology in this tutorial, just adding this sensor to a project. For more detailed information on accelerometers check out these tutorials: