PGD Home

Project 136: Thermal Imager Project Update 9: FLIR Lepton + Arduino Due: Success!

by on Sep.26, 2015, under Inventions, Tutorials

I have succeeded in interfacing with the Flir Lepton using the Arduino Due! I can now capture images from it.

I actually had implemented code that was almost working (that I obtained from the Flir Dev Kit’s Google Group). But I could not understand it’s output values, so I decided to write a test program from scratch, which did not succeed in getting usable data from the lepton.

Thanks to the support of the Google group, I learned that the Lepton sends blank values when it is “busy” that have to be discarded, this was the reason why I was getting so many zeros from the Lepton.

In addition to this, the Lepton does not output temperature values in the operating range of the device, which is what I thought. It outputs raw numerical data, which needs to be sampled and converted into values between 0 and 255, and finally these values can then be rendered.

I have still got a lot of work to do on this project, such as bug fixes, video support, and the permanent mounting of the hardware.

The next thing to do is to create the “heat map” by converting the heat information from the Lepton into an RGB colour value. This should  increase the quality of the image. I have found some source code to do this. I will also implement some interpolation to increase the resolution of the image.

At the moment I am writing the data out to a file on my PC using the serial port, and then opening that file with Processing and rendering the image. The finished project will feature the TFT screen to render the image, and an onboard SD card  to store it for later additional processing or viewing on a computer.

The data is stored in raw format at the moment (just a list of temperature values) but in future I could add the ability to convert that raw data to .JPG’s or .BMP’s.

This is a picture of me. You might have to use your imagination a bit on it, due to the low resolution of the image!

PhoenixGameDevelopment09 Sep. 26 04.41

Another picture of me.

PhoenixGameDevelopment12 Sep. 26 04.52

Me again, using just the Red Colour Channel.

PhoenixGameDevelopment11 Sep. 26 04.46

This is me holding a candle. The FLIR Lepton autoscales it’s temperature values according to the hottest temperature values that are visible, this is likely the reason why the colour seems “washed out”.

PhoenixGameDevelopment15 Sep. 26 04.58

This is a relatively good image of my hand.

PhoenixGameDevelopment08 Sep. 26 04.38

Another picture of my hand.

PhoenixGameDevelopment04 Sep. 26 03.38

 

Facebooktwitterredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!