I guess, the blocks that I shared recently is closer to the result. Please, look at it and give your ideas as well.
Update: Im getting result now as expected but with some errors, ie, the x and y values are getting stuck (not updating new values). This may be because of fault in clock arrangements or something else, have a look and guide me.
Accelerometer shows fixed value when we tilt the phone in different position. So, it is difficult to depend this sensor to check the speed/movement-spikes. Because, same x,y,z reading for phone tilt and phone movement. How can we differentiate the readings between phone tilt and phone movement? There is no option for that.
In case of orientation sensor, the readings will be shown only for phone tilt. But, in accelerometer sensor both values are confused and mixed/merged each other, we cannot differentiate the values as when the sensor shows reading for phone tilt and when it shows reading for phone movement. If there is a way to differentiate Phone Movement using accelerometer sensor, please share the idea here.
No predefined values since accelerometers are hardware based, ranges of measurement are determined by what hardware a manufacturer includes in a device.
@SteveJG But, how can I create an app that differentiate tilt value and movement value using accelerometer, because accelerometer shows both value (ie, value for tilt and movement) without distinguishing both values. I wish to distinguish both.
Can I predict if the values of accelerometer goes up or down from the current value? If the value goes up/down (+3 or -3 ) from the current value, then play music.
I tried these blocks, But, this is not working, guide me,
Will it work if we make the x, y, z as global variables and then try to know which value is smaller? Il get time at night, will expeiment it at that time. Will try by including TinyDB as well.
The simple acceleration example app recognizes Tilting up and down and left/right using the x and y accel. No need to use z axis and compare it to any other axis. Plays a sound when acceleration is within specific values.