Assemble the Thermal Flashlight
Assembly is a bit easier in this new version (April 2019); below is the diagram both on and off of a mini breadboard; we've eliminated some unnecessary parts.
- 1 Melexis MLX90614 non-contact IR thermometer (3v)
- 1 RGB common-cathode LED
- 2 4.7k Ohm resistors (or close to that)
- a short wire (to extend one leg of the thermometer)
- a mini breadboard
- an Arduino Nano
- a mini USB cable to power it (and a USB battery)
(step-by-step coming soon!)
Program the Arduino
If it's not already programmed, you'll need to upload a program to your Arduino in the Arduino IDE (https://arduino.cc or the online editor at https://create.arduino.cc) using the following code:
You'll need to install the Adafruit Melexis library here:
Using the Thermal Flashlight
You can use this program to "paint" colored light with your Thermal Flashlight:
See examples of use below!
All code and Fritzing files available here: https://github.com/publiclab/thermal-flashlight/
Based on a redrawn diagram of the thermal flashlight posted by @ad: http://publiclaboratory.org/notes/ad/11-28-2011/thermal-camera-arduino-uno-mlx90614-ir-thermometer
I have just built a test unit of this, seems to be working well.
For the moment I have the colouring scaled from pink, through blue, cyan, green, yellow, orange, red and finally purple. Currently have all of that set using intervals of the temperature (10-30oC), but might see if I can get that into an equation format (may be a sinusoidal one?) to make it a bit more flexible and configurable. Saw something that someone has already written somewhere to do this, so going to check that out.
I plan to add two switches on it, one that will change the lowest temperature and a second that changes the total temperature range. That should make it a bit more flexible for use.
Got rid of all that silly oF from the program too ;-), now just in oC, makes much more sense :-)
Is this a question? Click here to post it to the Questions page.