Est. Budget: $150.00
I want a very simple code for Arduino (Preferably Mini or Micro but any Arduino works well) that is interfaced with MPU-6050 OR MPU-9150 that can detect movement, in X, Y and/or Z directions, and count everytime direction of movement changes in each direction.
The program should be able to count and print out the number of direction changes (i.e. left to right, right to left, up to down, down to up, front to back and back to ...