Close

mlx90640 sensor reads degrees on Arduino! uses 852 bytes ram.

A project log for mlx90640 sensor works w 800 bytes

Everywhere i read people are excited to get mlx90640 working. here are examples using arduino w 800bytes ram, and 1k with calibrated DEG C

jamesdanielvjamesdanielv 12/09/2018 at 17:570 Comments

https://github.com/jamesdanielv/thermal_cam_mlx90640/blob/master/MLX906040_1tempcell.zip

this is a test code setup that reads degrees c on arduino. sketch uses about 20k , and it uses 852 bytes of ram. code is not optimized or shrunk in size yet. it is just working. next i will get an array of sensor data to be output to a ram buffer so it will be compatible with my amg8833 code. the goal is to pretty much allow my drivers to replace the amg8833 code as a drop in replacement and build in features that allow more resolution detail. 

a few things. this code is only a test code and it only converts 1 cell to a degree in temp, but it can do it for any cell.

CalculateTo(12,10); for example stores temp data in float value To, you can change CalculateTo(x,y) to any pixel value from 0,0 to 32,24 the full resolution of sensor.

CalculateTo does not return value yet, it is stored in To

there may be a higher amount of noise from this method as it reads and stores

1 cell at a time. this can be corrected in 64 samples per second mode, by taking 3 samples and averaging them over a short time. 

don't worry i will reduce noise, and fix an errors eventually. this is just an update for those that want to try sensor on Arduino.

next code will have settings to change from 1cell to reading an array of cells for example code.

Discussions