Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e87b688

Browse files
Nicla Vision IMU tutorial fixes (#523)
Nicla Vision IMU tutorial fix typos
1 parent 7812225 commit e87b688

File tree

1 file changed

+14
-14
lines changed
  • content/hardware/05.nicla/boards/nicla-vision/tutorials/nicla-vision-imu

1 file changed

+14
-14
lines changed

‎content/hardware/05.nicla/boards/nicla-vision/tutorials/nicla-vision-imu/content.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ software:
2020

2121
## Overview
2222

23-
In this tutorial, we will learn how to access the gyroscope and accelerometer that is on the Nicla Vision board. For this, we will be using the [Arduino_LSMDS63](https://www.arduino.cc/en/Reference/ArduinoLSM6DSOX) library and the Arduino IDE. Printing the values in the serial monitor of the Arduino IDE.
23+
In this tutorial, you will learn how to access the gyroscope and accelerometer that are placed on the Nicla Vision board. For this, you will be using the [Arduino_LSMDS63](https://www.arduino.cc/en/Reference/ArduinoLSM6DSOX) library and the Arduino IDE, printing the values in the Serial Monitor of the Arduino IDE.
2424

2525
## Goals
2626

2727
The goals of this project are:
2828

29-
- Read accelerometer data.
30-
- Read gyroscope data.
31-
- Print the data in the Serial Monitor.
29+
- Read accelerometer data
30+
- Read gyroscope data
31+
- Print the data in the Serial Monitor
3232

3333
### Hardware & Software Needed
3434

@@ -38,33 +38,33 @@ The goals of this project are:
3838

3939
## IMU (Inertial Measurement Unit)
4040

41-
An IMU is a component that exists of different sensors that records data such as specific force, angular rate, orientation. The Nicla Visions IMU has a **gyroscope** and a **accelerometer.** On the image below you can see exactly where on the board the IMU is located.
41+
An IMU is a component that consists of different sensors and can record data such as specific force, angular rate, orientation. The Nicla Visions IMU has a **gyroscope** and a **accelerometer.** On the image below you can see exactly where the IMU is located on the board.
4242

4343
![Placement of IMU on the Nicla Vision](assets/nicla-vision-imu.png)
4444

4545
### Accelerometer & Gyroscope
4646

47-
An accelerometer is an electromechanical device used to measure acceleration forces. Such forces may be static, like the continuous force of gravity or, as is the case with many mobile devices, dynamic to sense movement or vibrations.
47+
An accelerometer is an electromechanical device used to measure acceleration forces. Such forces may be static, like the continuous force of gravity, or, as in the case of many mobile devices, dynamic to sense movement or vibrations.
4848

4949
![Illustration of Nicla Vision accelerometer axis.](assets/nicla_vision_acceleration.png)
5050

51-
A gyroscope sensor is a device that can measure and maintain the orientation and angular velocity of an object. Gyroscopes are more advanced than accelerometers, as they can measure the tilt and lateral orientation of an object, whereas an accelerometer can only measure its linear motion. Gyroscope sensors are also called "Angular Rate Sensors" or "Angular Velocity Sensors". Measured in degrees per second, angular velocity is the change in the rotational angle of the object per unit of time.
51+
A gyroscope sensor is a device that can measure and maintain the orientation and angular velocity of an object. Gyroscopes are more advanced than accelerometers, since they can measure the tilt and lateral orientation of an object, whereas an accelerometer can only measure its linear motion. Gyroscope sensors are also called "Angular Rate Sensors" or "Angular Velocity Sensors". Measured in degrees per second, angular velocity is the change in the rotational angle of the object per unit of time.
5252

5353
![Illustration of Nicla Vision gyroscope axis.](assets/nicla_vision_gyroscope.png)
5454

55-
In this tutorial, we will use the gyroscope as an indicator for the direction of the force that is applied to the board. We will also use the accelerometer as a "level" that will provide information about the position of the board. With this application we will be able to read what the relative position of the board is, as well as the degrees by tilting the board up, down, left or right. The results will be visible through the Serial Monitor.
55+
In this tutorial, you will use the gyroscope as an indicator for the direction of the force that is applied to the board. You will also use the accelerometer as a "level" that will provide information about the position of the board. With this application you will be able to read what the relative position of the board is as well as its orientation, by tilting the board up, down, left or right. The results will be visible through the Serial Monitor.
5656

5757
## Instructions
5858

5959
### Setting up the Arduino IDE
6060

61-
Make sure the latest Nicla Core is installed in the Arduino IDE. **Tools > Board > Board Manager...**. Here we need to look for the **Arduino Mbed OS Nicla Boards** and install it. Now we need to install the library needed for the IMU. Go to **Tools > Manage libraries..**, and search for **Arduino_LSM6DS3** and install it.
61+
Make sure the latest Nicla Core is installed in the Arduino IDE. **Tools > Board > Board Manager...**. Here you need to look for the **Arduino Mbed OS Nicla Boards** and install it. Now you have to install the library needed for the IMU. Go to **Tools > Manage libraries..**, search for **Arduino_LSM6DS3** and install it.
6262

6363
### IMU Sketch
6464

6565
The full sketch can be found at the end of the **Instructions** section. Upload the sketch to the board.
6666

67-
To use the IMU we first include the library. To make it easier with the values from the IMU, we create a variable for each axis.
67+
To use the IMU you first need to include the library. To simplify the values coming from the IMU, you can create a variable for each axis.
6868

6969
```arduino
7070
#include <Arduino_LSM6DSOX.h>
@@ -74,7 +74,7 @@ float Gx, Gy, Gz;
7474
7575
```
7676

77-
To initializes the library we need to call `IMU.begin()`. When the IMU is initialized, we can quickly check the sample rates of the sensors. Calling `IMU.accelerationSampleRate()` and `IMU.gyroscopeSampleRate()` will read the sampling rate of the respective sensor in Hz.
77+
To initializes the library you need to call `IMU.begin()`. When the IMU is initialized, you can quickly check the sample rates of the sensors. Calling `IMU.accelerationSampleRate()` and `IMU.gyroscopeSampleRate()` will read the sampling rate of the respective sensor in Hz.
7878

7979
```arduino
8080
void setup() {
@@ -100,7 +100,7 @@ void setup() {
100100
}
101101
```
102102

103-
In the loop of the sketch we can check the sensors to see if there is data available on the IMU sensors, using `IMU.accelerationAvailable()` and `IMU.gyroscopeAvailable()`. Then we can call `IMU.readAcceleration(Ax, Ay, Az)` to read the accelerometer. It will return the value of the **x**, **y** and **z** axis and update the variables `Ax`, `Ay` and `Az`. We do the same for the gyroscope, formatting it in the serial monitor so it will be a bit easier to read the data. The data is being printed with an interval of 500 milliseconds. This can be adjusted by changing the line `delay(500)` at the bottom of the sketch.
103+
In the loop of the sketch you can check the sensors to see if there is data available on the IMU sensors, using `IMU.accelerationAvailable()` and `IMU.gyroscopeAvailable()`. Then you can call `IMU.readAcceleration(Ax, Ay, Az)` to read the accelerometer. It will return the value of the **x**, **y** and **z** axis and update the variables `Ax`, `Ay` and `Az`. You can do the same for the gyroscope, formatting it in the Serial Monitor so it will be a bit easier to read the data. The data is being printed with an interval of 500 milliseconds. This can be adjusted by changing the line `delay(500)` at the bottom of the sketch.
104104

105105
```arduino
106106
void loop() {
@@ -136,7 +136,7 @@ delay(500);
136136

137137
### Testing It Out
138138

139-
After successfully uploading the code to the board, we will need to open the Serial Monitor to initialize the program. Once we open it, data will start printing.
139+
After successfully uploading the code to the board, you will need to open the Serial Monitor to initialize the program. Once you open it, data will start printing.
140140

141141
### Complete Sketch
142142

@@ -201,4 +201,4 @@ delay(500);
201201

202202
## Conclusion
203203

204-
In this tutorial we have learned how to use the **Arduino_LSM6DSOX** library to access the IMU on the Nicla Vision. With this we learned how to print the gyroscope and accelerometer data in the Arduino IDE serial monitor.
204+
In this tutorial you have learned how to use the **Arduino_LSM6DSOX** library to access the IMU on the Nicla Vision. With this you learned how to print the gyroscope and accelerometer data in the Arduino IDE Serial Monitor.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /