Hello,
I have purchased the Sparkfun Flir Dev kit, which used the Flir lepton thermal camera. My intention is to build a handheld thermal camera using an Arduino Nano, connected to a TFT screen.
I am aware that the Nano doesn't have enough RAM to store the frame from the lepton, so I have added a 23KB ram module using an SPI interface. I have tested this, and it works.
I am, however, having issues reading the data from the lepton itself. I can run the example sketch and I can access the camera setup information, serial number, etc. This information is here:
However, when I try to read actual data from the Lepton, I get garbage. Usually 0's and random numbers, or some other nonsense output. I believe this is due to the speed of SPI bus not being fast enough? Currently, I am using the serial port to print out the values, but this could be slowing things down. However, I am not sure if I am understanding the code well enough to modify it to use with my SPI RAM, or even if a Nano can be used with the lepton.
To clarify, what I want is to:
Grab a frame from the lepton, store it in SPI ram. Then, send the entire image data to file. Right now, the "file" is the serial port, eventually it will be the TFT screen and an SD card. I am not hugely interested in video output, just still images, so it should be possible to do this even with the nano's 16mhz processor, is this correct?
My code is here: It is a slightly modified version of some code that I found here.
I have also tried wiring the Lepton to the Arduino Due, but I still can't get a usable image out of it, I get garbled data. The code I am using for the Due is:
Thanks for any advice!