Experiment 1 - Measuring Acceleration

search
ProtoCentral Sensything

Experiment 1 - Measuring Acceleration

* Introduction

Accelerometer sensor(BNO080) with sensything is used for measuring acceleration, which is the rate of change of the velocity of an object. This measure in meters per second squared (m/s2) or in G-forces (g). A single G-force for us here on planet Earth is equivalent to 9.8 m/s2, but this does vary slightly with elevation (and will be a different value on different planets due to variations in gravitational pull).

* Objective

To determine the sensing vibrations using sensything in systems or for orientation applications.

* Application

The accelerometer sensor(BNO080) can be used for service robots such as cleaners that employ Simultaneous Localization And Mapping (SLAM) or other ‘intelligent’ navigation solutions and automated projects.

* Procedure

BNO080 accelerometer sensor is used for measuring acceleration. It integrates a triaxial 12-bit accelerometer with a range of ±8g, the sensor can be interfaced with sensything using Qwiic connector very quick or just plug to read data from sensor. Once you upload the code given below using Arduino IDE to your sensything you will can read the x,y and z axes data printed in your serial monitor. Also, be sure to check out the labeling on the front of the board that indicates the orientation of the positive X, Y, and Z axes so you know which way your data is pointing.

Connection.jpg

* Excerpts from the code:

float x = myIMU.getAccelX();         // Accelerometer reading of X
float y = myIMU.getAccelY();         // Accelerometer reading of Y
float z = myIMU.getAccelZ();         // Accelerometer reading of Z

* Pin mapping and connection instructions:

Sensything pin label Alcohol Sensor Colour
SDA Serial Data Blue
SCL Serial Clock Yellow
3V3 3v3 Red
GND GND Black

Connection Instructions
- It is a Quick and Qwiic connection with sensything
- Plug the Qwiic Connector for interface between sensor and sensything.
- Upload the code using Arduino IDE and read accelerometer readings.

Download the Accelerometer Sensor code