Skip to main content

Meadow.Foundation.Grove.Sensors.Motion.VibrationSensor

VibrationSensor
StatusStatus badge: working
Source codeGitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Grove.Sensors.Motion.VibrationSensor

Code Example

VibrationSensor sensor;

public override Task Initialize()
{
Resolver.Log.Info("Initialize...");

sensor = new VibrationSensor(Device.Pins.D13);

sensor.VibrationDetected += (s, e) =>
{
Resolver.Log.Info("Motion detected");
};

return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

VibrationSensorMeadow Pin
GNDGND
VCC3.3V
RXD01
TXD00