If you don't move the board, the reading of raw data should be close to zero, except for the third value that is Z, equal or close to 16767 that is 1g for a +/-2G range. On the Serial monitor you will see the sensors output before offset calibration and then after calibration. To achieve this, you change this line from int calibrateOffsets = 1 to int calibrateOffsets = 0 and place the board on a flat surface, with components pointing upwards. The sensors may need calibration to get raw data that is related to the real position of the board. In this tutorial we read the whole set of data from the motion sensor with the readMotionSensor function. Each axis measures the acceleration within a range defined by a specific function - setAccelerometerRange - and returns a raw value that needs to be converted to get a value in mg. This library is part of the 101 board core and it is loaded together with the core files for Arduino 101. Arduino 101 CurieIMU Accelerometer With this tutorial you learn to read the three axes of the accelerometer contained in the IMU (Inertial Measurement Unit) of the 101 board. This unit contains a three axes accelerometer and a three axes gyroscope. Software Essentials LibrariesĬurieIMU.h is the library that gives access to all the parameters, features and readings of the IMU chip of the 101 board. No additional hardware is needed to use this tutorial. The function used reads the six values all together, but there are specific functions to read a single sensor or a single axis of a sensor. In this tutorial you read the whole set of raw data from accelerometer and gyroscope.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |