Anonymous
Not applicable
Jun 18, 2015
12:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 18, 2015
12:54 AM
I've found that the defined values for Control register 5 doesn't match with the datasheet. This bug directly affects Full-Scale setting (sensitivity) of the sensor.
In "lis3dsh_driver.h" from line 250 to 255 should be fixed this way.
//CONTROL REGISTER 5
#define CNTL5 0x24
#define BW BIT(6) //from BIT(7)
#define FSCALE BIT(3) //from BIT(5)
#define ST BIT(1) //from BIT(2)
#define SIM BIT(0)
Moreover, be careful when you have to call GetAccAxesRaw(AxesRaw_t* buff) because it will divide the raw value by 16.
They cost me a few hours finding what's wrong with my code.
Solved! Go to Solution.
Labels
- Labels:
-
SDK 2.X
-
WICED Sense
1 Solution
Jun 18, 2015
06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 18, 2015
06:39 AM
1 Reply
Jun 18, 2015
06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 18, 2015
06:39 AM