I wrote a small program using the g-sensor
This is just a demo
I would try to use the g-sensor.
It may well be in the following projects.
If you are here the source code for PPL.
In the process of building code
Sorry for my English