Lecture 3: Sensors and Signal Conditioning
Previous lecture | Lecture index | Next lecture
Slides PDF | Equation sheet | Activity sheets | Quiz PDF | Quiz Solutions PDF
Select a process sensor, verify its electrical interface, convert raw readings to engineering units, and check a calibration against an independent reference.
Start Here
A controller reads 1.80 V. How can it tell whether the vessel is at 50 °C?
Write the physical quantity and its unit first. Trace each electrical conversion before assigning an engineering value to a reading.
🎯 Learning Objectives
- Compare sensors for temperature, pressure, flow, composition, and level.
- Scale current-loop and voltage signals with the correct offsets and units.
- Fit a two-point scale and interpret a withheld reference and repeat reading.
Continuing project: Keep the same process, controlled variable, manipulated variable, and disturbance throughout the sequence. Retain circuit sketches, raw data, assumptions, and the design decision from each activity.
⚡ Concepts, Equations, and Worked Examples
Select for the Process, Then Check the Interface
Follow the measurement through its interfaces
Start with what the operator needs to know, such as water temperature in °C. The sensing element detects a physical change. A transmitter turns the measurement into a signal suitable for sending. A receiver makes the signal compatible with the controller input. An analog-to-digital converter (ADC) then samples that input as a number. Keep the unit at every step so the scale can be checked.

In this illustrative loop, 50 °C becomes 12 mA, then 1.80 V across a receiver. The controller converts its input to 50 °C.
| Variable | Example method | Selection question |
|---|---|---|
| Temperature | RTD or thermocouple | Range, response, mounting, and cleaning? |
| Pressure | Diaphragm transmitter | Pressure limit and wetted-material compatibility? |
| Flow | Differential pressure or pulse-output meter | Fluid properties and usable flow range? |
| Composition | pH or species-specific optical measurement | Which chemical property or species is measured? |
| Level | Hydrostatic, float, or noncontact | Density, foam, geometry, and process exposure? |
Conditioning may provide gain, buffering, filtering, compensation, or isolation. A thermocouple converter has a different role from the sensing junction. The supplied MAX6675 example includes cold-junction compensation and an SPI-compatible digital interface; it requires its own device driver. MCU Studio’s analog input does not perform SPI transactions. Check the actual module supply and logic requirements, and release the shared serial port before running separate acquisition code.
A current receiver must fit the normal signal range and the possible fault range. Loop supply voltage must cover transmitter requirements, receiver burden, and wiring losses. A digital output format still requires correct installation, calibration, timing, and reference handling.
1 / Sensor selection and signal chain
Match variable, range, response, materials, and environment before choosing an output format.
Worked example. Measure a \(0\)-\(100\,^{\circ}\mathrm C\) vessel.
- Define temperature range, required response and wetted-material suitability.
- Select a sensor and compatible converter; a thermocouple needs its appropriate conversion and reference-junction compensation.
- Verify transmitter span, input limits, and calibration at the controller.
2 / Linear 4-20 mA scaling
Count how far the current is above live zero
Subtract 4 mA from the reading first. The example has moved 8 mA through a span of 16 mA, so it is halfway through the temperature range. To calculate the voltage across the physical receiver, use the full current through the resistor. That calculation uses 12 mA, or 0.012 A. A reading outside the normal range should be evaluated using the actual transmitter’s fault behavior.

4 mA corresponds to 0 °C and 20 mA to 100 °C in this model. 12 mA is halfway between them.
Subtract the live zero before dividing by span. $$x=x_{\min}+\frac{I-I_{\min}}{I_{\max}-I_{\min}}(x_{\max}-x_{\min})$$ $$V_R=IR_s.$$
Worked example. \(4\)-\(20\,\mathrm{mA}\leftrightarrow0\)-\(100\,^{\circ}\mathrm C\); read \(12\,\mathrm{mA}\) through \(150\,\mathrm{\Omega}\).
- Fraction \(=(12-4)/(20-4)=0.50\).
- \(x=0+0.50(100)=50\,^{\circ}\mathrm C\).
- \(V_R=0.012(150)=1.80\,\mathrm{V}\); normal span is \(0.60\)-\(3.00\,\mathrm{V}\).
3 / Two-point calibration and checking
Keep one reference outside the fit
Calibration ties an electrical reading to a known physical value. Use two separated reference conditions to set a straight line. Then test the prediction at a third condition you did not use to fit it. Compare the error with the process tolerance. A repeated measurement at the same condition gives a different kind of evidence about how consistently the instrument reads.

The two filled dots set the fitted line. At 1.50 V it predicts 50 °C. The independent 52 °C reference gives a −2 °C prediction error.
Fit a linear model to two known references: $$m=\frac{x_2-x_1}{V_2-V_1},\quad x=x_1+m(V-V_1).$$
Worked example. References \((0.50\,\mathrm{V},20\,^{\circ}\mathrm C)\) and \((2.50\,\mathrm{V},80\,^{\circ}\mathrm C)\).
- \(m=(80-20)/(2.50-0.50)=30\,^{\circ}\mathrm C/\mathrm V\).
- At \(1.50\,\mathrm{V}\): \(x=20+30(1.50-0.50)=50\,^{\circ}\mathrm C\).
- At an independent \(50\,^{\circ}\mathrm C\) reference, suppose \(x_{\mathrm{read}}=51\,^{\circ}\mathrm C\). Then \(e=x_{\mathrm{read}}-x_{\mathrm{ref}}=+1\,^{\circ}\mathrm C\).
Engineering point: The fitted endpoints do not establish accuracy between them.
4 / Input compatibility and loading
Hardware must keep the actual pin voltage within its specified normal and fault limits. $$V_{\mathrm{ADC}}=aV_{\mathrm{in}},\qquad a=\frac{R_2}{R_1+R_2}.$$
Worked example. A \(0\)-\(10\,\mathrm{V}\) signal and \(0\)-\(3.3\,\mathrm{V}\) ADC.
- Direct connection exceeds the normal input range.
- Ideal divider: \(R_1=22\,\mathrm{k\Omega}\), \(R_2=10\,\mathrm{k\Omega}\) gives \(a=10/32=0.3125\).
- At \(10\,\mathrm{V}\), \(V_{\mathrm{ADC}}=3.125\,\mathrm{V}\). Verify tolerances, loading, sampling, transients, references and protection before use.
Engineering point: Software scaling cannot protect an overvoltage pin; filtering also introduces delay.
🧪 Experiment: Calibration and Independent Check (15 min)
Open Microcontroller I/O Studio. Use the simulator or the prepared educational circuit specified below. Preserve project-controller firmware and record board, firmware, input range, signal reference, settings, and actual sample interval.
Before you begin. Write down the two references you will fit and the one you will keep aside to check the fit. Label a simulator input as a stand-in for a sensor.

Concept illustration of two process measurements. One device senses pressure in a pipe. A float in the vessel illustrates a way to sense level.
- Identify the project sensor or explicitly label a voltage stand-in. Record the electrical format, acquisition method, permitted range, and signal reference.
- For the simulated 5 V Uno, use A0 with separated settings near 0.50 and 2.50 V, and an intermediate setting near 1.50 V. Preserve predictions and record actual readings.
- Use the two endpoints to fit the chosen linear scale. Reserve the intermediate point to check the prediction. Repeat one setting to assess short-term repeatability.
- For a physical sensor, obtain actual independent reference conditions and identify the reference instrument and its uncertainty or resolution. A potentiometer validates electrical scaling, rather than physical temperature accuracy.
- Save a table and calibration plot. If the sensor is nonlinear, state the limited range or use an appropriate conversion model. Record one interface decision for the project.
Record and Interpret
| Point | Reference and units | Raw signal | Inferred process value | Residual |
|---|---|---|---|---|
| Endpoint 1 | Record | Record | Fit | Not independent |
| Endpoint 2 | Record | Record | Fit | Not independent |
| Withheld reference | Record | Record | Predict | Reading minus reference |
| Repeat | Record | Record | Calculate | Compare repeatability |
The slide calibration example uses an independent 52 °C reference with a predicted 50 °C, giving a residual of -2 °C. The equation-sheet example in the calibration section uses an independent 50 °C reference and a 51 °C reading, giving +1 °C. These are separate hypothetical checks, using the same reading-minus-reference sign convention.
Data origin: Identify physical measurement, simulator output, supplied synthetic data, or calculated model for every record. Preserve the prediction before collecting the result.
Data and Analysis Downloads
🛠 Project Checkpoint
Complete EE 2 with the selected sensor, process range, response requirement, environmental and wetted-material rationale, electrical format, conditioning, input limits, calibration equation, and independent-check result. State whether the observed error meets the project tolerance and what physical test remains.
Check Your Understanding
What does 4 mA report for the 0–100 °C loop? How would you handle an unexpected 0 mA?
4 mA represents 0 °C. A 0 mA reading is outside the normal range. Check loop power, continuity, and documented fault behavior before interpreting it.
📝 Quiz (10-15 min)
After you try each question, select Worked solution below it to see the steps. Use the Quiz Solutions PDF above to review the full answer key.
12 points total; 4 points per question. Show work and units. Round numerical results to 3 significant figures. For multiple choice, select one answer and explain briefly.
Question 1: A 4-20 mA measurement
A linear 4-20 mA transmitter represents 0-200 °C. Current is 8.0 mA through a 250 \(\Omega\) receiver. Find temperature and receiver voltage.
$$T=0+\frac{8.0-4.0}{20.0-4.0}(200)=50.0\,{}^{\circ}\mathrm{C}$$ $$V_R=0.0080(250)=2.00\,\mathrm{V}$$
Subtract live zero for span scaling; use the full actual current for the receiver drop.
Question 2: Two-point calibration
A linear sensor reads 0.50 V at 10 °C and 2.50 V at 90 °C. Find slope and the temperature at 1.50 V.
$$m=\frac{90-10}{2.50-0.50}=40.0\,{}^{\circ}\mathrm{C}/\mathrm{V}$$ $$T=10+40.0(V-0.50),\qquad T(1.50\,\mathrm{V})=50.0\,{}^{\circ}\mathrm{C}$$
Keep the offset; multiplying raw voltage by slope alone gives the wrong scale.
Question 3: Input compatibility
A transmitter outputs 0-10 V and the ADC accepts 0-3.3 V normally. Choose the best decision and explain why software scaling alone is insufficient.
- A. Connect directly; rescale the software value.
- B. Connect directly; any ADC can measure 10 V.
- C. Condition the signal; check input limits.
- D. Change displayed units from °C to °F.
C. The physical voltage can exceed the ADC range. Hardware conditioning must provide the appropriate voltage and satisfy actual normal and fault limits. Software scaling changes units after acquisition.
✅ Exit Ticket
A linear 0-200 °C, 4-20 mA transmitter outputs 8 mA. Find temperature. What does a third reference test? Can an analog input read MAX6675 SPI data?
$$T=\frac{8-4}{20-4}(200)=50\,{}^{\circ}\mathrm{C}$$
A withheld reference checks the scale’s prediction and can reveal bias or nonlinearity. MAX6675 data require the appropriate digital interface and driver.
💬 Discussion Questions
Commit to an answer before comparing with a colleague or AI assistant.
- Why can a repeatable measurement still have a calibration bias?
- What additional loop-voltage and fault-range checks remain after a normal 4-20 mA scaling calculation?
- How would a 2 °C error change the control objective for the chosen process?
📐 Nomenclature
| Symbol | Meaning | Example value |
|---|---|---|
| \(x\) | Process variable | 50 \(^{\circ}\)C |
| \(x_{\min},x_{\max}\) | Process span limits | 0; 100 \(^{\circ}\)C |
| \(I\) | Loop current | 12 mA |
| \(I_{\min},I_{\max}\) | Loop span limits | 4; 20 mA |
| \(R_s,V_R\) | Receiver shunt/drop | 150 \(\Omega\); 1.80 V |
| \(x_1,x_2\) | Calibration references | 20; 80 \(^{\circ}\)C |
| \(V_1,V_2\) | Calibration voltages | 0.50; 2.50 V |
| \(V\) | Measured voltage | 1.50 V |
| \(m\) | Calibration slope | 30 \(^{\circ}\)C/V |
| \(e\) | Reading minus reference | +1 \(^{\circ}\)C |
| \(x_{\mathrm{read}},x_{\mathrm{ref}}\) | Reading/reference | 51; 50 \(^{\circ}\)C |
| \(V_{\mathrm{in}},V_{\mathrm{ADC}}\) | Input/pin voltage | 10; 3.125 V |
| \(a\) | Attenuation | 0.3125 (unitless) |
| \(R_1,R_2\) | Divider resistors | 22; 10 k\(\Omega\) |
The divider is an ideal design example, not a complete protected input interface.
📚 Resources and Source Materials
- APMonitor: related Electrical Engineering lesson
- MCU Studio operating and measurement instructions
- Process Control project requirements
- Lecture reference 1: www.analog.com
- Instructor guide: preparation and assessment notes
This page combines the supplied lecture PowerPoint and speaker notes, one-page equation sheet, quiz and solution key, student workbook, instructor guide, and applicable model data. The 50-minute lecture includes the 15-minute activity. Scheduling positions in the teaching plan do not change posted course due dates.