Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
mellis
Published © CC BY-SA

Gesture Recognition Using Accelerometer and ESP

The ESP system make it easy to recognize gestures you make using an accelerometer.

IntermediateFull instructions provided59,667
Gesture Recognition Using Accelerometer and ESP

Things used in this project

Hardware components

Arduino 101
Arduino 101
Includes a built-in accelerometer, so no additional components or circuitry is required.
×1
Arduino UNO
Arduino UNO
You can use an Arduino Uno (or other Arduino) instead of the Arduino 101, but you'll need an accelerometer, too.
×1
Analog Accelerometer: ADXL335
Adafruit Analog Accelerometer: ADXL335
Use this (or the SparkFun equivalent) if you're using an Arduino other than the Arduino 101 (which has an accelerometer built-in).
×1
SparkFun Triple Axis Accelerometer Breakout - ADXL335
SparkFun Triple Axis Accelerometer Breakout - ADXL335
Use this (or the Adafruit equivalent) if you're using an Arduino other than the Arduino 101 (which has an accelerometer built-in).
×1

Story

Read more

Code

Arduino ADXL335 Code

This code reads from an ADXL335 connected to an Arduino: the X-axis pin of the accelerometer should be connected to pin A5 of the Arduino, the Y-axis to A4, and the Z-axis to A3. Readings are sent over the serial (USB) port at 9600 baud, as tab-separated, newline-terminated ASCII data.

Arduino 101 Accelerometer Code

Reads accelerometer data from the built-in accelerometer on an Arduino 101. The readings are sent over the serial (USB) port at 9600 as newline-terminated, tab-separated ASCII data.

Credits

mellis

mellis

1 project • 35 followers

Comments