MLX90614 with stm32f103 in arduino IDE Problem

mr.rohit's picture

Offline

Joined: Sep 11, 2020

Replies: 3
MLX90614 with stm32f103 in arduino IDE Problem
September 11, 2020 - 11:55am

Hello all,





I am using MLX90614 IR temperature Sensor with stm32f103 controller.

for programming i am using arduino ide.

when i interfaced IR sensor with arduino boards using adafruit mlx90614 library that time sensor works fine.



but when i tried with stm32 controller with same library that time sensor gives some 1037.55 something readings. MLX90614 sensors not work properly with stm32f controller in arduino IDE in my case.



please suggest me any solution for my problem statement.



Thanks a bunch.

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 282
Hii
September 11, 2020 - 1:45pm

The sensor works with PWM and I2C mode. If you want to use it as I2C then use stm32 controller I2C library. I think the I2C is not configured properly.

mr.rohit's picture

Offline

Joined: Sep 11, 2020

Replies: 3
MLX90614 IR temperature Sensor With Stm32 in arduino IDE Problem
September 11, 2020 - 5:16pm

yes sourav i am trying with I2C in STM32f103 using softwire.h library.

i tried with ADXL345,BMP280, and sht31 i2c based sensor works fine on stm32f controller using arduino ide.

means i2c wire configured propperly

but mlx90614 is not working proper in my case

 

thanks and regards,

Rohit

mr.rohit's picture

Offline

Joined: Sep 11, 2020

Replies: 3
MLX90614 IR temperature Sensor With Stm32 in arduino IDE Problem
September 11, 2020 - 5:16pm

yes sourav i am trying with I2C in STM32f103 using softwire.h library.

i tried with ADXL345,BMP280, and sht31 i2c based sensor works fine on stm32f controller using arduino ide.

means i2c wire configured propperly

but mlx90614 is not working proper in my case

 

thanks and regards,

Rohit

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 282
Hiii
September 11, 2020 - 6:37pm

Well in such case, can you provide the code? So it is useful to debug it.

mr.rohit's picture

Offline

Joined: Sep 11, 2020

Replies: 3
MLX90614 IR temperature Sensor With Stm32 in arduino IDE Problem
September 12, 2020 - 12:30pm

i am using basic example of adafruit mlx90614 library.

https://github.com/adafruit/Adafruit-MLX90614-Library

in case of stm32 microcontroller

i am using softwire.h library with wire.h