Skip to content

TillHaenisch/mlxd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mlxd

A simple demonstration daemon for the MLX90620/90621 temperature sensors. Based upon the PIIR application by Mike Strean.

Adapted to the MLX90621. The original works only with the 90620. Differences can be foumd here https://forum.arduino.cc/index.php?topic=126244.60 or https://github.com/robinvanemden/MLX90621_Arduino_Processing/blob/master/readTemperatures/MLX90621.cpp or in the datasheets https://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwj8jcb3qYbNAhXrIpoKHaehCioQFggdMAA&url=http%3A%2F%2Fwww.melexis.com%2FAsset%2FTransition-from-MLX90620-to-MLX90621-DownloadLink-6446.aspx&usg=AFQjCNFjxtq1G8Ehw6EGenWv3PITfmjszQ&sig2=UjqQlwlO8hOvvK_SHZRe_Q

Installation

Requires Mike McCauley's BCM2835 library. To build, Unzip and run 'make'. The Python demo requires numpy, skimage, cv2 and some other stuff. See the mlxview.py demo 'import' lines for details.

Usage

Run mlxd as root. It will create the file /var/run/mlxd.sock. This FIFO conatins a buffer of the temperature data as an unsigned short int in hundredths of a degree Kelvin. To use it read the FIFO and consume in 128 byte chunks. See mlxview.py for an example.

To test run the mlxview.py script. (Requires the usual math/imaging libraries, cv2, skimage, numpy, etc.)

Contributing

This code is a demo for educational purposes. Bugs can be reported to info@bofinry.org

History

0.1.0 - Initial release

Acknowledgements

The daemon portion of this demo is based upon the PIIR application by Mike Strean -http://github.com/strean/piir.

The routine used to align the IR image comes from Dr. Neil Yager's excellent article on disguise detection - http://www.aicbt.com/disguise-detection/

Also, as a programmer I stand on the shoulders of all those who came before me just as my code sits on top of the libraries they wrote. Thousands of people whose names I will never know helped write this... ;-)

About

Demo code for connecting the Raspberry Pi and the Melexis MLX90620 16x4 thermopile array.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.6%
  • Python 5.6%
  • Makefile 0.8%