Shop OBEX P1 Docs P2 Docs Learn Events
FLIR thermal camera with Propeller? It works! — Parallax Forums

FLIR thermal camera with Propeller? It works!

RaymanRayman Posts: 14,651
edited 2015-10-23 19:57 in Propeller 1
Update: Got it working :) (See my posts below)

Anybody already do this? I did a search, but couldn't find anything.

Finally had a good excuse to buy a couple of these FLIR thermal camera modules.
There appears to be plenty of documentation on how to use these.
Looks pretty straightforward with just one way SPI and optional I2C for changing settings.

Think I'll start with just using the Prop to send the data to PC over USB to display and record.
Then, might try displaying on LCD display and saving to uSD, so can be independent system.

The NTSC output of Prop might be interesting for this. I think the Prop has enough memory to buffer the image.
The color palette might be enough to do a decent job.

They are also at Digikey now, but I also got one from Sparkfun since they provide a lot of documentation.
«1

Comments

  • Looks cool. Links?
  • RaymanRayman Posts: 14,651
    Here it is: https://www.sparkfun.com/products/13233

    It's very expensive, or I would have gotten one when they first came out...
  • I'm interested in what you come up with.

    The price of the Flir One add-on for the iphone 5 is down to less than $150 on Amazon now. I wonder if it could be hacked in order to avoid the $250 price of the sensor breakout alone? No documentation to be sure. The downward price trend may continue, a consequence of tying a product so tightly to an iphone that is sure to mutate in the blink of an eye.
  • I bought this last week: http://www.flir.com/Instruments/display/?id=66797

    Admittedly it is entry level, but one thought I have on the subject is that this camera blends a visible image with the infrared image so you can tell what you are looking at. It also ranges the temperature, setting the low and the high based upon what it is seeing at the moment. It will report the temperature in the crosshairs also.

    It is a nice little piece of test equipment that I find new uses for every single day, but I am wondering how hard it will be to program any useful features, and how processor-intensive it will be to run it.
  • RaymanRayman Posts: 14,651
    That one looks nice, but what the complete systems seem to lack (for me) is video recording and also non-auto-gain adjusted recording... We're trying to look at the cooling of something that was heated really fast to figure out what the initial temperature was...
  • It's not the best camera, but it is the most pocketable. As they say, a 22 in the hand is better than a 44 in the safe. I don't think I even WANT a high-buck one because I would never have it on-hand anyway.
  • RaymanRayman Posts: 14,651
    I think our plan is to try out this (relatively) cheap one and see if it will do what we need. If it does, maybe we'll shell out for the QVGA version...
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2015-10-09 18:22
    Checking http://flir.com/flirone/content/?id=62910. Their newest sensor array doubles the resolution from 80x60 up to 160x120 pixels. As Flir One will come for iPhones 5,5s 6 and iPads, and for Android.

    From the developer apps page, a seasonal must have!? "Zombie Vision turns your FlIR ONE Thermal Camera accessory into a realtime zombify viewer. Everyone you see through the camera will look like zombies."
  • I do consulting/troubleshooting/outside repair services for a big metro city's public works department and get all sorts of oddball things thrown at me. Today there was a Ford Taurus that was draining the battery while parked. I looked at the engine with the camera and without laying a hand (or a probe) on the car I was able to say with certainty that the alternator had a shorted diode in about literally 15 seconds. Yesterday there was a complaint that the headlights would quit working after 15 minutes and it has been dogging them for awhile. Whipped out the camera and found heat damage on the recessed clips in the fuse block, again in about 15 seconds. There was a Chevy truck with a miss in the engine. The camera made it easy to see which cylinder was running cooler than the others. In about 15 seconds. Last weekend I was able to simply look at some propane tanks to see which ones still had propane in them.

    I've only had it since last Thursday.
  • I haven't yet had an opportunity to see if I can determine where a shorted circuit board is shorted. I have looked at boards though and it looks promising anyway.
  • Yes, I'd like to know how well it can work to find hot spots on zombie circuit boards. Some people say that it doesn't work well enough at close range due to parallax (the phenomenon, not the company!), but on the other hand there are youtube videos showing it doing a decent job using their "closeup" software app.
  • RaymanRayman Posts: 14,651
    New Flir One does advertise 160x120 but also says "Lepton", which I'm pretty sure means 80x60... Not sure how that jives...
    Looks like it can take video when used with iPhone.

    Still, we need control and raw data and I don't think iPhone version will give us that...
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2015-10-09 00:11
    Tracy,

    Your link has an trailing > in it. Here's the correct link:

    http://flir.com/flirone/content/?id=62910

    -Phil
  • T ChapT Chap Posts: 4,223
    edited 2015-10-09 12:30
    Can you read temp for each pixel individually via I2C? That is a lot of data to move in real time.

    Fast time to image (< 0.5 sec)

    Looks like it can output all pixel data twice a second.
  • RaymanRayman Posts: 14,651
    I think the I2C is just for reading/changing settings. A lot of camera modules are like that...

    This one has an SPI interface for the pixel data. That's fine since resolution is so low and update rate is only 9 Hz.
  • max72max72 Posts: 1,155
    That would be a great project. video out and save to SD... that would be very cool.

    Massimo
  • I'm following up on the resolution issue, where they are claiming 120x160=19200 IR pixels in the new one vs 60x80=4800 pixels in the Lepton and the original Flir One. Real or smoke and mirrors? I talked to someone at their support phone number who supposed there is a new improved sensor, but they are checking and promised to email me back.

    I found the Flir One Launch FAQ which has this to say about the original version for the iPhone5,

    flirOne_resolution.png
    567 x 104 - 28K
  • RaymanRayman Posts: 14,651
    I seriously doubt 160x120 is physical. If it were people would be taking it apart to get the module out...
  • I honestly don't think higher resolution is *absolutely* necessary. Sure it is nice for some specific uses, but for general-purpose use, the little cam I have sure paints a pretty picture. They do a decent job of interpolating the visual data with the thermal data.

    Those cameras get very very expensive very very quickly. When you are talking about higher thermal resolution, you are really talking about making every facet of your project more complicated and more expensive, for what I personally see is too much data to work with.

    Just my opinion.
  • RaymanRayman Posts: 14,651
    At work (not me personally) we'd shell out the $6,000 for the high resolution camera if we knew it would work for our application. What's great about Lepton is that we can test it out for a relatively low cost before going all in...
  • Rayman wrote: »
    At work (not me personally) we'd shell out the $6,000 for the high resolution camera if we knew it would work for our application. What's great about Lepton is that we can test it out for a relatively low cost before going all in...

    That is EXACTLY the same thought process that led to me purchasing the one I did, except now I don't much see the need for the more expensive camera (apart from applications where the extra resolution is absolutely necessary). The good cameras at FLIR (and Fluke et al) are over thirty grand.

    There has to be a market for it, but the cheapo is more than adequate for probably 80% of what most people really need.

    I paid $555.00 for mine on eBay, and if it gets lost or broken I will replace it. EXTRAORDINARILY useful.

    The one thing I haven't yet been able to figure out is how the infrared lenses work. A finite resolution, but can you change the lenses for greater field of view? I've been too busy to research the lenses.

  • Yes, I'd like to know how well it can work to find hot spots on zombie circuit boards. Some people say that it doesn't work well enough at close range due to parallax (the phenomenon, not the company!), but on the other hand there are youtube videos showing it doing a decent job using their "closeup" software app.

    Tracy back a few months ago when I was working on my 9v down to 3.3v power circuit I used my iPhone based FLIR to measure the temp of the regulator. It works like a champ.

    The other day I had a solder bridge under one of my SMT caps and for the life of me I couldn't find it. Got out the FLIR put it on my iPhone and found the solder bridge.

    I love this thing!!

  • Tracy AllenTracy Allen Posts: 6,664
    edited 2015-10-13 17:51
    Thanks for that positive confirmation John.

    I don't need to connect this to the Propeller for an OEM project or product. Like you and bte2, I just want to look at the heat distribution in Prop (and other) circuits and for other uses around the shop and home. I have access for free to an old iPhone 5 that could use the original Flir One at $150, and I have a recent '6 that is my main phone, that I could use with the new Flir One at $250. I'm fine to use either one of those for the camera screen and software, rather than paying ~$600 for the Flir that includes its own screen. So should it be the $150/iPhone5, or $250/iPhone6? Thus my question to Flir about the claim on their models comparison page that headlines the improvement(?) in resolution. I haven't yet heard back from Flir tech support with a direct answer to my question.
  • The response from Flir came through quickly today. Yes, it is new, the Lepton 3. They sent a data sheet, attached. 12µm pixels, 120x160 array, vs 17µm pixels, 60x80 array in the Lepton 1.
  • RaymanRayman Posts: 14,651
    Thanks for looking into that! Maybe I will have to crack one open...
  • RaymanRayman Posts: 14,651
    edited 2015-10-15 12:21
    I'm writing a driver now... Propeller is just fast enough, I think to do this the easy way (bit banging). Need to read data in at least 2 MHz or will lose sync.

    It's kinda annoying that we have to read in frames at 27 frames per second when they only really give 9 frames per second... You have to read in 2 extra copies of each new frame. They say it's for export control.

    I saw some Arduino code for Lepton posted, but it's a joke. It only reads and writes to i2c interface, they say Arduino isn't fast enough to handle the video...
  • RaymanRayman Posts: 14,651
    edited 2015-10-15 18:44
    Gave me some trouble at first (strange data stream format), but I got it working :)
    This code shows a very basic image (using characters) in Parallax Serial Terminal.
    Doesn't do settings over I2C yet, but I'm not even sure I need that yet...

  • JohnR2010JohnR2010 Posts: 431
    edited 2015-10-17 12:52
    Thanks for that positive confirmation John.

    I don't need to connect this to the Propeller for an OEM project or product. Like you and bte2, I just want to look at the heat distribution in Prop (and other) circuits and for other uses around the shop and home. I have access for free to an old iPhone 5 that could use the original Flir One at $150, and I have a recent '6 that is my main phone, that I could use with the new Flir One at $250. I'm fine to use either one of those for the camera screen and software, rather than paying ~$600 for the Flir that includes its own screen. So should it be the $150/iPhone5, or $250/iPhone6? Thus my question to Flir about the claim on their models comparison page that headlines the improvement(?) in resolution. I haven't yet heard back from Flir tech support with a direct answer to my question.

    Tracy, yesterday I had another case where I had to find a faulty 0603 cap with my camera. I had several 0603 SMT caps together and the FLIR's resolution was too low to determine exactly which cap was bad. The heat pattern bleeds over on top the other caps, it narrowed it down to 3 or 4 caps but that was it. I then took a small flat blade screwdriver and held it over each cap as I looked at them with the camera. When the blade of the screwdriver was over the hot cap it was obvious on the screen. This is one way to get around the low resolution the camera has. I have only found the resolution to be a problem for very small objects close up.

    Another thing that seems to happen often is the visible light image that is overlaid on top of the infrared image get out of sync close up. You'r supposed to be able to drag your finger across the iPhone's screen to align them but it doesn't seem to work well close up. I usually just ignore the overlaid visible light image. It is extreamly useful and for looking at objects 6 or 7 feet away like looking at your homes circuit breaker box. If you get one I just wanted you to know. I would buy another one. It is my go to tool if I'm stuck and can't find the problem with my volt meter.


  • Tracy AllenTracy Allen Posts: 6,664
    edited 2015-10-16 17:54
    John, That's interesting, great tips. I definitely want one.

    I found a nice FAQ that compares the new and old FLIR One..
    www.flir.com/flirone/.../FLIR-ONE-Android-iOS-FAQ.pdf

    Ray, I haven't perused the data sheet at all, but I'm curious if the pixels come out equalized and calibrated in temperature units, or if there are auxiliary calibration arrays? I recall from Phil's thread on the MLX90620 16x4 array that there were several levels of computation necessary to arrive at pixel temperatures.

  • RaymanRayman Posts: 14,651
    I think I misspoke earlier when I said we want to use this to get temperature...
    We already have thermocouple probes for that...

    What we want the camera for is to look for uniformity over the area we are heating.
    So, absolute temperature is not required, just a sense of relative variations.

    There is a "radiometry enabled" mode that I have to figure out though...
    Also, I need to turn off frame averaging...

    Also, I think the higher resolution lepton might be harder to use with P1...
    My code's inner loop runs at 5 MHz and >2 MHz is required.
    I'd have to research if there's a way to read SPI data faster than 5 MHz with P1...
Sign In or Register to comment.