Skip to content

Commit 05edf56

Browse files
removed nested
1 parent 85b3ac9 commit 05edf56

File tree

1 file changed

+9
-9
lines changed
  • content/hardware/03.nano/boards/nano-33-ble/tutorials/imu-accelerometer

1 file changed

+9
-9
lines changed

content/hardware/03.nano/boards/nano-33-ble/tutorials/imu-accelerometer/content.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ Now, connect the Arduino Nano 33 BLE to the computer and make sure that the Clou
8787

8888
Now we will write the code to read the accelerometer data, calculate the tilt angles, and print the relative position of the board as we move it at different angles.
8989

90-
- **Include the BMI270 library at the top of your sketch:**
90+
**Include the BMI270 library at the top of your sketch:**
9191

9292
```arduino
9393
#include "Arduino_BMI270_BMM150.h"
9494
```
9595

96-
- **Initialize variables before the `setup()` function:**
96+
**Initialize variables before the `setup()` function:**
9797

9898
```arduino
9999
#define MINIMUM_TILT 5 // Threshold for tilt detection in degrees
@@ -105,7 +105,7 @@ Now we will write the code to read the accelerometer data, calculate the tilt an
105105
unsigned long previousMillis = 0;
106106
```
107107

108-
- **In the `setup()`, initialize the IMU and start serial communication:**
108+
**In the `setup()`, initialize the IMU and start serial communication:**
109109

110110
```arduino
111111
void setup() {
@@ -123,7 +123,7 @@ Now we will write the code to read the accelerometer data, calculate the tilt an
123123
}
124124
```
125125

126-
- **Write the `loop()` function to read accelerometer data and calculate tilt angles:**
126+
**Write the `loop()` function to read accelerometer data and calculate tilt angles:**
127127

128128
```arduino
129129
void loop() {
@@ -166,7 +166,7 @@ In this code, we use trigonometric functions to calculate the tilt angles from t
166166

167167
> **Note:** For the following code to work properly, the board's facing direction and inclination during the initialization of the code need to be specific. More information will be shared in the "Testing It Out" section.
168168
169-
**4. Complete Code**
169+
**Complete Code**
170170

171171
If you choose to skip the code-building section, the complete code can be found below:
172172

@@ -249,23 +249,23 @@ void loop() {
249249

250250
In order to get correct readings from the board:
251251

252-
1. **Initial Position:**
252+
**Initial Position:**
253253

254254
Before uploading the sketch, place the board on a flat surface with the components facing upwards and the USB port pointing away from you. The image below illustrates the board's position and how it interacts with the X and Y axes:
255255

256256
![Interacting with the X and Y axes.](./assets/nano33BLE_01_illustration.png)
257257

258-
2. **Uploading the Sketch:**
258+
**Uploading the Sketch:**
259259

260260
- Verify and upload the sketch to the board.
261261
- Open the Serial Monitor from the menu on the left.
262262

263-
3. **Interacting with the Board:**
263+
**Interacting with the Board:**
264264

265265
- **Tilting Up/Down:** Tilt the board upwards or downwards to see the "Tilting up" or "Tilting down" messages.
266266
- **Tilting Left/Right:** Tilt the board to the left or right to see the "Tilting left" or "Tilting right" messages.
267267

268-
4. **Observing the Output:**
268+
**Observing the Output:**
269269

270270
The Serial Monitor will display the tilt direction and angle every half-second based on your movements.
271271

0 commit comments

Comments
 (0)