Friday, February 11, 2011

Arduino automatic pan/tilt Thermal scanner

I've always been interested in FLIR technology and how to apply it. While I've never owned or used a FLIR directly I know the basic principles.

Basically, I'm sort of making a first generation version that uses a single point scanner (IR temperature) and panning across in a gridded fashion. While this is crude and only suited for slow changes in temperature over an area it works for what I have in mind - scanning a wall in cold weather. 

This is how I'm planning on how to do things:

Arduino - The interface between the hardware and software. It will read from the serial command to either pan, tilt or read from the temperature sensor. The temperature sensor has a serial port built into it so I don't need to worry about that. 
Processing (on the computer - actual program called "Processing") - I already have the grid plotted and functioning as well as the program controlling the pan and tilt function properly. The next thing is to get the code to read the temperature an apply to the grid. The grid is a color-coded grid, where blue is cold and red is hot (relative)

After spending a bit on the code and the hardware with my new soldering iron it works quite well!

The first image shows a crude setup of the sensor on a pan/tilt mount. I used an old DSL filter for the RJ45 connector to the sensor which makes quick disconnects easy. An old IDE connector on a pcb board for quick plugin to the arduino.
The next image shows what the sensor was pointing at. My cat like the laser dot as well where the sensor is point near :) For proof that it detect heat sources the supply is for my laptop and runs hot - about 95F. The picture is just about the area being scanned. Unfortunately the thermal sensor is very slow so the framerate in processing is 0.8 frames/second... YIKES!

This last picture is the dynamic map of the readings. You can clearly see the power brick light up in comparison to the surrounding area which is 70ish or less. I need to make a PDF export of the image when it reaches the corners!

Next is to make this a bit more... portable. I need to get the pan/tilt mount to be better built and have some type of system to manage the cables into a unit that requires a usb cable.

Updates:
   I used a busted HDD case with spindle still on it as my turntable. With a few modifications with a drill-press it suits my needs. I also attached my tripod to the casing so that it can measure in an elevated position.

Here are some more close up shots of the micro processor with connections.



And a larger scan of a "real" surface (chimney and wall)


Update: Made instructable: http://www.instructables.com/id/Build-an-Arduino-based-thermal-scanner/