{"id":1481,"date":"2015-08-29T02:11:45","date_gmt":"2015-08-29T01:11:45","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=1481"},"modified":"2015-08-30T06:06:55","modified_gmt":"2015-08-30T05:06:55","slug":"project-136-thermal-imager-update","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/project-136-thermal-imager-update\/","title":{"rendered":"Project 136: Thermal Imager Project Update"},"content":{"rendered":"<p>I have been researching Thermal Imaging Technology recently, and I have decided to resurrect this project.<\/p>\n<p>The previous project was postponed due to the difficulty in using the 16*4 thermopile array to produce a thermal image. I was using pan\/tilt servo motors to move the thermopile in steps, and then I was attempting to stitch the images together into one.<\/p>\n<p>The issues I was having were due to, mainly, having no lens on the thermopile to focus it. This meant that the edges of the image didn&#8217;t line up properly. Lenses that are usable with thermal imaging equipment (far infrared) are expensive, and using them in this project would have been complex. The lenses I was going  use for this purpose were made from Zinc Selenide, or ZnSe.<\/p>\n<p>However, I have recently learned of <a href=\"https:\/\/www.sparkfun.com\/products\/13233\">THIS<\/a> product, the Sparkfun FLIR Development Kit.. It uses an official FLIR Lepton thermal imaging core to produce an 80&#215;60 image. I intend to use one of these with an arduino to finally produce an affordable thermal imager. The resolution (80&#215;60) will not be very high, but it will be far cheaper than any of the commercial models out there. The <a href=\"http:\/\/www.flir.com\/cores\/content\/?id=66257\">FLIR lepton<\/a> is a good thermal imaging core, and is used in a lot of products, such as the <a href=\"http:\/\/www.flir.eu\/instruments\/content\/?id=64755\">TG165 handheld thermal scanner<\/a>. It should provide good quality images, if a little low resolution, even in outdoor environments. <\/p>\n<p>In addition, I can use interpolation to increase the resolution without too much degradation in image quality.<\/p>\n<p>The only problem I can see is the RAM requirements. I intend to use an Arduino Nano to prototype this project, eventually moving it to a standalone Atmel Atmega 328 chip. These chips have only 2 KB&#8217;s of SDRAM.<\/p>\n<p>The thermal imaging core has a resolution of 80*60, which is 4,800 data points. These are temperature values, ranging from -40 celsius to 65 celsius, which means I can use a byte datatype to store them. Bytes store integer values from 0-255 using just one byte of memory. By adding 40 to the data points coming from the thermal imager and subtracting it during saving and rendering, I can make sure the range is between 0 and 255. That means I can store each frame of data using just 4.8 KB&#8217;s, assuming no interpolation. However, I only have 2 KB, so I will need to use an add-on RAM chip, such as the <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/22100F.pdf\">Microchip 2k256<\/a>, which provides 256 KB&#8217;s of additional memory. This should be plenty for my needs. This chip is accessed using an SPI interface.<\/p>\n<p>I intend to use an arduino compatible screen to view the image in real time, and an SD Card module to save images and video in RAW format. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been researching Thermal Imaging Technology recently, and I have decided to resurrect this project. The previous project was postponed due to the difficulty in using the 16*4 thermopile array to produce a thermal image. I was using pan\/tilt servo motors to move the thermopile in steps, and then I was attempting to stitch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1481","post","type-post","status-publish","format-standard","hentry","category-inventions","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1481"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=1481"}],"version-history":[{"count":4,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1481\/revisions"}],"predecessor-version":[{"id":1490,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1481\/revisions\/1490"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}