The IRTemp module lets you add infrared remote temperature sensing to your Arduino projects, measuring temperatures in the range -33ºC to 220ºC. We’ve even provided a handy Arduino driver library to make it really easy to integrate into your projects.
The module requires five connections to be soldered to the IRtemp which connect to your Arduino: two for power, three for data.
The example code assumes the following connections:
V (VCC) connected to Arduino 5V on a 5V microcontroller such as Freetronics Eleven, Arduino Uno, EtherTen, EtherMega, etc. To 3.3V on a 3.3V microcontroller such as Freetronics EtherDue, Arduino Due, etc.
G (GND) connected to Arduino GND.
D (Data) connected to Arduino digital pin D2.
C (Clock) connected to Arduino digital pin D3.
A (Acquire) connected to Arduino digital pin D4.
Driver Library Installation
The driver library needs to be installed to allow your Arduino to communicate with the IRTemp module.
1. Create a directory called "libraries" inside your Arduino sketchbook directory if it doesn't already exist.
2. Download the latest version of the library: IRTemp.zip
3. Unzip the library and rename the directory containing the files from "IRTemp-Master" to "IRTemp". Put that directory inside your "libraries" directory.
4. Restart the Arduino IDE so it will recognise the new library.
The library comes with an example sketch included to get you started quickly. After you have installed the library as described above, launch the Arduino IDE and open in the menu File -> Examples -> IRTemp -> readTemperature.
Connect your Arduino using a USB cable as usual, make sure you have the correct board type and serial port selected, and click the "Upload" button in the IDE.
Once the sketch has been uploaded, click the "Serial Monitor" button in the IDE. Check that the baud rate is set to 9600bps to match the setting in the sketch.
The current temperature reading will then be reported once per second in the serial monitor.