nanoFramework.Iot.Device.Adxl357
1.2.952
Prefix Reserved
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Adxl357 --version 1.2.952
NuGet\Install-Package nanoFramework.Iot.Device.Adxl357 -Version 1.2.952
<PackageReference Include="nanoFramework.Iot.Device.Adxl357" Version="1.2.952" />
<PackageVersion Include="nanoFramework.Iot.Device.Adxl357" Version="1.2.952" />
<PackageReference Include="nanoFramework.Iot.Device.Adxl357" />
paket add nanoFramework.Iot.Device.Adxl357 --version 1.2.952
#r "nuget: nanoFramework.Iot.Device.Adxl357, 1.2.952"
#:package nanoFramework.Iot.Device.Adxl357@1.2.952
#addin nuget:?package=nanoFramework.Iot.Device.Adxl357&version=1.2.952
#tool nuget:?package=nanoFramework.Iot.Device.Adxl357&version=1.2.952
ADXL357 - Accelerometer
ADXL357 is a 3-Axis digital accelerometer 40g with 20-bit resolution measurement at up to ±40g. Sensitivity is configurable (±10g, ±20g, ±40g). Has a built in temperature sensor.
Documentation
Product documentation can be found here
Sensor Image
Usage
Important: make sure you properly setup the I2C pins especially for ESP32 before creating the I2cDevice, make sure you install the nanoFramework.Hardware.ESP32 nuget:
//////////////////////////////////////////////////////////////////////
// when connecting to an ESP32 device, need to configure the I2C GPIOs
// used for the bus
Configuration.SetPinFunction(21, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(22, DeviceFunction.I2C1_CLOCK);
For other devices like STM32, please make sure you're using the preset pins for the I2C bus you want to use.
I2cConnectionSettings i2CConnectionSettings = new I2cConnectionSettings(1, Adxl357.DefaultI2CAddress);
I2cDevice device = I2cDevice.Create(i2CConnectionSettings);
using Adxl357 sensor = new Adxl357(device, AccelerometerRange.Range40G);
int calibrationBufferLength = 10;
int calibrationInterval = 100;
await sensor.CalibrateAccelerationSensor(calibrationBufferLength, calibrationInterval).ConfigureAwait(false);
while (true)
{
// read data
Vector3 data = sensor.Acceleration;
Debug.WriteLine($"X: {data.X.ToString("0.00")} g");
Debug.WriteLine($"Y: {data.Y.ToString("0.00")} g");
Debug.WriteLine($"Z: {data.Z.ToString("0.00")} g");
Debug.WriteLine();
// wait for 500ms
Thread.Sleep(500);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (>= 1.17.11)
- nanoFramework.Runtime.Events (>= 1.11.32)
- nanoFramework.System.Buffers.Binary.BinaryPrimitives (>= 1.2.862)
- nanoFramework.System.Device.Gpio (>= 1.1.57)
- nanoFramework.System.Device.I2c (>= 1.1.29)
- nanoFramework.System.Math (>= 1.5.116)
- nanoFramework.System.Numerics (>= 1.2.862)
- nanoFramework.UnitsNet.Temperature (>= 5.76.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.45 | 38 | 4/29/2026 |
| 2.0.0-preview.32 | 47 | 4/20/2026 |
| 2.0.0-preview.16 | 54 | 3/10/2026 |
| 1.2.952 | 105 | 3/4/2026 |
| 1.2.931 | 294 | 11/10/2025 |
| 1.2.907 | 245 | 10/2/2025 |
| 1.2.889 | 233 | 7/28/2025 |
| 1.2.869 | 330 | 4/2/2025 |
| 1.2.864 | 303 | 4/2/2025 |
| 1.2.852 | 331 | 3/11/2025 |
| 1.2.846 | 320 | 3/10/2025 |
| 1.2.822 | 263 | 2/26/2025 |
| 1.2.775 | 258 | 2/4/2025 |
| 1.2.772 | 277 | 2/4/2025 |
| 1.2.759 | 261 | 1/31/2025 |
| 1.2.755 | 275 | 1/31/2025 |
| 1.2.743 | 257 | 1/20/2025 |
| 1.2.737 | 251 | 1/13/2025 |
| 1.2.718 | 255 | 12/30/2024 |
| 1.2.704 | 259 | 12/18/2024 |