Skip to content

Commit 1aa0932

Browse files
Updating hardware and a few examples
1 parent e43228a commit 1aa0932

9 files changed

+53
-26
lines changed
-5.08 KB
Loading
Binary file not shown.
Binary file not shown.
163 KB
Loading
184 KB
Loading
156 KB
Loading
148 KB
Loading

docs/examples.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Alternatively, you can expand the link below and copy and paste the code into a
1717

1818
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.
1919

20-
20+
<figure markdown>
21+
[![Optical Tracking Odometry Sensor Arduino Example 1 Output](assets/img/Arduino_Example_1_Output.jpg){ width="600" }](assets/img/Arduino_Example_1_Output.jpg "Click to enlarge")
22+
<figcaption markdown>Example 1 Output</figcaption>
23+
</figure>
2124

2225
###Example 2: SetUnits
2326

@@ -40,6 +43,21 @@ Alternatively, you can expand the link below and copy and paste the code into a
4043
--8<-- ""
4144
```
4245

46+
Notice the following code snippet - this is the section of code that allows you to choose your units:
47+
48+
<figure markdown>
49+
[![Optical Tracking Odometry Sensor Arduino Example 2 Code Snippet](assets/img/Arduino_Example_2_CodeSnippet.jpg){ width="600" }](assets/img/Arduino_Example_2_CodeSnippet.jpg "Click to enlarge")
50+
<figcaption markdown>Example 2 Code To Change Units </figcaption>
51+
</figure>
52+
53+
54+
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.
55+
56+
<figure markdown>
57+
[![Optical Tracking Odometry Sensor Arduino Example 2](assets/img/Arduino_Example_2_Output.jpg){ width="600" }](assets/img/Arduino_Example_2_Output.jpg "Click to enlarge")
58+
<figcaption markdown>Example 2 Output</figcaption>
59+
</figure>
60+
4361

4462
###Example 3: Calibration
4563

@@ -159,18 +177,23 @@ To find Example 7, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **E
159177

160178
Alternatively, you can expand the link below and copy and paste the code into a shiny new Arduino sketch:
161179

162-
163-
164180
??? "Example 7 Arduino Code"
165181
```
166182
--8<-- ""
167183
```
168184

185+
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:
186+
187+
<figure markdown>
188+
[![Optical Tracking Odometry Sensor Arduino Example 7 Output](assets/img/Arduino_Example_7_Output.jpg){ width="600" }](assets/img/Arduino_Example_7_Output.jpg "Click to enlarge")
189+
<figcaption markdown>Example 7 Output</figcaption>
190+
</figure>
191+
169192

170193

171194
###Example 8: SelfTest
172195

173-
This example shows how to set the offset for the sensor relative to the center of the robot. The units default to inches and degrees, but if you want to use different units, make sure you specify them before setting the offset.
196+
Again, this should be self explanatory. This example tests the basics to make sure everything is working as expected.
174197

175198
To find Example 8, go to **File** > **Examples** > **SparkFun Qwiic OTOS** > **Example8_SelfTest**:
176199

@@ -187,4 +210,6 @@ Alternatively, you can expand the link below and copy and paste the code into a
187210
??? "Example 8 Arduino Code"
188211
```
189212
--8<-- ""
190-
```
213+
```
214+
215+

docs/hardware_overview.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,6 @@ The STM32C011F4U6 microcontroller has a high-performance Arm® Cortex®-M0+ 32-b
1515
</figure>
1616
-->
1717

18-
## Power
19-
20-
The LED indicator lights when power is provided to the board.
21-
22-
<!--
23-
<figure markdown>
24-
[![Power LED(assets/img/){ width="200" }](assets/img/ "Click to enlarge")
25-
<figcaption markdown>Power LED</figcaption>
26-
</figure>
27-
-->
28-
29-
## Qwiic Connectors
30-
31-
The Qwiic Connectors on the SparkFun Optical Tracking Odometry Sensor - PAA5160E1 (Qwiic) provide power and I<sup>2</sup>C connectivity simultaneously. <!--The default I<sup>2</sup>C address is . -->
32-
33-
<!--
34-
<figure markdown>
35-
[![Qwiic Connectors](assets/img/){ width="200" }](assets/img/ "Click to enlarge")
36-
<figcaption markdown>Qwiic Connectors</figcaption>
37-
</figure>
38-
-->
3918

4019
## Optical Tracking Sensor - PAA5160
4120

@@ -75,6 +54,29 @@ The LSM6DSO from STMicroelectronics has a 3-axis digital accelerometer and 3-axi
7554
</figure>
7655
-->
7756

57+
58+
## Power
59+
60+
The LED indicator lights when power is provided to the board.
61+
62+
<!--
63+
<figure markdown>
64+
[![Power LED(assets/img/){ width="200" }](assets/img/ "Click to enlarge")
65+
<figcaption markdown>Power LED</figcaption>
66+
</figure>
67+
-->
68+
69+
## Qwiic Connectors
70+
71+
The Qwiic Connectors on the SparkFun Optical Tracking Odometry Sensor - PAA5160E1 (Qwiic) provide power and I<sup>2</sup>C connectivity simultaneously. The default I<sup>2</sup>C address is 0x17.
72+
73+
<!--
74+
<figure markdown>
75+
[![Qwiic Connectors](assets/img/){ width="200" }](assets/img/ "Click to enlarge")
76+
<figcaption markdown>Qwiic Connectors</figcaption>
77+
</figure>
78+
-->
79+
7880
## GPIO
7981

8082
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; this pin could be used to synchronize measurements if needed.

0 commit comments

Comments
 (0)