Skip to content

Commit 14c514e

Browse files
authored
Merge pull request #272 from arduino/karlsoderby/rp-2040-temp-docs
[MKC-486] Add temperature support Nano RP2040 Connect
2 parents 6e2a142 + 54688eb commit 14c514e

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

content/hardware/03.nano/boards/nano-rp2040-connect/features.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ The feature packed **Arduino Nano RP2040 Connect** brings the new **Raspberry Pi
5656
<FeatureLink title="Datasheet" url="https://ww1.microchip.com/downloads/en/DeviceDoc/ATECC608A-CryptoAuthentication-Device-Summary-Data-Sheet-DS40001977B.pdf" download blank/>
5757
</Feature>
5858

59-
<Feature title="Step down converter" image="power">
59+
<Feature title="Temperature Sensor" image="temperature-sensor">
6060

61-
Achieve high efficiency and low noise over a wide input voltage range with the builtin switch mode power supply
61+
The LSM6DSOX sensor also features an embedded sensor that can be accessed directly via a library.
6262

63-
<FeatureLink title="Datasheet" url="https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP2322/" download blank/>
63+
<FeatureLink title="Datasheet" url="/tutorials/nano-rp2040-connect/rp2040-01-technical-reference#temperature"/>
6464
</Feature>
6565

6666

content/hardware/03.nano/boards/nano-rp2040-connect/tutorials/rp2040-01-technical-reference/rp2040-01-technical-reference.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tags:
99
- Wi-Fi
1010
- Bluetooth®
1111
- IMU
12+
- Temperature
1213
author: 'Karl Söderby'
1314
libraries:
1415
- name: Arduino LSM6DSOX
@@ -192,7 +193,9 @@ The VUSB pin is located on the bottom of the board. The pads on the Arduino RP20
192193

193194
### LSM6DSOXTR
194195

195-
The LSM6DSOXTR from STM is an IMU (Inertial Measurement Unit) that features a 3D digital accelerometer and a 3D digital gyroscope. It features among many other things, a machine learning core, which is useful for any motion detection projects, such as free fall, step detector, step counter, pedometer.
196+
The LSM6DSOXTR from STM is an IMU (Inertial Measurement Unit) that features a 3D digital **accelerometer** and a 3D digital **gyroscope**. It features among many other things, a **machine learning core**, which is useful for any motion detection projects, such as free fall, step detector, step counter, pedometer.
197+
198+
This module also features an embedded **temperature sensor**.
196199

197200
### LSM6DSOX Library
198201

@@ -237,6 +240,22 @@ The gyroscope data can be accessed through the following commands:
237240
}
238241
```
239242

243+
### Temperature
244+
245+
The temperature data can be accessed through the following code:
246+
247+
```arduino
248+
if (IMU.temperatureAvailable())
249+
{
250+
int temperature_deg = 0;
251+
IMU.readTemperature(temperature_deg);
252+
253+
Serial.print("LSM6DSOX Temperature = ");
254+
Serial.print(temperature_deg);
255+
Serial.println(" °C");
256+
}
257+
```
258+
240259
### Tutorials
241260

242261
If you want to learn more on how to use the IMU, please check out the tutorial below:

0 commit comments

Comments
 (0)