In case it's useful to anyone else: I have written a simple HAL component to interface to an MLX90621 temperature sensor. This part measures the ambient temperature of the part itself, and provides a 4x16 pixel array of IR temperature sensors. The code is mostly from a project for the Rpi, modified first to use the standard Linux I2C infrastructure (the Rpi version talks directly to the Broadcom hardware) and then to function as a HAL component.
Currently the component only outputs two values, the ambient temperature and an average of all 64 IR values for the remote temperature. I may add ring buffer support to be able get all the pixel values at once, but currently all I need is the average. Source is on github: https://github.com/cdsteinkuehler/mlxd/tree/halcomp Tested with the MLX90621 on a BeagleBone, but it should work with the MLX90620 (edit the #define in the source) and any system with a standard Linux I2C bus available (eg: /dev/i2c0). -- Charles Steinkuehler [email protected] -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
