diff --git a/content/hardware/03.nano/boards/nano-rp2040-connect/features.md b/content/hardware/03.nano/boards/nano-rp2040-connect/features.md index c07d83f758..b6350fb020 100644 --- a/content/hardware/03.nano/boards/nano-rp2040-connect/features.md +++ b/content/hardware/03.nano/boards/nano-rp2040-connect/features.md @@ -56,11 +56,11 @@ The feature packed **Arduino Nano RP2040 Connect** brings the new **Raspberry Pi - + - 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. - + diff --git a/content/hardware/03.nano/boards/nano-rp2040-connect/tutorials/rp2040-01-technical-reference/rp2040-01-technical-reference.md b/content/hardware/03.nano/boards/nano-rp2040-connect/tutorials/rp2040-01-technical-reference/rp2040-01-technical-reference.md index f711f15f5b..dcfa97e7a6 100644 --- a/content/hardware/03.nano/boards/nano-rp2040-connect/tutorials/rp2040-01-technical-reference/rp2040-01-technical-reference.md +++ b/content/hardware/03.nano/boards/nano-rp2040-connect/tutorials/rp2040-01-technical-reference/rp2040-01-technical-reference.md @@ -9,6 +9,7 @@ tags: - Wi-Fi - Bluetooth® - IMU + - Temperature author: 'Karl Söderby' libraries: - name: Arduino LSM6DSOX @@ -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 @@ -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: