Public Lab | Research note


  • Follow
  • Like (0)

Thermal Torch Code

»
by dr_dbw | March 27, 2012 22:24 | 1,840 views | 3 comments 27 Mar 22:24

This is the coding I have written for the thermal torch / thermal photography project - http://publiclaboratory.org/tool/thermal-photography

The circuit is simply the one shown at - http://publiclaboratory.org/notes/warren/12-12-2011/circuit-diagram-simple-thermal-flashlight - all I have done is change the program uploaded to the Arduino Uno board. Also note that I have the LED on pins 9, 10 and 11 (which is different from the previous link) and all temperatures are in degrees Celsius.

This colour scale for the temperatures is based on the sinebow colour wheel, which is discussed here http://basecase.org/env/on-rainbows

The code currently requires you to specify the lower and upper temperatures (20 and 30oC in this example) before you upload it, which is then mapped onto the colour wheel from 300o to -30o (purple to pink). Which essentials means that the same colour scale is used and mapped onto the temperature range that you specify in the code.

Code:



Tags: thermal-photography
{"cc_re__cc_re__cc_by_sa_3_0": ["        <h4>Links</h4>\n        <ul>\n          <li><a href=\"/about\">About</a></li>\n          <li><a href=\"/wiki/getting-started\">Getting Started</a></li>\n          <li><a href=\"/wiki/licenses\">Licenses</a></li>\n          <li><a href=\"/lists\">Discussion lists</a></li>\n          <li><a href=\"/stats\">Site statistics</a></li>\n          <li><a href=\"/wiki/working-groups\">Working groups</a></li>\n          <li><a href=\"/feed.rss\">RSS</a></li>\n        </ul>\n      </div>\n      <div class=\"span3\">\n        <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0;float:left;margin-right:10px;\" src=\"/images/cc-by-sa-88x31.png\" /></a>\n        <p>This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. Hardware designs on this site are released under the <a href=\"http://www.ohwr.org/cernohl\">CERN Open Hardware License 1.1</a>. Read more about Public Laboratory's <a href=\"/licenses\">open sourc", "Discussion lists</a></li>\n          <li><a href=\"/stats\">Site statistics</a></li>\n          <li><a href=\"/wiki/working-groups\">Working groups</a></li>\n          <li><a href=\"/feed.rss\">RSS</a></li>\n        </ul>\n      </div>\n      <div class=\"span3\">\n        <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0;float:left;margin-right:10px;\" src=\"/images/cc-by-sa-88x31.png\" /></a>\n        <p>This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. Hardware designs on this site are released under the <a href=\"http://www.ohwr.org/cernohl\">CERN Open Hardware License 1.1</a>. Read more about Public Laboratory's <a href=\"/licenses\">open source licensing here</a>.</p>\n      </div>\n      <div class=\"span3 hidden-print\">\n        <p>Specific works on this site may be released or dedicated under different licenses, but only if such alternatives are clearly indicated by their authors."]}