Hello,
I tried hooking the MLX90614 to arduino in PWM, but I don’t know what’s the code for it. I know the SMBus is easier and provided in the link, but I wanna try to do it in PWM (for educational purposes).
And one last thing, how can I know the Period of the sensor’s PWM?
Hello kimminpuples.
Unfortunately we don’t have any code examples for using this in PWM mode. It looks like to use it in PWM you have to first configure it for PWM via SMBus/I2C. The data sheet should contain the information needed to configure the MLX90614 for PWM but it’s a bit complex if you’ve never set something up like this before.
The data sheet also lists the PWM period as 1.024ms.