====== Bezkontaktní teploměr THERMOPHILE01A ====== Modul pro bezkontaktní měření teploty povrchů. Využivá principu měření intenzity vyzařovaného záření. Naměřená data lze vyčíst přes sběrnici I2C. Zvolené čidlo je http://www.melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/Digital-plug--play-infrared-thermometer-in-a-TO-can-615.aspx ==== Použití ==== Modul byl použit například na robotovi [[https://picasaweb.google.com/116446528170482454972/Robotour2010|Vector z Robozoru]], který podle naměřených teplot cesty a okolí rozpoznával cestu. {{:cs:modules:thermopile:thermopile01a_small.jpg?500|thermopile}} There is a 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 #### 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()