Temperature Shield Constructions and Testing

Created on: 30 October 2012

Temperature Shield – Pages

You will first need to build the Tiny Stripboard Shield for Arduino.

This video shows the construction of the temperature shield:

These photos show the finished shield in more detail:

Top view of the Arduino stripboard temperature shield
Top View of the Arduino Stripboard Temperature Shield
Bottom view of the Arduino stripboard temperature shield
Bottom View of the Arduino Stripboard Temperature Shield

Testing the Shield

After building the shield, load this test sketch to test the LEDs:

/*--------------------------------------------------------------
  Program:     temp_shield_LED_test

  Description:  Tests the 3 LEDs on the tiny stripboard
                temperature shield. Switches each LED on in
                turn.

  Date:         25 October 2012
 
  Author:       W.A. Smith, http://startingelectronics.org
--------------------------------------------------------------*/
void setup() {
    // set LED pins as outputs
    pinMode(2, OUTPUT);    // amber LED
    pinMode(4, OUTPUT);    // green LED
    pinMode(6, OUTPUT);    // red LED
}

void loop() {
    digitalWrite(2, HIGH);
    delay(1000);
    digitalWrite(2, LOW);
    digitalWrite(4, HIGH);
    delay(1000);
    digitalWrite(4, LOW);
    digitalWrite(6, HIGH);
    delay(1000);
    digitalWrite(6, LOW);
}

To test the MCP9700 temperature sensor, load the sketch from the Arduino serial thermometer tutorial.