Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I am building a circuit with two AD8495 thermocouple amplifiers. I chose them because they are simple to get and quite cheap - there's basically no other reason. Now I need to create an interface between the amplifiers and a microcontroller (AVR). The AVR's ADC has 10 bits resolution, and I'd like to use as much of that as I can.

The temperature I am expecting at the thermocouples is up to 300°C. As the AD8495 gives 5mV/°C, the maximum output should be somewhere around 1.4V. I could supply a suitable reference voltage to the ADC to resolve that range, but when the AD8495 has no thermocouple connected (or something else goes wrong), the signal will rise to 5V (supply voltage), which would be too much for the ADC with a low reference voltage.

I see two basic options:

I can clamp the signal to the reference voltage (or some "compatible" voltage using a resistor and a Z diode:
AD8495 with Z diode clamp
This is simple and cheap, but I think I might mess up the whole measurement with this.

I can also use an OpAmp to amplify the AD8495's output to the full 5V range:
enter image description here
Connected with these options are two equivalent problems:

  • I have never build a clamping circuit with a Z diode,
  • I have never used an OpAmp before. I picked the TS912 because it's a rail-to-rail, single supply type (and I can easily get it)

While I know how the ideal devices are supposed to work, I also know that the real devices will mess with my measurement a lot.

I would like to achive +/- 5°C accuracy at 280°C. I have not yet done calculations on that, but given the ADC, reference, and AD8495 accuracies, this might be a bit too optimistic. I am aware of that.

Link to datasheet download page


Edit 1: The AVR has an internal 2.56V reference which I could use. Unfortunately, it is not very precise (2.4 ... 2.8 V) and I'm not sure how much current it can sink or source. So even if the ADC channels have internal clamping diodes (which would have to clamp to Aref), I need some extra protection or conditioning. Using an external reference will not really solve that problem either.

Edit 2: This is my solution, more or less:

enter image description here

The two AD8495 outputs are connected to an ADC (MCP3426), which has an internal 2.048V reference. That is much more accurate than the AVR's internal reference and tolerates the AD8495's 5V output when no thermocouple is connected. I've added screw terminals for the thermocouples and a 0.1" header. All pin holes are on a 0.1" grid. Layout and routing was quite easy:

enter image description here

There are two short SCL and SDA traces on the bottom side, everything else is ground. I've made the thermocouple traces (left) a bit wider for lower thermal resistance.

share|improve this question
    
Check the datasheet for the particular AVR but most ADCs are OK with an input larger than the reference. They either just report the maximum value or set an overflow bit. –  PeterJ Feb 15 '13 at 3:41
    
The AVR's ADC will report the maximum value if Vin > Aref. The datasheet clearly states that Vin must not exceed Aref. There might be internal protection diodes, but where would the current go if they start conducting? The AD8495 can source up to 7 mA, and the AVR's internal reference can surely not sink the 14 mA from two of them. –  Christoph Feb 15 '13 at 7:54
    
Fair enough don't do it if the datasheet says that, was just a suggestion to check. On many ADCs the reference is just the input to a comparator, so the only rules are that it shouldn't exceed the digital / analog vcc. –  PeterJ Feb 15 '13 at 8:05

1 Answer 1

up vote 1 down vote accepted

An accuracy of +/- 5°C accuracy at 280°C amounts to about 1.8% error. This results in an effective resolution of 6 bits (assuming the full measurement range would end at about 280°C). 10 bits of resolution would result in about +/- 0.28°C accuracy, and 8 bits in about +/- 1°C. So you don't need to worry here (Even when you are not using the full range of the ADC input).

The easiest solution for your overflow problem could be to use Avcc as reference voltage (but then it should be noise-free, precise and stable enough). This reduces your resolution (by half when compared to the internal reference, because it doubles the measurement range), but you have plenty of room there (you use about one fourth of the ADCs input range then, so you get 8 bits of effective resolution over your temperature range).

If you want to improve resolution, use a 3.3V low-noise regulator to create both Vref for the AVR, and Vcc for the AD8459 (it can run with this voltage). That way you can be sure the voltage from the thermocouple amplifier never exceeds the reference voltage.

But you also can use a zener diode to clamp the voltage of the amplifier. When looking at e.g. the ATMega16 data sheet (you did not specify which AVR you use) it has an input resistance am 100MOhm, and states that an input impedance of less than 100kOhm is suggested. So the clamping will not have any effect as long as R1 in the schematic above is small enough. And 10kOhm would be perfectly OK - the amplifier then needs to source 0.5mA.

Using an external ADC is another solution. If you can afford the board space and the additional components, it seems even like the best solution. Look for an ADC with a reference of 2V which also can stand inputs up to its Vcc, then you are fine.

I personally would go with the 3.3V LDO solution. You might need a stable and noise-free reference voltage anyway, so why not using it to solve other problems as well?

share|improve this answer
    
With the LP2985, the supply (and therefore reference) voltage accuracy would be 1.5% at 1 mA load, and 2.5% above that. I could also feed the AD8495's output to an external ADC and create a simple prototyping board with 3.3V LDO, thermocouple amplifiers and ADC. Might that be a good idea? –  Christoph Feb 20 '13 at 15:50
1  
Using a reference with 1.5% accuracy makes it difficult to reach your goal of +/- 5°C accuracy. Together with the ADCD accuracy you will reach the limits there. It might be OK when the reference is 3.3V, then together with the ADC accuracy you can reach your goal. Using an external ADC is another solution. If you can afford the board space and the additional components, it seems even like the best solution. Look for an ADC with a reference of 2V which also can stand inputs up to its Vcc, then you are fine. –  hli Feb 20 '13 at 16:18
    
I need two thermocouples, so the mcp3426 would fit nicely: internal 2.048v reference, can apparently handle 5v input, 16 bits resolution and programmable gain. Board space is no problem. –  Christoph Feb 20 '13 at 16:36
    
Yes, sounds like a good fit. Good luck! –  hli Feb 20 '13 at 22:23
    
Well, looks like I indeed had luck! Thanks for your suggestions, I've added my solution above. –  Christoph Feb 20 '13 at 22:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.