Remarks

FlameSensor
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor

Code Example

FlameSensor flameSensor;

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

    flameSensor = new FlameSensor(Device.Pins.D13);

    flameSensor.FlameDetected += (s, e) =>
    {
        Resolver.Log.Info($"fire detected: {e}");
    };

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FlameSensor Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00
Characteristic Locus
Inheritance object > FlameSensor
Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Grove.Sensors.Environmental
Assembly FlameSensor.dll

Syntax

public class FlameSensor

Constructors

FlameSensor(IDigitalInterruptPort)

Creates a Flame Sensor driver

Declaration
public FlameSensor(IDigitalInterruptPort signalPort)

Parameters

Type Name Description
IDigitalInterruptPort signalPort

Remarks

FlameSensor
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor

Code Example

FlameSensor flameSensor;

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

    flameSensor = new FlameSensor(Device.Pins.D13);

    flameSensor.FlameDetected += (s, e) =>
    {
        Resolver.Log.Info($"fire detected: {e}");
    };

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FlameSensor Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00

FlameSensor(IPin)

Creates a Flame Sensor driver

Declaration
public FlameSensor(IPin inputPin)

Parameters

Type Name Description
IPin inputPin

Remarks

FlameSensor
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor

Code Example

FlameSensor flameSensor;

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

    flameSensor = new FlameSensor(Device.Pins.D13);

    flameSensor.FlameDetected += (s, e) =>
    {
        Resolver.Log.Info($"fire detected: {e}");
    };

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FlameSensor Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00

Events

FlameDetected

Event triggered when flame source is detected

Declaration
public event EventHandler<bool> FlameDetected

Event Type

Type Description
EventHandler<bool>

Remarks

FlameSensor
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Sensors.Environmental.FlameSensor

Code Example

FlameSensor flameSensor;

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

    flameSensor = new FlameSensor(Device.Pins.D13);

    flameSensor.FlameDetected += (s, e) =>
    {
        Resolver.Log.Info($"fire detected: {e}");
    };

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FlameSensor Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00