Package: mlx90632-driver
mlx90632-driverValidationInterfaceWin PCLinux PCRaspberry Pi (linux)Nvidia Jetson Nano (linux)EVB90632(usb)1.2.01.1.01.1.01.1.0FTDI(FT2232H)1.1.01.1.01.1.01.1.0I2C-bus(40pin)N/AN/A1.1.01.1.0IntroThis python driver for MLX90632 aims to facilitate the interfacing on a PC.Currently this driver supports 3 type of interfaces:EVB90632 on WinPC, LinuxPC, Raspberry Pi ==>https://www.melexis.com/en/product/EVB90632/EVB90632Raspberry Pi on built-in hardware I2C bus ==>https://www.raspberrypi.org/.FTDI FT2232H on WinPC, LinuxPC, Raspberry Pi ==>https://www.mikroe.com/click-usb-adapter.Getting startedSee below forinstallationinstructionsRunning the driver demoConnect the EVB to your PC.Open a terminal and run following command:mlx90632-dumpThis program takes 1 optional argument.mlx90632-dump<interface><reading_count><interface>can be:auto(default) search for the first port available with EVB90632 hardware as interface to MLX90632.I2C-1on raspberry pi use the I2C hardware; it requires raspi-config to enable i2c hardware.mlx://evb:90632/1use first EVB90632 on USB.mlx://evb:90632/2use second EVB90632 on USB.ftdi://ftdi:2232/1use first FT2232 port on USB.UsageBelow you can find an example on how to read a sample of the MLX90632 senor with I2C address 0x3A. Please look into mlx90632.py for more advanced features.frommlx90632.mlx90632importMlx90632dev=Mlx90632('mlx://evb:90632/1')# establish communication between EVB90632 and PCdev.init()# read EEPROM and pre-compute calibration parameters.dev.wait_new_data()# wait until there is new data.raw_data=dev.read_measurement_data()# read new measurement data.ta,to=dev.do_compensation(raw_data)# compute the temperature.print("TA:{}-- TO:{}DegC".format(ta,to))# print the resultsIssues and new FeaturesIn case you have any problems with usage of the plugin, please open an issue on GitHub.Provide as many valid information as possible, as this will help us to resolve Issues faster.We would also like to hear your suggestions about new features which would help your user experience.Installationpipinstallmlx90632-driverhttps://pypi.org/project/mlx90632-driver/https://pypistats.org/packages/mlx90632-driverWindows + FTDI I2C interfaceIn order to use the FTDI chip, FT2232H or FT232H, an alternative driver needs to be installed.Procedure:Plug your FT232H or FT2232H into the usb port of your PC, and let windows install the default drivers.download the zadig toolhttps://zadig.akeo.ie/.download the libusbhttps://libusb.info/=> Downloads menu => Latest Windows Binaries.run zadig tool as admin.menu => options => list all devices.Select Dual RS232.Select with the up-down arrowslibusb0 (v1.2.6.0).Click re-install driver button.Linux + EVB90632 interfaceInstall libhid library.sudoaptupdate
sudoaptinstalllibhidapi-libusb0Add these udev-rules to thefile:/etc/udev/rules.d/20-melexis-evb.rules# EVB90632
SUBSYSTEM=="usb", ATTR{manufacturer}=="Melexis", ATTR{product}=="EVB90632", GROUP="plugdev", MODE="0666"Now reboot to make the new udev rules active.Linux + FTDI I2C interfaceAdd these udev-rules to thefile:/etc/udev/rules.d/21-ftdi.rules# FTDI rules
ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="666", GROUP="dialout"
ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", MODE="666", GROUP="dialout"Now reboot to make the new udev rules active.Linux + Raspberry Pi & Nvidia Jetson Nano + 40 pin HW I2C busEnable the I2C interfacesudo raspi-config'enable i2c' in interface; in case you want to connect MLX9064x on the I2C bus of RPi.optional: 'enable ssh' in interface; now you can login remotely over the network.