Skip to content

[MKC-486] Add temperature support Nano RP2040 Connect #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ The feature packed **Arduino Nano RP2040 Connect** brings the new **Raspberry Pi
<FeatureLink title="Datasheet" url="https://ww1.microchip.com/downloads/en/DeviceDoc/ATECC608A-CryptoAuthentication-Device-Summary-Data-Sheet-DS40001977B.pdf" download blank/>
</Feature>

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

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

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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags:
- Wi-Fi
- Bluetooth®
- IMU
- Temperature
author: 'Karl Söderby'
libraries:
- name: Arduino LSM6DSOX
Expand Down Expand Up @@ -192,7 +193,9 @@ The VUSB pin is located on the bottom of the board. The pads on the Arduino RP20

### LSM6DSOXTR

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

This module also features an embedded **temperature sensor**.

### LSM6DSOX Library

Expand Down Expand Up @@ -237,6 +240,22 @@ The gyroscope data can be accessed through the following commands:
}
```

### Temperature

The temperature data can be accessed through the following code:

```arduino
if (IMU.temperatureAvailable())
{
int temperature_deg = 0;
IMU.readTemperature(temperature_deg);

Serial.print("LSM6DSOX Temperature = ");
Serial.print(temperature_deg);
Serial.println(" °C");
}
```

### Tutorials

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