Skip to main content

Meadow.Foundation.Sensors.Camera.Amg8833

Amg8833
StatusStatus badge: working
Source codeGitHub
Datasheet(s)GitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Sensors.Camera.Amg8833

Code Example

Amg8833 camera;

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

var i2cBus = Device.CreateI2cBus(I2cBusSpeed.Fast);
camera = new Amg8833(i2cBus);

return Task.CompletedTask;
}

public override Task Run()
{
while (true)
{
var pixels = camera.ReadPixels();

//output the first 4 pixels
Resolver.Log.Info($"{pixels[0].Celsius:F1}°C, {pixels[1].Celsius:F1}°C, {pixels[2].Celsius:F1}°C, {pixels[3].Celsius:F1}°C");
}
}

Sample project(s) available on GitHub

Class Amg8833

Represents a Panasonic Grid-EYE infrared array sensor

Assembly: Amg8833.dll
View Source
Declaration
public class Amg8833 : II2cPeripheral

Implements:
Meadow.Hardware.II2cPeripheral

Properties

DefaultI2cAddress

The default I2C address for the peripheral

View Source
Declaration
public byte DefaultI2cAddress { get; }

Methods

ReadThermistor()

Reads the temperature of the on-board thermistor

View Source
Declaration
public Temperature ReadThermistor()
Returns

Meadow.Units.Temperature

ReadRawPixels(Span<short>)

Reads the raw sensor data into the provided buffer.

View Source
Declaration
public void ReadRawPixels(Span<short> buffer)
Parameters
TypeNameDescription
System.Span<System.Int16>bufferA span of 64 16-but values

ReadPixels()

Reads the temperature of each pixel in the sensor

View Source
Declaration
public Temperature[] ReadPixels()
Returns

Meadow.Units.Temperature[]

Implements

  • Meadow.Hardware.II2cPeripheral