User Tools

Site Tools


en:thermophile

This is an old revision of the document!


FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Infrared thermometer

This is a thermopile sensor for contact-less measurement of temperature.

There is some sample code for usage with pymplab Python library:

from pymlab import config

#### Sensor Configuration ###########################################
cfg = config.Config(
    i2c = {
        "port": 0, # I2C bus number
    },

    bus = [
        {
            "type": "i2chub",
            "address": 0x73,
            
            "children": [
                {"name": "thermopile", "type": "thermopile01", "channel": 4, },
            ],
         },
    ],
)

cfg.initialize()
sensor = cfg.get_device("thermopile")

#### Measurement ####################################################
while True:
    print "Ta ", sensor.getTambient(),  "  To ", sensor.getTobject1()
en/thermophile.1424646240.txt.gz · Last modified: 2015/02/23 00:04 by kakl