Modern Device
  • Home
  • Blog
  • Forums
  • Wiki
  • Shipping
  • Contact Us

    • Featured Products
    •  
    • Arduino/Freeduino
    • JeeLabs
    • Sensors
    • Music/Sound/Noise
    • Light Emitting Diodes
    • Displays
    • Components
    • Power Supplies
    • Breadboards & Wires
    • Merchandise
    • Closeouts
    • Promotions
    •  

    Your Cart

    Review Cart or
    Checkout Now

    Popular Products

    Freeduino USB Host Board
    Starts at $79.00
    Bare Bones Board (BBB) Kit
    Starts at $4.50
    JeeNode v6 Kit
    Starts at $7.50
    RBBB Kit
    Starts at $13.00
    Wind Sensor
    Starts at $17.00
    3-Axis Accelerometer Module
    Starts at $10.95
    TMP421 Temp Sensor
    Starts at $7.63
    Fluxamasynth Shield
    Starts at $39.95
    AMBI Light Sensor
    Starts at $4.47
    Arduino Uno Rev3
    Starts at $25.00
    Dual Axis Gyro Module
    Starts at $21.95
    SHT21 Humidity and Temp Sensor
    Starts at $4.00
    Pressure Sensor (MPXV)
    Starts at $4.95
    Theremin Merit Badge
    Starts at $4.50
    Relay Plug
    Starts at $4.00
    LEDs (Super-Bright)
    Starts at $2.50
    LCD Character Displays
    Starts at $7.00
    RGB LED
    Starts at $0.50
    Arduino Leonardo
    Starts at $25.00
    Arduino WiFi Shield
    Starts at $90.00
    Arduino Wireless SD Shield
    Starts at $30.00
    Arduino Mega 2560
    Starts at $55.00

    Recently Viewed

    Recent News & Updates

    • Maker Faire San Mateo 2012
    • New Fluxamasynth Library
    • PIR sensors and LEDs galore
    • HMC5883 3-Axis Compass launched.
    • 2 Second Arduino Bootloader
    Home / Modern Device / Sensors / TMP37 Temperature Sensor
    TMP37 Temperature Sensor

    Qty

    This is nifty little temperature sensor in a TO-92 package. It was designed to be super easy to read out by converting an analog output voltage converts directly to degrees celsius. There is a Arduino sketch below, but it would be just as easy to use on the Basic Stamp or another microcontroller. 

    The TMP37  does not require any type of external calibration, and is accurate to 1 ºC from 5º C to 100º C. The supply current runs low enough that it does not heat itself a significant amount. All you need to do to interface this sensor is to connect ground, power (+3 to 5 volts) and route the output into A/D pin (Arduino analog pin.

     The one caveat is that the pinout is not correct for just sticking it into the analog block on a BBB. You need to do a little switcheroo on two leads. The pinout is in images above. Remember that it's a bottom view of the device.

    The temperature reads out directly in 20 mV / degree C. An Arduino sketch is below. 

    /*TMP37.pde  
     * Arduino Sketch to read a TMP37 Temperature Sensor
     * Paul Badger
     * 2010
     * Sensor works between 5 degrees & 100 degrees C
     * 20 mV / degree C
     * Can be used with TMP35 & TMP36 by changing voltsPerDegree
     */

    float voltsPerDegree = 0.02; // change to 0.01 for TMP35 & 36

    void setup() {
        Serial.begin(9600);
    }

    void loop() {
        int sensorValue;
        float volts;
        float celsius;
        float farenheit;

        sensorValue = analogRead(0);
        volts = sensorValue * 5.0 / 1024.0;            // convert AD units to volts
        // convert volts to celsius
        celsius = (sensorValue * 5.0 / 1024.0) / voltsPerDegree;
        // standard conversion from celsius to farenheit
        farenheit = (((sensorValue * 5.0 / 1024.0) / voltsPerDegree)  * 9.0 / 5.0) + 32;

        Serial.print(sensorValue, DEC);
        Serial.print(" A/D units   ");
        Serial.print(volts);
        Serial.print(" volts   ");
        Serial.print(celsius);
        Serial.print(" degrees C   ");
        Serial.print(farenheit);
        Serial.println(" degrees F");
    } 

    Resources

    • Arduino Sketch for TMP35, TMP36 or TMP37


     
     

    Shipping Info Distributors Thanks for visiting Modern Device! Your questions and feedback are welcome: support@moderndevice.com

    © 2013 Modern Device.