Raspberry Pi 5 and Adafruit MLX90640 infrared sensor using VS code

February 5, 2024, 19:35

meli088

Hello everyone, I am trying to work on a project where I have to get my Adafruit MLCX90640 IR sensor running on Raspberry Pi 5 and then later I have to calibrate it and get it running on LabVIEW software for GUI real time monitoring and saving for post analysis, I have two links to follow of people that did similar projects (excluding LabVIEW) and I am unable to get my code working. https://www.instructables.com/MLX90640-IR-Thermal-Camera-Working-With-Raspberry-/ https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera/python-circuitpython Trying to follow Adafruit link step by step... I am trying this on Windows and struggling with installing the two libraries: adafruit_mlx90640.mpy adafruit_bus_device and I get this error: Exception has occurred: NotImplementedError Adafruit-PlatformDetect version 3.60.0 was unable to identify the board and/or microcontroller running the Windows platform. Please be sure you have the latest packages by running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect' If you are running the latest package, your board may not yet be supported. Please open a New Issue on GitHub at https://github.com/adafruit/Adafruit_Blinka/issues and select New Board Request. File "C:\VS_code_Mecha\examples\CircuitPython 8.x\termal camera code.py", line 5, in <module> import board NotImplementedError: Adafruit-PlatformDetect version 3.60.0 was unable to identify the board and/or microcontroller running the Windows platform. Please be sure you have the latest packages by running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect' If you are running the latest package, your board may not yet be supported. Please open a New Issue on GitHub at https://github.com/adafruit/Adafruit_Blinka/issues and select New Board Request.

oops.se

Have you done as the error message instructs you to do?

meli088

I ran this on powershell pip3 install --upgrade adafruit-blinka adafruit-platformdetect

meli088

But nothing

meli088

I don't know if I've done right with getting the two libaries from the bundle adafruit_mlx90640.mpy adafruit_bus_device I tried to google online and read a few things how to get the libraries installed but struggling to know how to use powershell and get the right directory of the downloaded bundle

oops.se

On windows, you are aware that this is a Raspberry Pi Discord server?

meli088

Can I not run Pi on windows?

oops.se

No. Windows only support i386/amd64 architecture and a Raspberry Pi has a ARM achitecture

meli088

Oh no... I had two people tell me to order the Raspberry Pi as it will be easier and smoother to implement with my sensor and less problems...

meli088

I'll have to set this up on a windows computer I believe and trying to get it running on my windows laptop....

meli088

But I actually want to display my thermal image on LabVIEW software for GUI interface, is there any way I can get this done on Windows? Maybe I don't even need to run it on Python and somehow get it on LabVIEW straight away?

meli088

I was meant to use Arduino to work on it and was trying to develop LabVIEW ahead of time. Someone used Arduino to LabVIEW interface for analogue signal but I was trying to see if I can use visual instead. Now I changed to Pi and I can either communicate over I2C or have to find out other features There's many functions and capabilities on LabVIEW but I thought I should get it running on Python first


meli088

Can I use USB to type C to power up my Pi 5 for this project with my IR sensor or is it not enough and I should buy the power supply?