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

Class VibrationSensor

Represents a Vibration Sensor

Assembly: VibrationSensor.dll
View Source
Declaration
public class VibrationSensor

Events

VibrationDetected

Event triggered when vibration is detected

View Source
Declaration
public event EventHandler VibrationDetected
Event Type

System.EventHandler