Meadow.Foundation.Sensors.Motion.Bmi270
1.3.4
See the version list below for details.
dotnet add package Meadow.Foundation.Sensors.Motion.Bmi270 --version 1.3.4
NuGet\Install-Package Meadow.Foundation.Sensors.Motion.Bmi270 -Version 1.3.4
<PackageReference Include="Meadow.Foundation.Sensors.Motion.Bmi270" Version="1.3.4" />
paket add Meadow.Foundation.Sensors.Motion.Bmi270 --version 1.3.4
#r "nuget: Meadow.Foundation.Sensors.Motion.Bmi270, 1.3.4"
// Install Meadow.Foundation.Sensors.Motion.Bmi270 as a Cake Addin
#addin nuget:?package=Meadow.Foundation.Sensors.Motion.Bmi270&version=1.3.4
// Install Meadow.Foundation.Sensors.Motion.Bmi270 as a Cake Tool
#tool nuget:?package=Meadow.Foundation.Sensors.Motion.Bmi270&version=1.3.4
Meadow.Foundation.Sensors.Motion.Bmi270
BMI270 I2C 6-axis accelerometer and motion sensor
The Bmi270 library is designed for the Wilderness Labs Meadow .NET IoT platform and is part of Meadow.Foundation.
The Meadow.Foundation peripherals library is an open-source repository of drivers and libraries that streamline and simplify adding hardware to your C# .NET Meadow IoT application.
For more information on developing for Meadow, visit developer.wildernesslabs.co.
To view all Wilderness Labs open-source projects, including samples, visit github.com/wildernesslabs.
Usage
Bmi270 bmi270;
public override Task Initialize()
{
Resolver.Log.Info("Initialize hardware...");
bmi270 = new Bmi270(Device.CreateI2cBus());
// classical .NET events can also be used:
bmi270.Updated += HandleResult;
// Example that uses an IObservable subscription to only be notified when the filter is satisfied
var consumer = Bmi270.CreateObserver(handler: result => HandleResult(this, result),
filter: result => FilterResult(result));
bmi270.Subscribe(consumer);
bmi270.StartUpdating(TimeSpan.FromMilliseconds(2000));
return base.Initialize();
}
bool FilterResult(IChangeResult<(Acceleration3D? Acceleration3D,
AngularVelocity3D? AngularVelocity3D,
Temperature? Temperature)> result)
{
return result.New.Acceleration3D.Value.Z > new Acceleration(0.1, Acceleration.UnitType.Gravity);
}
void HandleResult(object sender,
IChangeResult<(Acceleration3D? Acceleration3D,
AngularVelocity3D? AngularVelocity3D,
Temperature? Temperature)> result)
{
var accel = result.New.Acceleration3D.Value;
var gyro = result.New.AngularVelocity3D.Value;
var temp = result.New.Temperature.Value;
Resolver.Log.Info($"AccelX={accel.X.Gravity:0.##}g, AccelY={accel.Y.Gravity:0.##}g, AccelZ={accel.Z.Gravity:0.##}g, GyroX={gyro.X.RadiansPerMinute:0.##}rpm, GyroY={gyro.Y.RadiansPerMinute:0.##}rpm, GyroZ={gyro.Z.RadiansPerMinute:0.##}rpm, {temp.Celsius:0.##}C");
}
How to Contribute
- Found a bug? Report an issue
- Have a feature idea or driver request? Open a new feature request
- Want to contribute code? Fork the Meadow.Foundation repository and submit a pull request against the
develop
branch
Need Help?
If you have questions or need assistance, please join the Wilderness Labs community on Slack.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Meadow.Foundation (>= 1.3.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Meadow.Foundation.Sensors.Motion.Bmi270:
Package | Downloads |
---|---|
Meadow.ProjectLab
Library for the Meadow ProjectLab IoT accelerator |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Meadow.Foundation.Sensors.Motion.Bmi270:
Repository | Stars |
---|---|
WildernessLabs/Meadow.Foundation
Unified driver and library framework for Meadow applications.
|
Version | Downloads | Last updated |
---|---|---|
1.3.4.5-beta | 0 | 10/4/2023 |
1.3.4.4-beta | 0 | 10/3/2023 |
1.3.4.3-beta | 24 | 10/3/2023 |
1.3.4.2-beta | 39 | 9/30/2023 |
1.3.4.1-beta | 38 | 9/30/2023 |
1.3.4 | 96 | 9/26/2023 |
1.3.2.5-beta | 69 | 9/21/2023 |
1.3.2.4-beta | 63 | 9/20/2023 |
1.3.2.3-beta | 43 | 9/19/2023 |
1.3.2.2-beta | 28 | 9/15/2023 |
1.3.2.1-beta | 58 | 9/14/2023 |
1.3.2-beta | 55 | 9/13/2023 |
1.3.1.1-beta | 73 | 9/5/2023 |
1.3.0 | 207 | 8/29/2023 |
1.2.1.11-beta | 80 | 8/24/2023 |
1.2.1.9-beta | 101 | 8/17/2023 |
1.2.1.8-beta | 125 | 8/8/2023 |
1.2.1.6-beta | 101 | 8/4/2023 |
1.2.0 | 183 | 8/1/2023 |
1.1.1.11-beta | 102 | 7/24/2023 |
1.1.1.10-beta | 90 | 7/22/2023 |
1.1.1.9-beta | 92 | 7/22/2023 |
1.1.1.8-beta | 95 | 7/21/2023 |
1.1.0 | 190 | 7/11/2023 |
1.0.2.1 | 136 | 6/3/2023 |
1.0.2 | 97 | 6/3/2023 |
1.0.0.1 | 113 | 5/30/2023 |
1.0.0 | 115 | 5/28/2023 |
0.99.0 | 121 | 5/28/2023 |
0.98.2-alpha | 83 | 5/27/2023 |
0.98.0 | 138 | 5/6/2023 |
0.96.0 | 263 | 4/2/2023 |
0.95.0 | 305 | 3/5/2023 |
0.94.2 | 311 | 2/7/2023 |
0.94.1 | 329 | 2/2/2023 |
0.92.5 | 402 | 12/31/2022 |
0.90.0 | 304 | 11/23/2022 |
0.89.2 | 272 | 11/23/2022 |
0.1.4 | 471 | 11/21/2022 |
0.1.3 | 537 | 10/24/2022 |