Integrating I2C thermal camera module MLX90640 using MATLAB function toolbox and Raspberry Pi

I want to process the thermal image data from MLX90640 camera module, connected with Raspberry Pi through I2C.
It is difficult to use directly the I2C master read and I2C master write in Simulink support package for Raspberry Pi because of the specific handshaking procedure with the camera module.
Then I use the MATLAB function toolbox to integrate the MLX90640 using the MLX90640 API which is available at https://github.com/melexis/mlx90640-library., but it is failed due to the data type difference.
Any suggestions on how I can import the thermal camera image directly to Simulnk?
Thank you very much for your help.
Kind Regards,
Karyono

6 件のコメント

Hey,
i will be very grateful if you can share the methode you use for solving this issue.
I'm working with the same sensor and Arduino but having this problem.
If you would like to, you can contact me on ibrahim-alami97@hotmail.com
thanks in advance
Hi, I am end up with using arduino also. I send the data in serial using arduino and than process the result. I also tried to connect wirelessly. I find it useful to send in bulk, but you have to expand the size of the block in the library in order to send the whole data frame in one go. The default value in the library will not be sufficient. I will send this also to your email. Good luck with your project.
hey,
thank you for your answer. The problem i have for the moment is that i can't get any data from the MLX90640 using Arduino. When i scan in Matlab for I2C devices using Arduino Explorer App , it doesn't work and the sensor will be not reconized.
I will be waiting of your Email and thanks again.
For my case, I use the Arduino studio to deploy the code directly and check the output. But I think that using Arduino Explorer App will be the same.
I used Arduino studio too. I think i'm missing something. The sensor doesn't work with I2C, the Leds stay off the whole time. I connected Arduino with Matlab and i tried to run some basic codes, every think work fine. But the sensor MLX90640 is being only with USB reconized, otherways not :(
I have connected it again, it seems that Matlab has reconized the sensor adress by 0x33, but all the values the sensor reads are 0.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeArduino Hardware についてさらに検索

製品

リリース

R2019b

質問済み:

2020 年 5 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by