TI CC2650/MPU-9250 acceleration sensor range
Posted: 14:35, 31 Dec 2015
I just stumbled across your website and downloaded your Evothings Workbench.
It is a joy to work with this wonderful piece of software - thank you!
I am doing my first steps with the TI CC2650 and I am wondering how to set up
the acceleration sensor range properly with javascript.
In den documentation I found
AFS_SEL=0 2g
AFS_SEL=1 4g
AFS_SEL=2 8g
AFS_SEL=3 16g
Configuration AA82* R/W 2 One bit for each gyro and accelerometer axis (6), magnetometer (1), wake-on-motion enable (1), accelerometer range (2). Write any bit combination top enable the desired features. Writing 0x0000 powers the unit off.
The configuration characteristic is used to decide which data (axis) should be activated, if wake-on-motion is to be enabled, and the range of the accelerometer (2, 4, 8 and 16 G).
Bits Usage
0 Gyroscope z axis enable
1 Gyroscope y axis enable
2 Gyroscope x axis enable
3 Accelerometer z axis enable
4 Accelerometer y axis enable
5 Accelerometer x axis enable
6 Magnetometer enable (all axes)
7 Wake-On-Motion Enable
8:9 Accelerometer range (0=2G, 1=4G, 2=8G, 3=16G)
10:15 Not used
Could anyone help me how to set and switch the range within javascript?
Thanks and kind regards,
Good slide
Juergen
It is a joy to work with this wonderful piece of software - thank you!
I am doing my first steps with the TI CC2650 and I am wondering how to set up
the acceleration sensor range properly with javascript.
In den documentation I found
AFS_SEL=0 2g
AFS_SEL=1 4g
AFS_SEL=2 8g
AFS_SEL=3 16g
Configuration AA82* R/W 2 One bit for each gyro and accelerometer axis (6), magnetometer (1), wake-on-motion enable (1), accelerometer range (2). Write any bit combination top enable the desired features. Writing 0x0000 powers the unit off.
The configuration characteristic is used to decide which data (axis) should be activated, if wake-on-motion is to be enabled, and the range of the accelerometer (2, 4, 8 and 16 G).
Bits Usage
0 Gyroscope z axis enable
1 Gyroscope y axis enable
2 Gyroscope x axis enable
3 Accelerometer z axis enable
4 Accelerometer y axis enable
5 Accelerometer x axis enable
6 Magnetometer enable (all axes)
7 Wake-On-Motion Enable
8:9 Accelerometer range (0=2G, 1=4G, 2=8G, 3=16G)
10:15 Not used
Could anyone help me how to set and switch the range within javascript?
Thanks and kind regards,
Good slide
Juergen