Skip to content
Golang driver for the AMG8833 8x8 Thermal Camera Sensor
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/amg8833
README.md
amg8833.go

README.md

This is a Golang driver for the AMG8833 8x8 Thermal Camera Sensor

Installation

go get -u github.com/jweissig/amg8833

Usage

import "github.com/jweissig/amg8833"

For now, amg8833 only supports retrieving thermal pixel data, so no interrupts yet.

  amg, err := amg8833.NewAMG8833(&amg8833.Opts{
    Device: "/dev/i2c-1",
    Mode:   amg8833.AMG88xxNormalMode,
    Reset:  amg8833.AMG88xxInitialReset,
    FPS:    amg8833.AMG88xxFPS10,
  })
  if err != nil {
    panic(err)
  }

  ticker := time.NewTicker(1 * time.Second)

  for {
    grid := amg.ReadPixels()
    fmt.Println(grid)
    <-ticker.C
  }

Acknowledgements

This library is basically a golang port of Adafruit's AMG88xx Library. I also used mstahl's tsl2591 driver as a starting point for the amg8833 one.

You can’t perform that action at this time.