nanoFramework.Iot.Device.Adxl343 1.0.610

Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Adxl343 --version 1.0.610
                    
NuGet\Install-Package nanoFramework.Iot.Device.Adxl343 -Version 1.0.610
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Adxl343" Version="1.0.610" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Adxl343" Version="1.0.610" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Adxl343" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Adxl343 --version 1.0.610
                    
#r "nuget: nanoFramework.Iot.Device.Adxl343, 1.0.610"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Adxl343&version=1.0.610
                    
Install nanoFramework.Iot.Device.Adxl343 as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Adxl343&version=1.0.610
                    
Install nanoFramework.Iot.Device.Adxl343 as a Cake Tool

ADXL343 - Accelerometer

ADXL343 is a small, thin, low power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ±16g.

Documentation

In English

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.

Here is the basic usage:

var i2c = new(new I2cConnectionSettings(I2cBusId, I2cAddr));

Adxl343 sensor = new Adxl343(i2c, GravityRange.Range16);

Debug.WriteLine("Testing Vector...");

Vector3 v = new Vector3();

while (true)
{
    if (sensor.TryGetAcceleration(ref v))
    {
        Debug.WriteLine("Get Vector Successful");
        Debug.WriteLine($"X = 0x{v.X}, Y = 0x{v.Y}, Z = 0x{v.Z}");
    }
    Thread.Sleep(1000);
}

Also you'll find a lot of functions which will allow you to have a very detailed and precise way to setup the sensor.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.610 158 4/2/2025
1.0.605 151 4/2/2025
1.0.593 167 3/11/2025
1.0.587 168 3/10/2025
1.0.563 107 2/26/2025
1.0.516 117 2/4/2025
1.0.513 100 2/4/2025
1.0.500 108 1/31/2025
1.0.496 103 1/31/2025
1.0.484 107 1/20/2025
1.0.478 74 1/13/2025
1.0.459 101 12/30/2024
1.0.445 112 12/18/2024
1.0.437 108 12/16/2024
1.0.414 117 10/23/2024
1.0.397 137 10/3/2024
1.0.380 133 9/6/2024
1.0.372 128 8/28/2024
1.0.354 134 8/9/2024
1.0.342 97 7/26/2024
1.0.331 119 7/17/2024
1.0.314 135 6/19/2024
1.0.311 120 6/14/2024
1.0.289 111 5/15/2024
1.0.277 153 4/15/2024
1.0.255 143 3/22/2024
1.0.235 132 2/28/2024
1.0.215 159 1/24/2024
1.0.203 176 1/5/2024
1.0.199 167 12/20/2023
1.0.177 173 11/10/2023
1.0.157 138 11/8/2023
1.0.144 157 10/6/2023
1.0.137 136 9/27/2023
1.0.125 141 9/6/2023
1.0.119 188 8/16/2023
1.0.110 167 8/2/2023
1.0.104 166 7/28/2023
1.0.98 173 7/19/2023
1.0.95 150 7/14/2023
1.0.86 165 6/21/2023
1.0.82 171 6/14/2023
1.0.78 181 6/7/2023
1.0.76 162 6/2/2023
1.0.70 179 5/26/2023
1.0.54 170 5/12/2023
1.0.43 183 5/10/2023
1.0.38 170 5/3/2023
1.0.14 251 3/17/2023
1.0.8 259 3/10/2023
1.0.4 261 3/8/2023
1.0.1 267 2/27/2023
0.0.0 287 2/16/2023