MLX90621 Temperature Sensor

20 views
Skip to first unread message

Charles Steinkuehler

unread,
Feb 24, 2019, 12:43:26 PM2/24/19
to beagl...@googlegroups.com
In case it's useful for anyone else, I have ported code for the
MLX90621 (4x16 pixel remote IR temperature sensor) from the RPi (talks
directly to the BCM hardware) to use standard Linux I2C devices (eg:
/dev/i2c1) so it works on the 'Bone and other boards with standard
Linux I2C support.

Tested on a BBB using I2C2 (/dev/i2c1, the cape EEPROM I2C bus), 5.6K
pull-up resistors, and a diode-connected transistor to drop the 3.3V
rail to the 2.6V preferred by the MLX.

Code is on github:
https://github.com/cdsteinkuehler/mlxd/tree/linux-i2c

--
Charles Steinkuehler
cha...@steinkuehler.net

Adrian Godwin

unread,
Feb 24, 2019, 1:07:03 PM2/24/19
to beagl...@googlegroups.com
Thanks for that. I've done something similar for another Melexis device, the MLX90640 32x24 sensor.

However, I've used a rather bizarre interface : an arduino that does the I2C operations remotely via  the usual USB-serial interface.
It also handles a couple of ST vl53l1x distance sensors. This is because I wanted a fairly generic connection that wasn't tied to the capabilities of any particular SBC.

It's a fairly slow way to do things and suffers from the small buffer memory in the arduino, but the USB-serial part is fairly well encapsulated and I can probably learn something from your use of the direct i2c connection. Or perhaps use USB natively, without the serial part, on a different microcontroller such as a teensy or maple.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/ec6f20fa-8261-48f9-b9d5-696910767461%40steinkuehler.net.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages