# AD8495 Analog Output K-Type Thermocouple Amplifier

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/074/028/medium800/adafruit_products_AD8495_Thermocouple.jpg?1554396709)

Thermocouples are very sensitive, requiring a good amplifier with a cold-compensation reference. We have a couple digital thermocouple amplifiers in the shop already from Maxim. Now we're happy to introduce an excellent analog-output amplifier. This is a very simple sensor to use, and if your microcontroller has analog input capability, you'll be ready to go really fast!

![](https://cdn-learn.adafruit.com/assets/assets/000/074/029/medium800/adafruit_products_AD8495_Back.jpg?1554396720)

The AD8495 K-type thermocouple amplifier from Analog Devices is so easy to use, we documented the whole thing on the back of the tiny PCB. Power the board with 3-18VDC and measure the output voltage on the **OUT** pin. You can easily convert the voltage to temperature with the following equation: Temperature = (Vout - 1.25) / 0.005 V. So, for example, if the voltage is 1.5VDC, the temperature is (1.5 - 1.25) / 0.005 = 50°C.

![](https://cdn-learn.adafruit.com/assets/assets/000/074/030/medium800/adafruit_products_AD8495_Top_Header.jpg?1554396729)

Each order comes with a 2 pin terminal block (for connecting to the thermocouple), a fully assembled PCB with the AD8495 + TLVH431 1.25V precision voltage reference, and pin header (to plug into any breadboard or perfboard). [Goes great with our 1m K-type thermocouple (not included)](http://www.adafruit.com/products/270). Not for use with any other kind of thermocouple, K type only!

- Works with any K type thermocouple
- Will not work with any other kind of thermocouple other than K type
- Easy to use analog output
- Temp range with 5V power: **-250°C to +750°C output** (0 to 5VDC) as long as the thermocouple can handle that range
- Temp range with 3.3V power: **-250°C to +410°C output** (0 to 3.3VDC) as long as the thermocouple can handle that range
- For higher temperatures you'll need to power with a higher voltage, so you can get the analog reading out.

**Note:** &nbsp;The terminal blocks included with your product may be blue or black.

# AD8495 Analog Output K-Type Thermocouple Amplifier

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/074/031/medium800/adafruit_products_AD8495_Top_Pinout.jpg?1554399569)

## Power Pins

- **V+** - This is the power pin. This board works with 3.3V and 5V power. The temp range with 5V power is -250°C to +750°C output (0 to 5VDC), and with 3.3V power is -250°C to +410°C output (0 to 3.3VDC), as long as the thermocouple can handle the range.
- **GND** - Common ground pins

## Analog Pin

- **OUT** - This is the output voltage pin. Read using an analog input.

## Thermocouple Terminal

- **Red-** - Connect the red or - wire on your thermocouple to this side of the screw terminal
- **Ylw+** - Connect the yellow or + wire on your thermocouple to this side of the screw terminal

# AD8495 Analog Output K-Type Thermocouple Amplifier

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/074/774/medium800/adafruit_products_image.png?1555970433)

## Prepare the header strip:

Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard -&nbsp; **long pins down.**

![adafruit_products_DSC_4211.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/773/medium640/adafruit_products_DSC_4211.jpg?1555976385)

![adafruit_products_DSC_4213.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/775/medium640/adafruit_products_DSC_4213.jpg?1555976589)

![adafruit_products_DSC_4214.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/776/medium640/adafruit_products_DSC_4214.jpg?1555976672)

## Add the breakout board:

Place the breakout board over the pins so that the short pins poke through the breakout pads.

![adafruit_products_DSC_4215.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/777/medium640/adafruit_products_DSC_4215.jpg?1555977254)

## And Solder!

Be sure to solder all 4 pins for reliable electrical contact.  
  
_(For tips on soldering, be sure to check out our&nbsp;_[_Guide to Excellent Soldering_](http://learn.adafruit.com/adafruit-guide-excellent-soldering)_)._

![adafruit_products_DSC_4216.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/780/medium640/adafruit_products_DSC_4216.jpg?1555977278)

![adafruit_products_DSC_4217.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/781/medium640/adafruit_products_DSC_4217.jpg?1555977444)

![adafruit_products_DSC_4218.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/782/medium640/adafruit_products_DSC_4218.jpg?1555977623)

![adafruit_products_DSC_4219.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/783/medium640/adafruit_products_DSC_4219.jpg?1555977626)

You're done with the header strip! Check your solder joints visually.

![adafruit_products_DSC_4221.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/784/medium640/adafruit_products_DSC_4221.jpg?1555973225)

## Prepare the terminal block:

Place the terminal block inside the board. Make sure it's facing out! Turn the board over so the terminal pins are facing upwards.&nbsp;

![adafruit_products_DSC_4222.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/788/medium640/adafruit_products_DSC_4222.jpg?1555977937)

![adafruit_products_DSC_4223.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/789/medium640/adafruit_products_DSC_4223.jpg?1555977953)

## Solder again!

First solder one pin by using the soldering iron to prop up the board. Then use a [vice](https://www.adafruit.com/product/151) or helper hands to hold the board in place while soldering the other pin.

![adafruit_products_DSC_4225.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/790/medium640/adafruit_products_DSC_4225.jpg?1555978521)

![adafruit_products_DSC_4226.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/792/medium640/adafruit_products_DSC_4226.jpg?1555978717)

![adafruit_products_DSC_4227.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/793/medium640/adafruit_products_DSC_4227.jpg?1555978897)

![adafruit_products_DSC_4228.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/794/medium640/adafruit_products_DSC_4228.jpg?1555978904)

You're done! Check your solder joints visually and continue onto the next steps.

![adafruit_products_DSC_4232.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/799/medium640/adafruit_products_DSC_4232.jpg?1555979805)

# AD8495 Analog Output K-Type Thermocouple Amplifier

## Arduino

It's easy to wire this breakout to a microcontroller to use with the Arduino IDE. Keep in mind the output sensitivity is only 0.005 volts per degree Celsius. This is due to the overall large range of temperatures that can be measured.

**If you are using a low resolution ADC (like 10 bits or less) and trying to discern small temperature differences (like only a couple of degrees), it may be difficult to pull that signal out of the noise.**

For example, the Microchip SAMD21 M0 boards such as the [Adafruit Metro M0 Express](https://learn.adafruit.com/adafruit-metro-m0-express-designed-for-circuitpython/) offer 12 bit analog inputs.

# Wiring

Wire up the AD8495 as follows. This example uses a Metro M0 Express:

- **Board V+** to **Metro 3.3V**
- **Board GND** to **Metro GND**
- **Board OUT** to **Metro A0**
- **Board RED-** to **thermocouple red- wire**
- **Board YLW+** to **thermocouple yellow+ wire**

![adafruit_products_AD8495_Metro_Arduino_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/282/medium640/adafruit_products_AD8495_Metro_Arduino_bb.jpg?1554832277)

# Load Demo

Download the following file and save it to your computer.

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Adafruit_AD8495_Guide/AD8495_Temperature/AD8495_Temperature.ino

Open the file you downloaded in the Arduino IDE, and upload it to your Arduino. Once uploaded to your Arduino, open up the serial console at 9600 baud speed to see data being printed out.

![](https://cdn-learn.adafruit.com/assets/assets/000/074/102/medium800/adafruit_products_AD8595_Ardruino_Serial_output.png?1554502949)

# Usage

First, set the ADC pin to be used, choose the voltage you'll be connecting to, set the ADC resolution and set `reading`, `voltage` and `temperature` to floats.

```auto
#define TC_PIN A0          // set to ADC pin used
#define AREF 3.3           // set to AREF, typically board voltage like 3.3 or 5.0
#define ADC_RESOLUTION 10  // set to ADC bit resolution, 10 is default

float reading, voltage, temperature;
```

Next are two functions: one to take the raw ADC value and turn it into voltage, and one to turn the voltage into temperature.

```auto
float get_voltage(int raw_adc) {
  return raw_adc * (AREF / (pow(2, ADC_RESOLUTION)-1));  
}

float get_temperature(float voltage) {
  return (voltage - 1.25) / 0.005;
}
```

The `get_voltage` function uses the raw ADC value, and the board voltage and resolution specified above to calculate the output voltage. Check out [this Arduino tutorial](https://www.arduino.cc/en/Tutorial/ReadAnalogVoltage) for more information.

The `get_temperature` function takes the output voltage from the `get_voltage` function and uses it to calculate the temperature.

In the main loop, we take the analog `reading`, apply it to `get_voltage` to get `voltage`, and then apply the `voltage` to `get_temperature` to get `temperature`. Then we print the temperature to the serial monitor every 0.5 seconds.

```auto
  reading = analogRead(TC_PIN);
  voltage = get_voltage(reading);
  temperature = get_temperature(voltage);
  Serial.print("Temperature = ");
  Serial.print(temperature);
  Serial.println(" C");
  delay(500);
```

# AD8495 Analog Output K-Type Thermocouple Amplifier

## Python & CircuitPython

It's easy to use the AD8495 sensor with CircuitPython. This board does not require a separate library. The built in `analogio` module lets you easily read voltage from a thermocouple and use a simple equation to turn it into temperature.

Warning: 

# CircuitPython Microcontroller Wiring

First, wire up your AD8495. Here is an example of it wired up to a Feather M0:

- **Board V+** to **Feather 3V**
- **Board GND** to **Feather GND**
- **Board OUT** to **Feather A1**
- **Board RED-** to **thermocouple red- wire**
- **Board YLW+** to **thermocouple yellow+ wire**

![adafruit_products_AD8594_FeatherM0_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/074/285/medium640/adafruit_products_AD8594_FeatherM0_bb.jpg?1554833279)

# CircuitPython Usage

To demonstrate use of this board, we'll initialise it and read the voltage and use the equation to turn it into temperature using the board's Python REPL.

First, run the following code to import the necessary modules and initialise the board on pin **A1** :

```auto
import board
import analogio
ad8495 = analogio.AnalogIn(board.A1)
```

Next, we'll need a helper function to take the raw data from the thermocouple and turn it into voltage.

```auto
def get_voltage(pin):
    return (pin.value * 3.3) / 65536
```

Next, we set `temperature` equal to the equation necessary to convert the voltage from the thermocouple into temperature, using the `get_voltage` helper.

The equation is `(voltage - 1.25) / 0.005`.

```auto
temperature = (get_voltage(ad8495) - 1.25) / 0.005
```

Now we can print the current temperature in C.

```auto
print(temperature)
```

![](https://cdn-learn.adafruit.com/assets/assets/000/074/286/medium800/adafruit_products_AD8495_REPL_temperature_print.png?1554834172)

That's all there is to using the AD8495 with CircuitPython!

# Full Example Code
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Adafruit_AD8495_Guide/code.py

# AD8495 Analog Output K-Type Thermocouple Amplifier

## Downloads

## Files

- [AD8495 Datasheet](https://www.analog.com/media/en/technical-documentation/data-sheets/ad8494_8495_8496_8497.pdf)
- [EagleCAD PCB Files on GitHub](https://github.com/adafruit/Adafruit-AD8495-Breakout-PCB)
- [Fritzing object in Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20AD8495.fzpz)

# Schematic
![](https://cdn-learn.adafruit.com/assets/assets/000/134/342/medium800/adafruit_products_schem.png?1736175129)

# Fab Print
![](https://cdn-learn.adafruit.com/assets/assets/000/074/290/medium800/adafruit_products_AD8495_Fab_Print.png?1554846586)


## Primary Products

### Analog Output K-Type Thermocouple Amplifier - AD8495 Breakout

[Analog Output K-Type Thermocouple Amplifier - AD8495 Breakout](https://www.adafruit.com/product/1778)
Thermocouples are very sensitive, requiring a good amplifier with a cold-compensation reference. We have a couple digital thermocouple amplifiers in the shop already from Maxim. Now we're happy to introduce an excellent analog-output amplifier. This is a very simple sensor to use, and if...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1778)
[Related Guides to the Product](https://learn.adafruit.com/products/1778/guides)

## Featured Products

### Thermocouple Type-K Glass Braid Insulated

[Thermocouple Type-K Glass Braid Insulated](https://www.adafruit.com/product/270)
Thermocouples are best used for measuring temperatures that can go above 100 °C. This is a bare wires bead-probe which can measure air or surface temperatures. Most inexpensive thermocouples have a vinyl covering which can melt at around 200 °C, this one uses a fiberglass braid so it...

Out of Stock
[Buy Now](https://www.adafruit.com/product/270)
[Related Guides to the Product](https://learn.adafruit.com/products/270/guides)
### Thermocouple Type-K Glass Braid Insulated Stainless Steel Tip

[Thermocouple Type-K Glass Braid Insulated Stainless Steel Tip](https://www.adafruit.com/product/3245)
Thermocouples are best used for measuring temperatures that can go above 100°C. This is a bare wires stainless-steel tip probe which can measure air or surface temperatures. Most inexpensive thermocouples have a vinyl covering which can melt at around 200°C, this one uses a fiberglass...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3245)
[Related Guides to the Product](https://learn.adafruit.com/products/3245/guides)
### Thermocouple Type-K Glass Braid Insulated - 5m

[Thermocouple Type-K Glass Braid Insulated - 5m](https://www.adafruit.com/product/3895)
Thermocouples are best used for measuring temperatures that can go above 100°C. This is a bare-wire bead-probe which can measure air or surface temperatures. Most inexpensive thermocouples have a vinyl covering which can melt at around 200°C, this one uses a fiberglass braid so it can...

In Stock
[Buy Now](https://www.adafruit.com/product/3895)
[Related Guides to the Product](https://learn.adafruit.com/products/3895/guides)

## Related Guides

- [Adafruit PiCowbell Proto for Pico](https://learn.adafruit.com/picowbell-proto.md)
- [Adafruit 1.28" 240x240 Round TFT LCD](https://learn.adafruit.com/adafruit-1-28-240x240-round-tft-lcd.md)
- [TMP36 Temperature Sensor](https://learn.adafruit.com/tmp36-temperature-sensor.md)
- [Adafruit I2S Stereo Decoder - UDA1334A](https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a.md)
- [NXP Precision 9DoF Breakout](https://learn.adafruit.com/nxp-precision-9dof-breakout.md)
- [Adafruit OLED FeatherWing](https://learn.adafruit.com/adafruit-oled-featherwing.md)
- [CYBERDECK Bonnet and HAT for Raspberry Pi 400](https://learn.adafruit.com/cyberdeck-bonnet-and-hat.md)
- [Adafruit Wii Nunchuck Breakout Adapter](https://learn.adafruit.com/adafruit-wii-nunchuck-breakout-adapter.md)
- [Adafruit QT Py CH32V203](https://learn.adafruit.com/adafruit-qt-py-ch32v203.md)
- [Adafruit USB Host FeatherWing with MAX3421E](https://learn.adafruit.com/adafruit-usb-host-featherwing-with-max3421e.md)
- [Adafruit 1.44" Color TFT with Micro SD Socket](https://learn.adafruit.com/adafruit-1-44-color-tft-with-micro-sd-socket.md)
- [No-Code, No-Solder Monitoring For Perfect Bread](https://learn.adafruit.com/no-code-no-solder-temperature-monitoring-with-wippersnapper-offline.md)
- [MLX90640 Thermal Camera with Image Recording](https://learn.adafruit.com/mlx90640-thermal-image-recording.md)
- [Introducing the Adafruit Bluefruit LE Friend](https://learn.adafruit.com/introducing-adafruit-ble-bluetooth-low-energy-friend.md)
- [Adafruit Proto Tripler PiCowbell](https://learn.adafruit.com/adafruit-proto-tripler-picowbell.md)
