Remarks

Ads1015
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.ADC.Ads1x15

Code Example

Sample project(s) available on GitHub

Wiring Example

To wire a Ads1015 to your Meadow board, connect the following:

Ads1015 Meadow Pin
GND GND
VCC 3V3
SCL D08 (SCL Pin)
SDA D07 (SDA Pin)
Characteristic Locus
Inheritance object ObservableBase<Voltage> SamplingSensorBase<Voltage> PollingSensorBase<Voltage> Ads1x15Base > Ads1015
Implements IObservable<IChangeResult<Voltage>> ISamplingSensor<Voltage> ISensor<Voltage> II2cPeripheral
Inherited Members Ads1x15Base.DefaultI2cAddress Ads1x15Base.i2cComms Ads1x15Base.InternalSampleRate Ads1x15Base.Channel Ads1x15Base.Gain Ads1x15Base.Mode Ads1x15Base.ReadSensor() Ads1x15Base.ReadRaw() PollingSensorBase<Voltage>.StartUpdating(TimeSpan?) PollingSensorBase<Voltage>.StopUpdating() SamplingSensorBase<Voltage>.samplingLock SamplingSensorBase<Voltage>.Updated SamplingSensorBase<Voltage>.SamplingTokenSource SamplingSensorBase<Voltage>.Conditions SamplingSensorBase<Voltage>.IsSampling SamplingSensorBase<Voltage>.UpdateInterval SamplingSensorBase<Voltage>.RaiseEventsAndNotify(IChangeResult<Voltage>) SamplingSensorBase<Voltage>.Read() ObservableBase<Voltage>.observers ObservableBase<Voltage>.NotifyObservers(IChangeResult<Voltage>) ObservableBase<Voltage>.Subscribe(IObserver<IChangeResult<Voltage>>) ObservableBase<Voltage>.CreateObserver(Action<IChangeResult<Voltage>>, Predicate<IChangeResult<Voltage>>) object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.ICs.ADC
Assembly Ads1x15.dll

Syntax

public class Ads1015 : Ads1x15Base, IObservable<IChangeResult<Voltage>>, ISamplingSensor<Voltage>, ISensor<Voltage>, II2cPeripheral

Constructors

Ads1015(II2cBus, Addresses, MeasureMode, ChannelSetting, SampleRateSetting)

Create a new ADS1015 object

Declaration
public Ads1015(II2cBus i2cBus, Ads1x15Base.Addresses address = Addresses.Address_0x48, Ads1x15Base.MeasureMode mode = MeasureMode.OneShot, Ads1x15Base.ChannelSetting channel = ChannelSetting.A0A1Differential, Ads1015.SampleRateSetting sampleRate = SampleRateSetting.Sps1600)

Parameters

Type Name Description
II2cBus i2cBus
Ads1x15Base.Addresses address
Ads1x15Base.MeasureMode mode
Ads1x15Base.ChannelSetting channel
Ads1015.SampleRateSetting sampleRate

Remarks

Ads1015
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.ADC.Ads1x15

Code Example

Sample project(s) available on GitHub

Wiring Example

To wire a Ads1015 to your Meadow board, connect the following:

Ads1015 Meadow Pin
GND GND
VCC 3V3
SCL D08 (SCL Pin)
SDA D07 (SDA Pin)

Properties

BitResolution

Sample rate resolution

Declaration
protected override int BitResolution { get; }

Property Value

Type Description
int

Overrides

Remarks

Ads1015
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.ADC.Ads1x15

Code Example

Sample project(s) available on GitHub

Wiring Example

To wire a Ads1015 to your Meadow board, connect the following:

Ads1015 Meadow Pin
GND GND
VCC 3V3
SCL D08 (SCL Pin)
SDA D07 (SDA Pin)

ReadShiftBits

Bits to shift for reads

Declaration
protected override int ReadShiftBits { get; }

Property Value

Type Description
int

Overrides

Remarks

Ads1015
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.ADC.Ads1x15

Code Example

Sample project(s) available on GitHub

Wiring Example

To wire a Ads1015 to your Meadow board, connect the following:

Ads1015 Meadow Pin
GND GND
VCC 3V3
SCL D08 (SCL Pin)
SDA D07 (SDA Pin)

SampleRate

Sample rate setting

Declaration
public Ads1015.SampleRateSetting SampleRate { get; set; }

Property Value

Type Description
Ads1015.SampleRateSetting

Remarks

Ads1015
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.ADC.Ads1x15

Code Example

Sample project(s) available on GitHub

Wiring Example

To wire a Ads1015 to your Meadow board, connect the following:

Ads1015 Meadow Pin
GND GND
VCC 3V3
SCL D08 (SCL Pin)
SDA D07 (SDA Pin)