smarter accelerometer