# thermal-photography

##Applications## Thermal imaging can be used to document heat/AC leaks from insulation gaps on a building's facade, reveal warmer ground water inflows (either fresh or chemical-laden) or "thermal pollution" from industrial processes entering ocean-temperature waterbodies, as well as identify areas on the human body experiencing infection or stress (includes epidemiological applications). Community applications so far include both a "heat-busters" program in East Harlem and a "forensic" water quality monitoring program in the [Gowanus Canal](/place/new-york-city). ##Approaches## There are three prototypes in development: * A **Thermal Flashlight** (described on this page): a RGB LED flashlight with a non-contact infrared sensor that "paints" the temperature of the surface directly on the wall for capture with a second timelapse camera. * [Thermal Fishing](/wiki/thermal-fishing-bob): dragging a thermometer through the water, taking contact measurements mapped to a RGB light, also for capture with a second timelapse camera. * A [scanning thermal camera](/wiki/scanning-thermal-camera) on a lego turntable (software also in development) that sweeps back and forth across a scene, recording the temperature variation to build up an image. ##Problem## "FLIR" cameras can produce images such as the one below, and are typically used to identify heat leaks, but even low-resolution FLIR cameras can cost thousands of dollars. Our goal is to make this kind of investigation (and the potential savings) cheap, easy, fun, and informative for those of us without $10k in our pockets. <img class="floatright" src="http://farm6.static.flickr.com/5012/5413696892_1870bdcbf8.jpg" width="240" alt="FLIR house" /> ##Thermal Flashlight## The first approach results in a kind of "light painting" -- a color heatmap overlaid directly onto the scene. This is the simplest, cheapest, and to date, most effective way we have developed of measuring heat leaks or cool leaks indoors and outdoors. Simply put, the "flashlight" puts out red light if it's pointed at something hot (default 75 deg F or more) and blue light if it's pointed at something cold *(default 60 deg F or less): <img src="https://farm8.staticflickr.com/7166/6529655591_29b0a0fdde_o.gif" /> ###Using a Thermal Flashlight### To capture the light painting over time, we have been using timelapse photography or the prototype <a href="http://thermographer.publiclab.org:3000/">Public Lab Thermographer website</a> (or its inspiration, <a href="http://scripts.mit.edu/~eric_r/glowdoodle/">GlowDoodle</a>), as seen in the top image on this page. * Within view of the camera or laptop, sweep the flashlight beam over the scene at a distance of about 12 inches. * Try to stay out of the way of the beam, and don't point it directly at the camera or it will create a "starburst" and may mess up your image. * It's helpful to wear dark clothing so you don't show up in the image as you're moving around. <a href="https://www.flickr.com/photos/jeffreywarren/6795586488/" title="Thermal flashlight diagram by jeferonix, on Flickr"><img src="https://farm8.staticflickr.com/7209/6795586488_786a489c41.jpg" width="500" height="241" alt="Thermal flashlight diagram"></a> ###Building your own### **Parts list** For a Thermal Flashlight with 3.6 V Melexis Sensor and Common Anode LED. * 1 [Melexis MLX90614](http://www.futureelectronics.com/en/technologies/semiconductors/analog/sensors/temperature/Pages/6314181-MLX90614ESF-DAA.aspx) non-contact IR thermometer (3v). Data sheet: <a href="http://www1.futureelectronics.com/doc/MELEXIS/MLX90614ESF-DAA.pdf">http://www1.futureelectronics.com/doc/MELEXIS/MLX90614ESF-DAA.pdf</a> * 1 [common-anode RGB LED](http://www.sparkfun.com/products/10820) * 2 4.7k Ohm resistors * 2 100 Ohm resistors * 1 180 Ohm resistor * 1 0.1 μF capacitor * wire * [a breadboard](http://www.sparkfun.com/products/7916) or circuit board & soldering eqmt. * [Arduino](http://arduino.cc) * 9v battery and holder **Software** <a href="https://i.publiclab.org/system/images/photos/000/007/870/original/thermal-flashlight.zip"><i class="icon icon-file"></i> thermal-flashlight.zip</a> Gist: https://gist.github.com/sdosemagen/1739961/ _Note: The goal of this file is to be a place to download everything without pursuing other links. If there are changes or updates please feel free to add and re-upload. If the file is missing anything, please comment below. You might notice that this is for the 5v Melexis, but it will work for either without issues. Alternative variations of the Flashlight can be made with a 5.5V Melexis Sensor and Common Cathode LED. For the 5.5 V sensor follow this diagram: <a href="http://publiclaboratory.org/notes/sara/2-7-2012/circuit-diagram-5v-melexis-sensor">http://publiclaboratory.org/notes/sara/2-7-2012/circuit-diagram-5v-melexis-sensor</a> For the common cathode circuit board follow this diagram: <a href="http://publiclaboratory.org/notes/warren/2-11-2012/common-cathode-variant-thermal-flashlight-code">http://publiclaboratory.org/notes/warren/2-11-2012/common-cathode-variant-thermal-flashlight-code</a> <strong>Links to purchasing equipment:</strong> Consumable Parts: * LEDs (1 per flashlight, but they sell as a pack of 25): http://www.sparkfun.com/products/10818 * Arduino Uno (1 per flashlight): http://www.sparkfun.com/products/11021 * Capicator (1 per flashlight): http://www.sparkfun.com/products/8375 * Resistor pack (this pack has a 180 ohm resistor which we found other packs not to have): http://www.eio.com/p-19326-velleman-kres-e12-pack-of-610-e12-series-resistors.aspx * 3.6 V infra red thermometer (1 per flashlight): http://www.futureelectronics.com/en/technologies/semiconductors/analog/sensors/temperature/Pages/6314181-MLX90614ESF-DAA.aspx. Data sheet: <a href="http://www1.futureelectronics.com/doc/MELEXIS/MLX90614ESF-DAA.pdf">http://www1.futureelectronics.com/doc/MELEXIS/MLX90614ESF-DAA.pdf</a> If you are starting an electronics kit from scratch: * a 40Watt soldering Iron (if you want it to be permanent otherwise duct tape or Velcro works temporarily) * hookup wire (solid not stranded- 22 or 24 gauge, you can get this at Radio Shack) * pliers called "wire strippers" to get the plastic wrap off the hookup wire (can get at Radio Shack) * solder for 40Watt iron, lead-free. * a breadboard (1 per flashlight). If you aren't soldering: http://www.adafruit.com/products/64. If you are soldering: https://www.adafruit.com/products/571. * a USB cable to connect the arduino to the computer via USB for power 5Volts (can get at Radio Shack) * household sponge for cleaning solder off tip * 9 volt battery with connector wires (can get at Radio Shack- 1 per flashlight) ***Cost: ~$40-\$60*** These research notes will be integrated into this page to provide instructions on building and using your own thermal flashlight: * http://publiclaboratory.org/notes/warren/12-12-2011/circuit-diagram-simple-thermal-flashlight (includes source code) * http://publiclaboratory.org/notes/ad/11-28-2011/thermal-camera-arduino-uno-mlx90614-ir-thermometer (includes source code) Several meetups have been organized to build and test thermal flashlights, at RISD (Providence, RI) and in Brooklyn, NY. We are organizing one now in Somerville, MA: * [Thermal Flashlight workshop](/wiki/thermal-flashlight-workshop) * [May 26 AS220 workshop](http://publiclab.org/wiki/may-26th-as220-thermal-flashlight-workshop) * [Thermal Fishing Bob presentation from NE barnraising](http://publiclab.org/notes/Kaya9804/06-09-2014/thermal-fishing-bob-presentation-from-the-ne-barnraising) <img src="https://publiclab.org/sites/default/files/imagecache/default/Screen%20shot%202011-12-12%20at%2012.36.03%20AM.png" /> ##Thermal flashlight heatmaps## <object width="500" height="375"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fgroups%2Fthermal-flashlight%2Fpool%2Fshow%2F&page_show_back_url=%2Fgroups%2Fthermal-flashlight%2Fpool%2F&group_id=1802275@N25&jump_to=&start_index="></param> <param name="movie" value="https://www.flickr.com/apps/slideshow/show.swf?v=109615"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="https://www.flickr.com/apps/slideshow/show.swf?v=109615" allowFullScreen="true" flashvars="offsite=true&lang=en-us&page_show_url=%2Fgroups%2Fthermal-flashlight%2Fpool%2Fshow%2F&page_show_back_url=%2Fgroups%2Fthermal-flashlight%2Fpool%2F&group_id=1802275@N25&jump_to=&start_index=" width="500" height="375"></embed></object> ##Thermal Fishing Bob The thermal fishing bob project develops a DIY technology to visualize changes in water temperature, which can [indicate water pollution via industrial sources](http://www.publiclab.org/notes/Sara/06-13-2014/successful-thermal-fishing-bob-test-mapping-the-kendall-power-plant-thermal-plume) or [sewage](http://publiclab.org/notes/liz/1-15-2012/go-scum-update) The fishing bob is designed simply enough that anyone can build it and its components can be easily obtained from Home Depot and Radio Shack. ###Project Goals: To produce a cheaply made, easy to use piece of technology to track temperature changes in water. And to produce a product that can be easily altered to suit many innovative needs. ###Research URL’s: First iteration of the Thermal Fishing Bob developed in Sara Wylie’s class at RISD: http://publiclab.org/wiki/thermal-fishing-bob Second iteration of the Thermal Fishing Bob developed at 2014 Barnraising: http://www.publiclab.org/wiki/thermal-fishing-bob-barnraising http://www.publiclab.org/wiki/thermal-fishing-bob-plots-boston-toolshed-raising First long exposure pictures with the fishing bob: http://publiclab.org/wiki/thermal-fishing-bob-plots-boston-toolshed-raising http://publiclab.org/notes/Sara/04-23-2014/successful-thermal-fishing-bob-maps [First Field test of the Fishing Bob](http://www.publiclab.org/notes/Sara/06-13-2014/successful-thermal-fishing-bob-test-mapping-the-kendall-power-plant-thermal-plume) [Research Notes on development workshops MIT](http://www.publiclab.org/notes/kgrevera/05-05-2015/thermal-fishing-bob-development-workshop) [Barnraising](http://publiclab.org/notes/Kaya9804/06-09-2014/thermal-fishing-bob-presentation-from-the-ne-barnraising) [Northeastern University](http://publiclab.org/notes/Sara/05-23-2014/making-pedagogy-reflections-on-northeastern-university-thermal-fishing-bob-workshops) [Research notes on towing the tool](http://www.publiclab.org/notes/kgrevera/05-04-2015/first-prototype-of-kayak-towable-thermal-fishing-bob-rig) [Next steps on developing the tool](http://www.publiclab.org/notes/warren/06-07-2014/idea-for-5-analog-thermal-fishing-bob) ###Building Your Own: ####How To Guide <a href="https://i.publiclab.org/system/images/photos/000/009/868/original/ThermalBobHowTo.pdf"><i class="icon icon-file"></i> ThermalBobHowTo.pdf</a> The fishing bob’s tech is sealed within a waterproofed translucent container, a Koolaid mix container will do, with only the thermistor poking out the bottom (sealed around the edges with hot glue). The fishing bob is then wrapped in foam so that it floats, attached to a reel so it can be pulled, and dropped in the water. The thermistor reads changes in temperature and the LED within the fishing bob causes the fishing bob to change color in accordance with the temperature. The readings are recorded on the Arduino inside, which can then be read once it is plugged into a computer. While the fishing bob is being dragged across the water long exposure photos are being taken to create a “light painting” of the temperature gradient. One neat way to make these long exposure images is to use [glowdoodle](http://scripts.mit.edu/~eric_r/glowdoodle/index.php) from MIT. ###Materials: * translucent plastic containers that can be easily sealed for waterproofing such as a takeout soup container or Koolaid mix container * 9 wires * [thermistor](http://www.ebay.com/itm/NTC-10K-Ohm-1-3950-Thermistor-temperature-sensor-Waterproof-Probe-1m-Wire/261482445927?_trksid=p2141725.c100338.m3726&_trkparms=aid%3D222007%26algo%3DSIC.MBE%26ao%3D1%26asc%3D20141212152715%26meid%3Dd02e3321ac8a4f8d8d620c6fd1da0b8d%26pid%3D100338%26rk%3D6%26rkt%3D30%26sd%3D381128772508) * [breadboard](http://www.amazon.com/BB400-Solderless-Plug-BreadBoard-tie-points/dp/B0040Z1ERO) * [Arduino Uno](http://www.radioshack.com/arduino-uno-rev-3/2760128.html#.VVJ0uM6QbzI) * [3 Color LED](https://www.sparkfun.com/products/10820) * 9V batteries and holder * [2 100 Ohm resistors](http://www.radioshack.com/100-ohm-1-4w-5-carbon-film-resistor-pk-5/2711311.html#start=7) * [1 180 Ohm resistor](http://www.radioshack.com/nte-1w118---res-1w-180-ohm-2%25/55078227.html#start=60&q=180%2BOhm%2Bresistor&sz=12) * [1 10k resistor](http://www.radioshack.com/10k-ohm-1-4-watt-carbon-film-resistor-5-pack/2711335.html#q=10k%2BOhm%2Bresistor&start=1) * hot glue gun * packing tape * wire strippers * scissors * small flathead screwdriver * foam * fishing/kite reel * [Arduino to USB cord](http://www.monoprice.com/Product?p_id=5437&catargetid=320013720000066114&cadevice=c&kpid=105437&gclid=CjwKEAjwycaqBRCSorjE7ZewsmUSJABWzM54gRwfNJvfzTWdwXIImL5ZM5oj9_hCbUt6G_2YYRCpehoCzADw_wcB) * computer ###Thermal Fishing Bob Arduino Sketch Can Be Found Here: http://www.publiclab.org/wiki/thermal-fishing-bob-barnraising ###Next Steps: I am currently working with Sara Wylie on a project to make the thermal fishing bob towable behind a kayak. In previous testing the fishing bobs tended to submerge and become water damaged so we are working on a prototype that would be set into a floatation device. One concept is to wrap two fishing bobs in foam and set them into the legholes of a child’s floatie, duct taping them into place. The first test was successful, the fishing bobs stayed in place above the water and there was no noticeable water damage. A second idea is to attach three fishing bobs to a foam sled/boogie board with thermistors of differing lengths to take a 3D image of the thermal gradient. This idea has yet to be tested. A third idea is to utilize ideas from the coqui to transform the thermal fishing bob into a conductivity fishing bob. This idea is still in the brainstorming stage, but we will be building a prototype soon. ###Images: [![Untitled.png](https://i.publiclab.org/system/images/photos/000/009/869/medium/Untitled.png)](https://i.publiclab.org/system/images/photos/000/009/869/original/Untitled.png) Thermal plume along the Charles River [![Screen_Shot_2015-05-05_at_8.32.34_AM.png](https://i.publiclab.org/system/images/photos/000/009/871/medium/Screen_Shot_2015-05-05_at_8.32.34_AM.png)](https://i.publiclab.org/system/images/photos/000/009/871/original/Screen_Shot_2015-05-05_at_8.32.34_AM.png) Fishing bob made at MIT workshop from a soda cup [![Screen_Shot_2015-05-22_at_7.20.43_PM.png](https://i.publiclab.org/system/images/photos/000/009/982/medium/Screen_Shot_2015-05-22_at_7.20.43_PM.png)](https://i.publiclab.org/system/images/photos/000/009/982/original/Screen_Shot_2015-05-22_at_7.20.43_PM.png) Thermal fishing bob circuit [![Untitled3.png](https://i.publiclab.org/system/images/photos/000/009/873/medium/Untitled3.png)](https://i.publiclab.org/system/images/photos/000/009/873/original/Untitled3.png) Fishing bobs ready to go [![Screen_Shot_2015-05-12_at_5.59.31_PM.png](https://i.publiclab.org/system/images/photos/000/009/875/medium/Screen_Shot_2015-05-12_at_5.59.31_PM.png)](https://i.publiclab.org/system/images/photos/000/009/875/original/Screen_Shot_2015-05-12_at_5.59.31_PM.png) Fishing bob being lowered into the river [![Screen_Shot_2015-05-12_at_6.00.36_PM.png](https://i.publiclab.org/system/images/photos/000/009/876/medium/Screen_Shot_2015-05-12_at_6.00.36_PM.png)](https://i.publiclab.org/system/images/photos/000/009/876/original/Screen_Shot_2015-05-12_at_6.00.36_PM.png) [![Screen_Shot_2015-05-04_at_4.44.30_PM.png](https://i.publiclab.org/system/images/photos/000/009/877/medium/Screen_Shot_2015-05-04_at_4.44.30_PM.png)](https://i.publiclab.org/system/images/photos/000/009/877/original/Screen_Shot_2015-05-04_at_4.44.30_PM.png) First prototype of towable fishing bob