I am trying to connect my AD8495 Analog output TC amplifier to a K-type thermocouple, which is then connected to my Arduino Atmega2560. I am not sure if I'm connecting the pins correctly. I am sure my code is correct.
Pin connections (in order seen on the board):
V+ -> 5V on the Arduino
GND -> GND on Arduino
Out -> A0
GND -> GND on Arduino
TC connection is straightforward.
Code:
Code: Select all
//**Global Variables**//
//analog input voltage from AD8495
float voltage;
//temperature variable
float temp;
//Analog voltage input pin
int tpin = A0;
void setup() {
//Initialize serial print to display temperature
Serial.begin(9600);
}
void loop() {
//Read voltage coming from AD8495
voltage = analogRead(tpin);
float vout = (voltage * 5.0)/ 1023.0;
//Convert to temperature
temp = (vout - 1.25) / .005 ;
Serial.prinln(temp);
delay(1000);
}
I've attached a photo of my circuit
Thank you for your time. I greatly appreciate any help.