Skip to content

A Swift library for Panasonic AMG88 Grid-EYE thermopile sensors.

License

Notifications You must be signed in to change notification settings

emorydunn/AMG88xx.swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMG88

A Swift library for the Panasonic AMG88 family of sensors.

Summary

This library can read temperature data from the AMG88 thermopile sensor.

Usage

Firstly, you'll need to obtain an instance of I2CInterface from SwiftyGPIO and use it to initialize the AMG88 object:

import SwiftyGPIO
import AMG88

let i2cs = SwiftyGPIO.hardwareI2Cs(for: .RaspberryPiPlusZero)!
let i2c = i2cs[1]

let sensor = AMG88(i2c)

Once you have a sensor object you can read temperature data from the thermopile:

let pixels = sensor.readPixels()

pixels.logPagedData()
// 26 27 29 30 29 28 27 28
// 28 29 31 31 30 28 27 27
// 31 30 30 31 30 28 28 27
// 28 30 30 31 31 29 27 28
// 27 30 31 31 30 28 27 27
// 26 27 30 29 30 28 27 27
// 26 25 27 29 28 27 27 28
// 25 26 25 26 26 27 26 27

Acknowledgments

Much of this library is inspired by the Adafruit AMG88 library written by Dean Miller.

About

A Swift library for Panasonic AMG88 Grid-EYE thermopile sensors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages