You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/05.nicla/boards/nicla-vision/tutorials/proximity/content.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ software:
20
20
21
21
In this tutorial you will use the Nicla Vision to detect proximity, thanks to the Time of Flight (ToF) sensor **VL53L1X**.
22
22
23
-
This tutorial goes through how to create a sketch that will blink the built-in RGB LED and control the speed of its blink with the proximity values. It can be useful for future projects where there is a need to control the camera only when something is detected in front of the sensor.
23
+
This tutorial teaches you how to create a sketch that will blink the built-in RGB LED and control the speed of its blink with the proximity values. It can be useful for future projects where there is the need to control the camera only when something is detected in front of the sensor.
24
24
25
25
***The Arduino sketch shown is available inside the `Arduino_Pro_Tutorials` library by going to Examples > Nicla Vision > Proximity_Blink***
26
26
@@ -56,7 +56,7 @@ If you are using version 1.6.2 or later of the Arduino software (IDE), you can u
56
56
57
57
### Include the Needed Libraries and Objects Declaration
58
58
59
-
First of all declare the sensor's class so you can access it later on in your sketch. We use variables to control the time elements in the sketch. This will make sure that the readings stay accurate over time.
59
+
First of all, declare the sensor's class so you can access it later on in your sketch. You can use variables to control the time elements in the sketch. This will make sure that the readings stay accurate over time.
60
60
61
61
```cpp
62
62
#include"VL53L1X.h"
@@ -70,7 +70,7 @@ int blinkTime = 2000;
70
70
71
71
### Initialize the Proximity Sensor and the LED
72
72
73
-
Inside the setup you need to initialize and configure the proximity sensor. Also the RGB LED needs to be set as an output to make it light up and enable us to change its behavior.
73
+
Inside the setup you need to initialize and configure the proximity sensor. Also the RGB LED needs to be set as an output to make it light up and enable you to change its behavior.
74
74
75
75
***The LEDs are accessed in the same way as on the Portenta H7: LEDR, LEDG and LEDB.***
76
76
@@ -95,7 +95,7 @@ Inside the setup you need to initialize and configure the proximity sensor. Also
95
95
}
96
96
```
97
97
98
-
***Make sure you initialize `Wire1`, set the clock speed to 400 kHz and set the bus pointer to `Wire1`, it won't work if you don't add these setting.***
98
+
***Make sure you initialize `Wire1`, set the clock speed to 400 kHz and set the bus pointer to `Wire1`. It will not work if you do not add these setting.***
99
99
100
100
### Control the Speed of the Blink
101
101
@@ -181,4 +181,4 @@ void loop() {
181
181
182
182
## Conclusion
183
183
184
-
In this tutorial we went through how to get readings from the ToF sensor. And how use these readings to change how the built-in LED behaves. At the end of the tutorial you can also find a reference list for the ToF library.
184
+
In this tutorial we went through how to get readings from the ToF sensor and how use these readings to change how the built-in LED behaves. At the end of the tutorial you can also find a reference list for the ToF library.
0 commit comments