Skip to main content

Class DFRobotGravityDOMeter

DFRobot Analog Gravity Dissolved Oxygen Meter

Assembly: DFRobotGravityDOMeter.dll
View Source
public class DFRobotGravityDOMeter : SamplingSensorBase<ConcentrationInWater>, IObservable<IChangeResult<ConcentrationInWater>>, IDissolvedOxygenConcentrationSensor, ISamplingSensor<ConcentrationInWater>, ISensor<ConcentrationInWater>, ISensor, ISamplingSensor

Inheritance: System.Object -> Meadow.Foundation.ObservableBase<UNIT> -> Meadow.Foundation.SamplingSensorBase<UNIT>

Implements:
System.IObservable<Meadow.IChangeResult<Meadow.Units.ConcentrationInWater>>, Meadow.Peripherals.Sensors.Environmental.IDissolvedOxygenConcentrationSensor, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.ConcentrationInWater>, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.ConcentrationInWater>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISamplingSensor

Properties

WaterTemperature

The current water temperature (default 25C)

View Source
public Temperature WaterTemperature { get; set; }

CalibrationAt25C

The calibration value for the sensor at 25C (default 1.6V)

View Source
public Voltage CalibrationAt25C { get; set; }

AnalogInputPort

Returns the analog input port

View Source
protected IAnalogInputPort AnalogInputPort { get; }

Concentration

Last concentration value read from the sensor

View Source
public ConcentrationInWater? Concentration { get; protected set; }

Methods

GetCurrentVoltage()

Get the current voltage, useful for calibration

View Source
public Task<Voltage> GetCurrentVoltage()
Returns

System.Threading.Tasks.Task<Meadow.Units.Voltage>

ReadSensor()

Reads data from the sensor

View Source
protected override Task<ConcentrationInWater> ReadSensor()
Returns

System.Threading.Tasks.Task<Meadow.Units.ConcentrationInWater>: The latest sensor reading### StartUpdating(TimeSpan?) Starts continuously sampling the sensor

View Source
public override void StartUpdating(TimeSpan? updateInterval)
Parameters
TypeName
System.Nullable<System.TimeSpan>updateInterval

StopUpdating()

Stops sampling the sensor

View Source
public override void StopUpdating()

Implements

  • System.IObservable<Meadow.IChangeResult<Meadow.Units.ConcentrationInWater>>
  • Meadow.Peripherals.Sensors.Environmental.IDissolvedOxygenConcentrationSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.ConcentrationInWater>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.ConcentrationInWater>
  • Meadow.Peripherals.Sensors.ISensor
  • Meadow.Peripherals.Sensors.ISamplingSensor