MLX90614 PWM in Arduino Uno

https://learn.sparkfun.com/tutorials/ml … -guide/all

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, and thanks for posting your question on the new forums!

Unfortunately we don’t have any code for using this part in PWM mode, but you do need to configure the device in SMBus/I2C in order to enable PWM. It might be easier to not use PWM at all.

Thanks for replynig,

I understand the PWM is hard, but it is needed for my university project. Can you atleast teach me how to configure the device?

Unfortunately I don’t have a tutorial for that, but the [datasheet has the information needed to configure and enable PWM mode on these.](http://www.sparkfun.com/datasheets/Sensors/Temperature/SEN-09570-datasheet-3901090614M005.pdf)

Thanks for the help, I managed to enable the PWM in the EEPROM. But there is a problem. I made code using the pulseIn function to measure the timing when its high, but it gives me zeros and sometimes gives me random numbers. I tried to configure again and read the EEPROM again and again, but the problem stays. What do you think is the problem?

Sorry for the late reply.

Unfortunately I don’t have an answer for you on this. Could be a code issue or the way you’ve configured PWM mode in the MLX90614. We’ve never tried PWM mode on these so I don’t really know where to point you.

i am workin on a project and try same sensor MLX90614 with arduino but first task is simulation . MLX90614 library in proteus ? :smiley:

Not that I’m aware of. Sorry.