Microcontroller to Sensor Interfacing Techniques



Similar documents
Measuring Temperature withthermistors a Tutorial David Potter

Microcontroller Display Interfacing Techniques

Basic RTD Measurements. Basics of Resistance Temperature Detectors

Conversion Between Analog and Digital Signals

ADC-20/ADC-24 Terminal Board. User Guide DO117-5

Temperature Sensors. Resistance Temperature Detectors (RTDs) Thermistors IC Temperature Sensors

APPLICATION NOTES DEFINITIONS NTC Thermistor 101

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Using NTC Temperature Sensors Integrated into Power Modules

# 2. Selecting and Using Thermistors for Temperature Control

CALIBRATION OF A THERMISTOR THERMOMETER (version = fall 2001)

Evaluation copy. Build a Temperature Sensor. Project PROJECT DESIGN REQUIREMENTS

Digital to Analog and Analog to Digital Conversion

PC BASED PID TEMPERATURE CONTROLLER

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Thermistor Basics. Application Note AN-TC11 Rev. A. May, 2013 Page 1 WHAT IS A THERMISTOR?

R&D Engineer. equipment. the power

Thermistor. Created by Ladyada. Last updated on :30:46 PM EDT

Contents. Document information

Temperature Accuracy of Thermistors and RTDs Application Notes

Section 3. Sensor to ADC Design Example

Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

Two-Terminal IC Temperature Transducer AD590

Low Cost, Precision IC Temperature Transducer AD592*

More Op-Amp Circuits; Temperature Sensing

DHT11 Humidity & Temperature Sensor D-Robotics UK (

THERMAL ANEMOMETRY ELECTRONICS, SOFTWARE AND ACCESSORIES

IC Temperature Sensor Provides Thermocouple Cold-Junction Compensation

Application Note 142 August New Linear Regulators Solve Old Problems AN142-1

Pressure Transducer to ADC Application

NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator

SCXI CHANNEL ISOTHERMAL TERMINAL BLOCK

Android based Alcohol detection system using Bluetooth technology

How To Power A Power Control Microprocessor (Power Control) Microprocessor 2 (Power) (Power Power) (Control) (Repower) Microcontroller (Power/Reflow) (Mini) (Microprocessor) (Wired) (Wire

Errors Related to Cable Resistance Imbalance in Three Wire RTDs

Unit 7: Electrical devices LO2: Understand electrical sensors and actuators Sensors temperature the thermistor

Using a Thermistor to Measure Temperature. Thermistors are resistors that vary their resistance according to temperature.

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

R EXT THERMISTOR. Maxim Integrated Products 1

Chapter 6: From Digital-to-Analog and Back Again

Current Loop Application Note 1495

Designing VM2 Application Boards

Using Thermocouple Sensors Connecting Grounded and Floating Thermocouples

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Kit Watt Audio Amplifier

Welcome to this presentation on Driving LEDs Resistors and Linear Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series.

Touch Screen for Pictiva OLED display. Application Note. Introduction

SMART SENSOR COLLECTION

NEW MICROWAVE APPLICATIONS FOR THICK FILM THERMISTORS

APPLICATION NOTES OF SIGNAL ISOLATORS

Cold-Junction-Compensated K-Thermocoupleto-Digital Converter (0 C to C)

Digital to Analog Converter. Raghu Tumati

BIASING OF CONSTANT CURRENT MMIC AMPLIFIERS (e.g., ERA SERIES) (AN )

LM35 Precision Centigrade Temperature Sensors

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

HTM2500LF Temperature and Relative Humidity Module

The Control of ph and Oxidation Reduction Potential (ORP) in Cooling Tower Applications By Charles T. Johnson, Walchem Corporation

Interfacing Analog to Digital Data Converters

Expat Audio Uber Power Supply... 2 Introduction... 2 Revision Control & Edits... 2 The Schematic... 3 Calculating the value of R1,R2 and R3...

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

STEPPER MOTOR SPEED AND POSITION CONTROL

TAC I/NETTM MR-AHU-HP. Application Specific Controller


Microcontroller for Variable Speed BLDC Fan Control System. T.C. Lun System Engineer, Freescale Semiconductor, Inc.

Sensors Collecting Manufacturing Process Data

DRM compatible RF Tuner Unit DRT1

phonostage RIP YOUR VINYL TO BITS, WITH A USB Design

High Voltage Power Supplies for Analytical Instrumentation

Technical Note Series

LM117 LM317A LM317 3-Terminal Adjustable Regulator

A Collection of Differential to Single-Ended Signal Conditioning Circuits for Use with the LTC2400, a 24-Bit No Latency Σ ADC in an SO-8

Digital To Analog Converter with Sine Wave Output

OPERATING MANUAL. Table of contents. 2 Phase Stepping Motor Driver 2M542. Rev. A. Introduction page 2. Specifications page 2 Timing chart page 3

Micro-Step Driving for Stepper Motors: A Case Study

Application Note. So You Need to Measure Some Inductors?

SPI-8001TW. Switching Regulators. Dual 1.5 A, DC/DC Step-Down Converter. SANKEN ELECTRIC CO., LTD.

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

GenTech Practice Questions

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Controlling a Dot Matrix LED Display with a Microcontroller

Of all the physical properties, it is temperature, which is being measured most often.

US-SPI New generation of High performances Ultrasonic device

SMT POWER THERMISTORS

INFRARED PARTS MANUAL

The ideal charging resistor for power electronics always precise, quick, robust and Fail-Safe

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Low Voltage, Resistor Programmable Thermostatic Switch AD22105

ETC TWO STAGE ELECTRONIC TEMPERATURE CONTROL

Simplify Data Acquisition with a Built-in LXI Web Server

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

Whale 3. User Manual and Installation Guide. DC Servo drive. Contents. 1. Safety, policy and warranty Safety notes Policy Warranty.

Calibrating DC Shunts: Techniques and Uncertainties

Green House Monitoring and Controlling Using Android Mobile Application

AN1258. Op Amp Precision Design: PCB Layout Techniques THERMOCOUPLE JUNCTION BEHAVIOR INTRODUCTION. Seebeck Effect. Key Words and Phrases

VOLTAGE/CURRENT CALIBRATOR ISO-TECH ILC-421

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

Electronic Control Devices The European Product Catalogue 2007

Duct Humidity Transmitter

2.0 Command and Data Handling Subsystem

The Do s and Don ts of Pressure Transducers

Transcription:

to Sensor Interfacing Techniques Document Revision: 1.01 Date: 3rd February, 2006 16301 Blue Ridge Road, Missouri City, Texas 77489 Telephone: 1-713-283-9970 Fax: 1-281-416-2806 E-mail: info@bipom.com Web: www.bipom.com This document is available for download from www.bipom.com 2009 by BiPOM Electronics. All rights reserved. to Sensor Interfacing Techniques. No part of this work may be reproduced in any manner without written permission of BiPOM Electronics. All trademarked names in this manual are the property of respective owners.

Overview Micro-controllers are useful to the extent that they communicate with other devices, such as sensors, motors, switches, keypads, displays, memory and even other micro-controllers. Many interface methods have been developed over the years to solve the complex problem of balancing circuit design criteria such as features, cost, size, weight, power consumption, reliability, availability, manufacturability. Many microcontroller designs typically mix multiple interfacing methods. In a very simplistic form, a microcontroller system can be viewed as a system that reads from (monitors) inputs, performs processing and writes to ( controls ) outputs. Input Devices Output Devices Interfaces Digital Analog On/Off Parallel Serial Voltage Current Asynchronous 1-wire RS232/RS485 Ethernet Synchronous 2-wire (I2C) 4-wire (SPI, Microwire) Page 2

Analog Inputs/Outputs Voltage-based control and monitoring. Advantages Simple interface Low cost for low-resolutions High speed Low programming overhead Disadvantages High cost for higher resolutions Not all microcontrollers have analog inputs/outputs built-in Complicates the circuit design when external ADC or DAC are needed. Short distance, few feet maximum. Voltage type: Typical ranges 0 to 2.5V 0 to 4V 0 to 5V +/- 2.5V +/- 4V +/- 5V Current type: Typical ranges 0-20mA 4-20mA Vcc Analog Interface Potentiometer Amplifier Vcc LM35 Temperature Sensor Vcc Analog/ Digital (ADC) 8051 (AT89C51ED2) Digital/ Analog (DAC) Strain-gage 4-20mA Output Page 3

Sensor Types Temperature Humidity Light Acceleration Force Frequency Flow Pressure Torque Proximity Displacement Temperature Sensors RTD Thermistor Thermocouple Semiconductor Temperature Sensors Criteria Thermocouple RTD Thermistor Semiconductor Temperature Range Very wide -450 F +4200 F Wide -400 F +1200 F narrow -100 F +500 F narrow -60 F to 250 F Interchangeability Good Excellent Poor to fair Good Long-term Stability Poor to fair Good Poor Good Accuracy Medium High Medium High Repeatability Fair Excellent Fair to good Good Sensitivity (output) Low Medium Very high High Response Medium to fast Medium Medium to fast Medium to fast Linearity Fair Good Poor Good Self Heating No Very low to low High High Point (end) Sensitive Excellent Fair Good Good Lead Effect High Medium Low Low Size/Packaging Small to large Medium to small Small to medium Small to medium Page 4

RTD s Also called Platinum RTD because it is typically made of platinum. A change in temperature causes a change in resistance of platinum. This change can be measured with an ohmmeter. Within a limited range, the resistance of metals increases in proportion to the temperature as defined by the formula: where: = resistance at temperature = resistance at a standard temperature α = temperature coefficient of resistance ( ) In theory, any metal could be used to measure temperature. The metal selected should have a high melting point and an ability to withstand the effects of corrosion. Platinum has therefore become the metal of choice for RTD's. Its desirable characteristics include chemical stability, availability in a pure form, and electrical properties that are highly reproducible. Typical readings for platinum are 100 ohms at 0 Celsius and 139 ohms at 100. Wire-wound type Thin film type Page 5

I REF V AIN0 = R RTD I REF AIN0 Platinum RTD (R RTD) Ground RTD s require a constant current source, such as 1mA. Such a low current keeps the self heating to a minimum. 5V + - Analog/Digital (ADC) RTD VREF Page 6

Thermistors Thermistors are thermally sensitive resistors and have, according to type, a negative (NTC), or positive (PTC) resistance/temperature coefficient. Manufactured from the oxides of the transition metals - manganese, cobalt, copper and nickel, NTC thermistors are temperature dependant semiconductor resistors. Operating over a range of -200 C to + 1000 C, they are supplied in glass bead, disc, chips and probe formats. Thermistors are typically very low cost devices ( under $1 ). Page 7

V REF Thermistor (R th) V AIN0 = R R + R th V REF AIN0 Known resistor (R) Ground Page 8

Thermocouples Thermocouples convert temperature to voltage. They rely on Seebeck effect which states that a junction of different metals will generate a voltage that is proportional to the temperature of the metals. Thermocouples are low cost temperature sensors, they are readily available from multiple sources and they can measure a wide range of temperatures that can not be measured with semiconductor type temperature sensor. For example, they can be used to measure the temperature of the inside of a ceramics kiln which can reach 1200 Celsius. The temperature range of a thermocouple depends on the type of metals that make up the thermocouple. There are some industry standard types as shown in the table: Type Range ( Celsius ) Range (Fahrenheit) Features E 95-900 C 200-1650 F Highest Output J 95-760 C 200-1400 F K 95-1260 C 200-2300 F T 0-350 C 32-660 F Thermocouples give out voltages in the range of micro volts so the output of a thermocouple must be amplified before it can be converted into a digital value. BiPOM offers a dedicated thermocouple board THERMOCOUPLE-1 that supports all the popular thermocouple types ( jumper selectable ) and accepts up to 4 thermocouples simultaneously. MINI-MAX/51-C2 DAQ-2543 THERMOCOUPLE-1 THERMOCOUPLES Page 9

Semiconductor Temperature Sensors Analog Voltage Output Typically three-pin devices: Power, ground and output. LM34: Fahrenheit sensor ( 10 millivolts/fahrenheit ) LM35: Celsius sensor ( 10 millivolts/celsius ) LM335: Kelvin sensor ( 10 millivolts/kelvin ) INPUT LM34, LM35 or LM335 OUTPUT Current Output GROUND GROUND Typically 2-pin devices. AD590: Kelvin sensor ( 1uA/Kelvin ) Analog Temperature Sensor Analog/Digital (ADC) Digital Frequency Output MAX6576 1-wire DS18B20 2-wire/SMBUS DS1621 3-wire Digital Temperature Sensor DS1620 Page 10

Analog Digital Conversion Voltage to Frequency Flash ADC Successive Approximation Dual-Slope Integration Delta-Sigma Successive approximation ADC Successive Approximation ADC s are popular for use with microcontrollers due to low-cost and ease of interfacing. A successive approximation ADC consists of: Successive Approximation Register Result Register DAC Comparator Successive-approximation register counts by trying all values of bits starting with the mostsignificant bit and finishing at the least-significant bit. Throughout the count process, the register monitors the comparator's output to see if the binary count is less than or greater than the analog signal input, adjusting the bit values accordingly. This way, the DAC output eventually converges on the analog input signal and the result is presented in the Result register. Page 11

Voltage DAC Output Input Voltage Time ADC can be external to the microcontroller or built-in: Analog/Digital (ADC) AT89C51ED2 Analog/ Digital (ADC) PIC16F818 Page 12

Noise considerations Many sensors, such as thermocouples, generate a relatively small voltage so noise is always an issue. The most common source of noise is the utility power lines (50 Hz or 60 Hz). Typically, the bandwidth for temperature sensors is much lower than 50 or 60 Hz so a simple low-pass filter will work well in many cases. Other measures to keep noise away: Keep the sensor wires short. Use shielded sensor cables with twisted pair wires. Use a dedicated precision voltage reference, not the microcontroller supply. Use 4-20mA loop or even better, a digital signal for long cable runs. Provide low impedance paths to ground at the ADC inputs if possible. Average readings in software. Analog ground and digital ground should connect at the ADC. Analog ground should not carry large currents. Ground planes should not carry any currents. Sensor Analog/Digital (ADC) Analog Ground Digital Ground Page 13