Motion Research - Jacob-Dixon/MysticWhip GitHub Wiki

##Accelerometer Hardware

###First Option

MMA8452Q

When looking for an accelerometer there were a few requirements. It must be 3-Axis because we want to measure acceleration in the x, y and z for our gestures. Another requirement was that it had the capability to communicate via I2C. One of the cons is the 1.6V to 3.6V interface voltage, but we will only need to add a resistor to ensure it communicates. Another con is this is the only component running on 3.3 V but there were no viable accelerometers with a 5V supply.

Datasheet

###Second Option

ADXL345

Another popular accelerometer option is the ADXL345; this option is almost double the price of the MMA8452Q. Its advantages are it provides less current, but that is not much of an issue seeing as the current is so small. It also can measure up to 16g, whereas our option A can only measure up to 8g. It also has higher maximum ratings. I did not feel that these additions were worth the extra dollars.

Datasheet

##Accelerometer Logic For the logic, the way that we think it would be the most efficient is doing a case reading for the gestures. Rather than saving the reading from the acceleration then comparing them to set gestures, we believe that a case set up is better. If a certain output is read from the accelerometer it will move on to the next check. If it is not the correct gesture or the case times out it will reset.