User Tools

Site Tools


en:thermophile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:thermophile [2015/02/23 00:01]
kakl created
en:thermophile [2015/02/23 00:11] (current)
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ====== Infrared thermometer ====== ====== Infrared thermometer ======
  
 This is a thermopile sensor for contact-less measurement of temperature. This is a thermopile sensor for contact-less measurement of temperature.
  
-There is some sample code for usage with pymplab ​Python library:+{{:​cs:​modules:​thermopile:​thermopile01a_small.jpg?​500|thermopile}} 
 + 
 +There is sample code for usage with [[https://​github.com/​MLAB-project/​MLAB-I2c-modules|pymlab]] ​Python library ​and [[en:​usbi2c|USBI2C01A]] module:
  
   from pymlab import config   from pymlab import config
 +  ​
   #### Sensor Configuration ###########################################​   #### Sensor Configuration ###########################################​
   cfg = config.Config(   cfg = config.Config(
Line 16: Line 16:
   ​   ​
       bus = [       bus = [
-      ​{+          ​{
               "​type":​ "​i2chub",​               "​type":​ "​i2chub",​
               "​address":​ 0x73,               "​address":​ 0x73,
Line 23: Line 23:
                   {"​name":​ "​thermopile",​ "​type":​ "​thermopile01",​ "​channel":​ 4, },                   {"​name":​ "​thermopile",​ "​type":​ "​thermopile01",​ "​channel":​ 4, },
               ],               ],
-      ​},+           },
       ],       ],
   )   )
 +  ​
   cfg.initialize()   cfg.initialize()
   sensor = cfg.get_device("​thermopile"​)   sensor = cfg.get_device("​thermopile"​)
Line 33: Line 33:
   while True:   while True:
       print "Ta ", sensor.getTambient(), ​ " ​ To ", sensor.getTobject1()       print "Ta ", sensor.getTambient(), ​ " ​ To ", sensor.getTobject1()
- 
  
en/thermophile.1424646102.txt.gz · Last modified: 2015/02/23 00:01 (external edit)