Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlx90632 work with raspberry pi #54

Open
Mitchell1314 opened this issue Jan 2, 2025 · 3 comments
Open

mlx90632 work with raspberry pi #54

Mitchell1314 opened this issue Jan 2, 2025 · 3 comments

Comments

@Mitchell1314
Copy link

My team is trying to make mlx90632 to work with raspberry pi, shown as in the following pic. When we execute "sudo i2cdetect -y 1" we can not see anything. Did we miss any steps? like installing driver shown here? if so, could you provide detailed installation steps? note: We have tested our circuit board, and there are no issues.

image
Screenshot 2025-01-02 at 16 30 09

@Letme
Copy link
Member

Letme commented Jan 2, 2025

This is not a kernel driver, kernel driver is already included in kernel. I think it is enabled by default in rpi, but you will need to add the sensor to dts/dtb.

@Letme
Copy link
Member

Letme commented Jan 16, 2025

Is there still something that you need help with here?

You will need to configure RPI kernel to enable the driver through menuconfig (I saw it is not in its default defconfig): https://www.raspberrypi.com/documentation/computers/linux_kernel.html#menuconfig

DTS for RPI (depending on which i2c you have this connected should be something in line of):

&i2c1_pins {
	mlx90632: mlx90632@3a {
		compatible = "melexis,mlx90632";
		reg = <0x3a>;
	};
};

(assumed from): https://forums.raspberrypi.com/viewtopic.php?t=113425

@karelv
Copy link

karelv commented Jan 16, 2025

Another way of looking at it is to see if you can detect any other device, like an IO extender (ex. PCF8574).
It looks like you have pullup resistors for SDA & SCL on the sensor board, so that is good, but make sure they are connected SDA-pi to SDA-sensor (avoid swap).
On raspberry pi, you need to enable the I2C master function:
https://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/
Sorry if I repeat stuff you already know...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants