-40%

2pc TMP36 - TMP36GT9Z - Temperature Sensor, New,Works with Arduino,Raspberrry Pi

$ 2.63

Availability: 223 in stock
  • Number of Pins: 3
  • Condition: New
  • Modified Item: No
  • Mounting Style: PCB Mount
  • All returns accepted: Returns Accepted
  • Custom Bundle: No
  • Body Material: Composite
  • MPN: Does Not Apply
  • Interface Type: 3-Wire
  • Refund will be given as: Money Back
  • Return shipping will be paid by: Buyer
  • Non-Domestic Product: No
  • Model: TMP36
  • Item must be returned within: 30 Days
  • Brand: Unbranded/Generic

    Description

    2 pcs TMP36 - Temperature Sensor
    The TMP36 is a low voltage, precision centigrade temperature sensor. It provides a voltage output that is linearly proportional to the Celsius temperature. It also doesn’t require any external calibration to provide typical accuracies of ±1°C at +25°C and ±2°C over the −40°C to +125°C temperature range. We like it because it’s so easy to use: Just give the device a ground and 2.7 to 5.5 VDC and read the voltage on the Vout pin. The output voltage can be converted to temperature easily using the scale factor of 10 mV/°C.
    Description:
    Voltage Input: 2.7 V to 5.5 VDC
    10 mV/°C scale factor
    ±2°C accuracy over temperature
    ±0.5°C linearity
    Operating Range: −40°C to +125°C
    Connecting to a Temperature Sensor with Arduino
    These sensors have little chips in them and while they're not that delicate, they do need to be handled properly. Be careful of static electricity when handling them and make sure the power supply is connected up correctly and is between 2.7 and 5.5V DC - so don't try to use a 9V battery!
    They come in a "TO-92" package which means the chip is housed in a plastic hemi-cylinder with three legs. The legs can be bent easily to allow the sensor to be plugged into a breadboard. You can also solder to the pins to connect long wires.
    Remember that you can use anywhere between 2.7V and 5.5V as the power supply. For this example I'm showing it with a 5V supply but note that you can use this with a 3.3v supply just as easily. No matter what supply you use, the analog voltage reading will range from about 0V (ground) to about 1.75V.
    If you're using a 5V Arduino, and connecting the sensor directly into an Analog pin, you can use these formulas to turn the 10-bit analog reading into a temperature:
    Voltage at pin in milliVolts = (reading from ADC) * (5000/1024)
    This formula converts the number 0-1023 from the ADC into 0-5000mV (= 5V)
    If you're using a 3.3V Arduino, you'll want to use this:
    Voltage at pin in milliVolts = (reading from ADC) * (3300/1024)
    This formula converts the number 0-1023 from the ADC into 0-3300mV (= 3.3V)
    Then, to convert millivolts into temperature, use this formula:
    Centigrade temperature = [(analog voltage in mV) - 500] / 10
    Simple Thermometer
    This example code for Arduino shows a quick way to create a temperature sensor, it simply prints to the serial port what the current temperature is in both Celsius and Fahrenheit.
    //TMP36 Pin Variables
    int sensorPin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to
    //the resolution is 10 mV / degree centigrade with a
    //500 mV offset to allow for negative temperatures
    /*
    * setup() - this function runs once when you turn your Arduino on
    * We initialize the serial connection with the computer
    */
    void setup()
    {
    Serial.begin(9600); //Start the serial connection with the computer
    //to view the result open the serial monitor
    }
    void loop() // run over and over again
    {
    //getting the voltage reading from the temperature sensor
    int reading = analogRead(sensorPin);
    // converting that reading to voltage, for 3.3v arduino use 3.3
    float voltage = reading * 5.0;
    voltage /= 1024.0;
    // print out the voltage
    Serial.print(voltage); Serial.println(" volts");
    // now print out the temperature
    float temperatureC = (voltage - 0.5) * 100 ; //converting from 10 mv per degree wit 500 mV offset
    //to degrees ((voltage - 500mV) times 100)
    Serial.print(temperatureC); Serial.println(" degrees C");
    // now convert to Fahrenheit
    float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
    Serial.print(temperatureF); Serial.println(" degrees F");
    delay(1000); //waiting a second
    }
    Since we are not charging for shipping, the packet would be sent by USPS First Class post without tracking.