Devantech TPA81 Interface code (Matt Crump)
![]() |
I decided to use the Devantech TPA81 Thermopile human heat source detector module instead of the suggested Eltec 442-3 Infrared Sensor. The advantage of using the TPA81 is that it reports 8 points of heat as well as the ambient room temperature (kind of cool if you want your robot to trigger on temperature events). |
| Anyhow, I thought I would share my code with anyone who is interested. I hope I have included the necessary GPL documents and copyrights in the correct places. I have taken the liberty of using Dafydd's i2c interface. | |
| I have only tested my code on Fedora Core 3, so it may need some tweaking on RH9. Copy the files to your utils directory and: |
make make installRunning oap-heat should give you the following usage:
Usage: oap-heat <command> Commands: a Report ambient room temperature. d Report if a human has been detected. p <pixel> Report pixel temperature where pixel = 1..8 r Report all temperature values (ambient and pixels 1-8). v Display the firmware revision of the TPA81 device. Temperature readings are available approx. 40ms after positioning the sensor.The module I2C address is defined in the oap.conf file, as is the mean temperature above ambient before a human detection is triggered.
Source Code
This code is provided as-is, without warranty, and may be used for any purpose.
Please forward me any bugs you find - I am sure there will be plenty
Cheers, Matt.
Links
-
Technical Specs >> Sensors - Thermopile array sensor data sheet.
CategorySoftware CategoryCategory
