Skip to content

Commit 2fdca31

Browse files
Updates to example page
1 parent bf334ff commit 2fdca31

File tree

5 files changed

+66
-6
lines changed

5 files changed

+66
-6
lines changed

docs/examples.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
###Example 1: Basic Readings
2+
3+
This first example just does some basic measurements to make sure everything is hooked up correctly. To find Example 1, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example01_BasicUsage**:
4+
5+
6+
<figure markdown>
7+
[![Optical Tracking Odometry Sensor Arduino Example 1](assets/imgs/Example1_Menu.jpg){ width="90%" }](assets/imgs/Example1_Menu.jpg "Click to enlarge")
8+
<figcaption markdown>Finding Example 1</figcaption>
9+
</figure>
10+
11+
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
12+
13+
14+
??? "Example 1 Arduino Code"
15+
```
16+
--8<-- ""
17+
```
18+
19+
Make sure you've selected the correct board and port in the Tools menu and then hit the upload button. Once the code has finished uploading, go ahead and open a [Serial Monitor](https://learn.sparkfun.com/tutorials/terminal-basics). You should see something similar to the following.
20+
21+
<figure markdown>
22+
[![OTOS Arduino Example 1 Output](assets/imgs/Example1_Output.jpg){ width="90%" }](assets/imgs/Example1_Output.jpg "Click to enlarge")
23+
<figcaption markdown>Example 1 Output</figcaption>
24+
</figure>
25+
26+
###Example 2: SetUnits
27+
28+
<!--
29+
30+
??? "Example 2 Arduino Code"
31+
```
32+
--8<-- ""
33+
```
34+
-->
35+
36+
###Example 3: Calibration
37+
38+
<!--
39+
40+
??? "Example 3 Arduino Code"
41+
```
42+
--8<-- ""
43+
```
44+
-->
45+
46+
47+
###Example 4: SetOffsetAndPosition
48+
49+
<!--
50+
51+
??? "Example 4 Arduino Code"
52+
```
53+
--8<-- ""
54+
```
55+
-->

docs/hardware_assembly.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ icon: fontawesome/solid/screwdriver-wrench
33
---
44

55

6-
Using the Qwiic system, assembling the hardware is simple. Connect the SparkFun Optical Tracking Sensor using your Qwiic cable. Then connect the RedBoard to your computer via the MicroUSB cable and voila! You're ready to rock!
6+
The SparkFun Optical Tracking Odometry Sensor needs to be rigidly mounted to a robot chassis and oriented flat to the floor. We've designed a few 3D printing models you can use, but you may need to design your own mount for this board, depending on your use case.
7+
8+
79

810
<figure markdown>
911
[![Qwiic Cable connecting Optical Tracking Sensor to RedBoard](assets/img/Soil_Moisture_Sensor_Hookup_Guide_Update-02.jpg){ width="600" }](assets/img/Soil_Moisture_Sensor_Hookup_Guide_Update-02.jpg "Click to enlarge")
@@ -13,3 +15,9 @@ Using the Qwiic system, assembling the hardware is simple. Connect the SparkFun
1315

1416
!!! attention
1517
Reminder - make sure you peel off the yellow kapton tape before using this!
18+
19+
20+
21+
22+
23+
the sensor really needs to be rigidly mounted to a robot chassis, and oriented flat to the floor. I'm planning on providing a couple 3D printable mount designs that folks can use, but they may need to design their own mount. Also emphasize that the examples really require the sensor to be mounted correctly; attempting to move the sensor by hand can work, but tracking accuracy may be terrible.

docs/hardware_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The LSM6DSO from STMicroelectronics has a 3-axis digital accelerometer and 3-axi
7474

7575
## GPIO
7676

77-
The PTH pins on the side of the board allow you to provide power, access the I<sup>2</sup>C Data and Clock lines, and there are two pins available for UART/generic programming purposes.
77+
The PTH pins on the side of the board allow you to provide power, access the I<sup>2</sup>C Data and Clock lines, and there are two pins available for UART/generic programming purposes. In normal operation, IO9 acts as a "data ready" interrupt, so a user could use that to synchronize measurements if needed.
7878

7979
<!--
8080
<figure markdown>

docs/single_page.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ icon: fontawesome/solid/scroll
1717
## Software Setup
1818
--8<-- "./docs/software_setup_and_programming.md:5"
1919

20-
## Arduino Example
21-
--8<-- "./docs/arduino_example.md:5"
22-
2320
# Troubleshooting Tips
2421
--8<-- "./docs/troubleshooting.md:5"
2522

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ nav:
254254
- Hardware Overview: hardware_overview.md
255255
- Hardware Assembly: hardware_assembly.md
256256
- Software Setup: software_setup_and_programming.md
257-
- Arduino Example: arduino_example.md
257+
- Arduino Examples: examples.md
258258
- Resources: resources.md
259259
- Support:
260260
- Troubleshooting: troubleshooting.md

0 commit comments

Comments
 (0)