Analog and Digital Electronics

Chapter 12
Sensor, Actuator and Communication Interfaces

Bachelor Program in Mechatronics Engineering
Analog and Digital Electronics   •   Bachelor

Sensor, Actuator and Communication Interfaces

Introduction

Mechatronic systems depend on interfaces that connect physical variables, power devices, and digital controllers. A sensor interface converts temperature, position, pressure, light, force, or motion into a usable electrical signal. An actuator interface converts a controller command into controlled mechanical or physical action. A communication interface transfers measurements and commands between electronic subsystems while preserving signal integrity, timing, safety, and electromagnetic compatibility.

An interface is therefore more than a connector or protocol. It includes sensing or driving circuitry, amplification, filtering, protection, isolation, grounding, power delivery, voltage-level compatibility, timing, wiring, and software interpretation. Poor interface design can produce inaccurate measurements, intermittent communication, unsafe actuator behavior, or permanent component damage.

This chapter develops practical design principles for signal conditioning, isolation, protection, actuator driving, and UART, SPI, I²C, and CAN communication. Industrial interfaces and grounding practices are also considered.

Learning objectives

By the end of this chapter, a student should be able to:

  1. Explain the electrical requirements of common sensor and actuator interfaces.
  2. Design basic amplification, filtering, protection, and level-translation circuits.
  3. Select suitable transistor, MOSFET, relay, bridge, and flyback arrangements for actuators.
  4. Distinguish UART, SPI, I²C, and CAN in terms of wiring, timing, addressing, robustness, and application.
  5. Apply grounding, shielding, galvanic isolation, termination, and electromagnetic-compatibility principles.
  6. Analyze an interface using voltage, current, impedance, timing, and power constraints.
  7. Identify safety, reliability, regulatory, and maintenance implications of interface choices.

1. The interface signal chain

A typical mechatronic signal chain is:

physical variable → sensor → protection → signal conditioning → ADC or communication device → controller → driver → actuator → mechanical process

The sensor output may be a voltage, current, resistance, frequency, pulse train, digital word, or differential signal. The interface must satisfy four conditions:

  • Range: the signal must remain within the receiving circuit’s voltage and current limits.
  • Bandwidth: the interface must pass required changes while rejecting unwanted noise.
  • Accuracy: gain, offset, linearity, loading, and reference errors must be acceptable.
  • Reliability: transients, wiring faults, electrostatic discharge, temperature, vibration, and electromagnetic interference must be tolerated.

A useful design sequence is to specify the physical variable and required accuracy first, then determine sensor range, conditioning, conversion, communication, protection, and actuator power requirements. Selecting a protocol before defining these requirements often produces an unnecessarily complex or unreliable design.

2. Sensor signal conditioning

2.1 Resistive and voltage-output sensors

A resistive sensor can be placed in a voltage divider. For a sensor resistance Rₛ in series with a known resistor Rᵣ across supply voltage Vcc, the sensor voltage is

Vₛ = Vcc × Rₛ/(Rₛ + Rᵣ)

Here Vₛ is the divider output in volts and all resistances are in ohms. This equation assumes negligible loading by the next circuit. If the ADC input resistance is not very large, its resistance must be included as a parallel resistance with the lower divider element.

A divider is simple but has limitations. Its sensitivity depends on the operating point, its output impedance varies with resistance, and supply variation changes the output unless a ratiometric ADC or regulated supply is used. Thermistors, strain gauges, and potentiometers frequently require amplification because their raw voltage changes are small.

2.2 Amplifiers and loading

An ideal non-inverting operational-amplifier circuit has gain

Aᵥ = Vout/Vin = 1 + Rf/Rg

where Rf is the feedback resistor and Rg connects the inverting input to the reference node. The expression assumes negative feedback, operation within the amplifier’s output-voltage range, adequate gain-bandwidth product, and negligible input bias and offset errors. A differential or instrumentation amplifier is preferred when the desired signal is the small difference between two voltages riding on a larger common-mode voltage.

The common-mode voltage is the average of the two input voltages:

Vcm = (V₁ + V₂)/2

The differential signal is Vd = V₁ − V₂. An amplifier must support both Vd and Vcm within its specified input range. A high common-mode rejection ratio (CMRR) reduces conversion of common interference into a differential measurement. CMRR is commonly expressed in decibels:

CMRR(dB) = 20 log₁₀(Ad/Ac)

where Ad is differential gain and Ac is common-mode gain. The formula applies to linear small-signal gains at a stated frequency; CMRR usually decreases with frequency.

2.3 Filtering and anti-aliasing

A first-order RC low-pass filter has cutoff frequency

fc = 1/(2πRC)

where R is resistance in ohms, C is capacitance in farads, and fc is in hertz. At the cutoff frequency the magnitude is approximately 0.707 of the low-frequency magnitude, corresponding to −3 dB. The filter attenuates higher-frequency noise but also delays and smooths rapid changes.

Before sampling with an ADC, frequencies above half the sampling frequency can alias into the measurement band. The Nyquist condition requires the signal bandwidth to be less than half the sampling frequency, but practical systems also use an analog anti-aliasing filter because real signals and noise are not perfectly band-limited.

For a first-order filter, the time constant is

τ = RC

A step response reaches approximately 63.2% of its final change after one time constant and approximately 99.3% after five time constants. This provides an intuitive way to judge whether filtering is compatible with control-loop response.

2.4 Current-loop interfaces

Industrial sensors often use 4–20 mA because current is less affected by voltage drop and electromagnetic pickup over long cables. The live-zero value of 4 mA permits zero measurement to be distinguished from an open circuit or loss of power. If a transmitter maps a measured variable x from xmin to xmax into current I, then

I = 4 mA + 16 mA × (x − xmin)/(xmax − xmin)

This linear mapping assumes a correctly calibrated transmitter and a valid measurement range. A receiving resistor converts current to voltage:

V = I R

For example, a 250 Ω precision resistor produces 1–5 V from a 4–20 mA signal. The resistor power at 20 mA is P = I²R = 0.02² × 250 = 0.10 W, so a resistor with suitable tolerance and power rating is required.

2.5 Protection of sensor inputs

Protection should be placed close to the connector or cable entry. Common elements include series resistors, resettable fuses, transient-voltage suppressors, steering diodes, RC filters, and common-mode chokes. A series resistor limits fault and clamp current, but excessive resistance creates offset through input bias current and interacts with input capacitance.

A clamp diode is useful only when the downstream circuit can safely absorb the resulting current. A TVS diode must have a working standoff voltage above the normal signal range, a suitable clamping voltage below the protected circuit’s absolute maximum rating, and sufficient surge-energy capability. Protection components do not replace correct creepage, shielding, fusing, or enclosure design.

3. Actuator driver circuits

3.1 Low-side MOSFET switching

A logic-level N-channel MOSFET is commonly used as a low-side driver for a solenoid, relay coil, lamp, or DC motor. The load connects to the positive supply; the MOSFET connects the load return to ground. A gate resistor limits transient gate current and a gate-to-source resistor ensures turn-off when the controller is reset.

For a resistive approximation, MOSFET conduction loss is

Pcond = I²RDS(on)

where I is load current and RDS(on) is the on-state drain-source resistance at the specified gate voltage and temperature. The data-sheet value must not be assumed valid at every gate voltage or temperature. Switching loss becomes important at high frequency and depends on voltage, current, transition time, and switching frequency.

Inductive loads store energy. When current is interrupted, the inductor attempts to maintain current and can generate a destructive voltage. A flyback diode placed across a DC coil provides a current path. The diode orientation is reverse-biased during normal operation and forward-biased when the switch turns off. A diode gives slow current decay; a TVS clamp or an appropriately designed RCD network can produce faster release where actuator response matters.

3.2 High-side drivers and bridges

A high-side switch disconnects or supplies the positive rail and is useful when the load must remain near ground or when ground switching is undesirable. P-channel MOSFETs simplify some low-current high-side circuits; N-channel devices provide lower resistance but often require a high-side gate driver.

An H-bridge drives a DC motor in both directions. The controller must prevent both transistors in one half-bridge from being on simultaneously, a fault called shoot-through. Dead time is inserted between turning one device off and the complementary device on. Motor current can be controlled using pulse-width modulation (PWM), but switching frequency, current ripple, acoustic noise, thermal dissipation, and electromagnetic emissions must be evaluated.

3.3 Relays, solenoids, and safety

Relays provide galvanic separation between control and load circuits and can switch AC or DC, but contacts wear, bounce, and have limited switching ratings. Solid-state drivers offer long life and fast switching but may leak current, dissipate heat, or fail short-circuit. A safety-related actuator must have a defined de-energized state, fault detection where required, and an emergency-stop architecture independent of ordinary software commands.

4. Isolation, grounding, and level translation

4.1 Galvanic isolation

Galvanic isolation prevents direct conductive current between two circuits while allowing energy or information transfer. Digital isolators use capacitive or magnetic coupling; optocouplers use light. Isolated DC–DC converters provide isolated power. Isolation is used to interrupt ground loops, protect users, separate hazardous voltages, and tolerate different ground potentials.

Important specifications include working voltage, surge voltage, insulation type, creepage, clearance, common-mode transient immunity, propagation delay, and isolation capacitance. Isolation is not automatically safety isolation: the complete system, PCB layout, enclosure, barriers, and certification must satisfy the applicable standard.

4.2 Grounding and shielding

Ground is a reference, not necessarily an equipotential surface. Two devices connected by a cable may have different ground potentials because of resistance, inductance, supply currents, or nearby power equipment. A ground loop can convert these differences into unwanted signal current.

Best practice includes separating high-current actuator returns from sensitive analog returns, joining returns deliberately at a suitable point, using differential signaling for long connections, and routing cable shields according to frequency and safety requirements. A shield is not a substitute for a signal return. Shield termination at one or both ends depends on the interference spectrum, cable construction, and system bonding strategy; it should be selected by measurement and applicable EMC practice rather than by an unconditional rule.

4.3 Logic-level translation

A 5 V output is not necessarily safe for a 3.3 V input. Translation may use a resistor divider for a slow, unidirectional signal; a buffer with tolerant inputs for robust logic; or a bidirectional open-drain translator for buses such as I²C. The receiving input’s VIH, VIL, maximum voltage, leakage current, rise time, and threshold hysteresis must be checked.

A divider with resistors R₁ and R₂, where R₁ is connected to the source and R₂ to ground, gives

Vout = Vin × R₂/(R₁ + R₂)

The equation assumes a high-impedance load. Input leakage and switching speed impose practical limits. Never use a passive divider to translate a bidirectional bus unless its behavior has been analyzed for both directions.

5. Serial communication interfaces

5.1 UART

UART is an asynchronous point-to-point interface. A typical frame contains one start bit, 5–9 data bits, an optional parity bit, and one or more stop bits. The receiver uses the agreed baud rate to sample the frame; no clock wire is exchanged. Both devices must share a compatible signal reference unless an isolated or differential physical layer is used.

UART is simple and inexpensive, but it has no inherent addressing, arbitration, collision recovery, or error correction beyond optional parity. RS-232 uses defined voltage levels and polarity different from logic-level UART. RS-485 is a differential physical layer that can support multidrop networks and much greater noise immunity than single-ended UART, but it requires transceivers, termination, biasing, and a protocol above the physical layer.

5.2 SPI

SPI normally uses a clock, controller-out/controller-in data, and one or more chip-select lines. It is synchronous and usually full-duplex. Devices may support different clock polarity and phase modes. SPI offers high speed and simple hardware but has no universal addressing, so each slave commonly requires a separate chip select. Long cables create transmission-line and ground-reference problems; SPI is primarily a board-level interface.

Signal integrity depends on edge rate, not only clock frequency. Series damping resistors, controlled routing, a continuous reference plane, short connections, and suitable termination can reduce ringing and crosstalk.

5.3 I²C

I²C uses open-drain SDA and SCL lines with pull-up resistors. Devices pull a line low but do not actively drive it high. This permits wired-AND arbitration and acknowledgment. The bus capacitance and pull-up resistance determine the rise time. For a simplified RC approximation, the 30–70% rise time is approximately

tr ≈ 0.8473 RpCb

where Rp is pull-up resistance in ohms, Cb is total bus capacitance in farads, and tr is in seconds. This approximation assumes a simple lumped bus and does not replace the relevant electrical specification.

A smaller Rp gives faster rising edges but increases low-level current. When a device pulls the line low, the approximate current is I = Vcc/Rp, so the device’s low-level sinking capability must be respected. I²C includes addressing and acknowledgment, but address conflicts, bus hangs, excessive capacitance, and clock stretching require system-level handling.

5.4 CAN

CAN is a differential, message-oriented bus designed for robust distributed control. Nodes compete using nondestructive bitwise arbitration: the dominant bit overrides the recessive bit, and a node that transmits recessive while observing dominant withdraws. This allows the message with the highest priority to continue without corrupting the frame.

A CAN bus normally uses a twisted pair, appropriate transceivers, and termination at both physical ends. A common termination arrangement is two 120 Ω resistors, one at each end; a meter measuring the unpowered bus may therefore read approximately 60 Ω when no other parallel paths are present. Termination should not be placed at every node.

CAN frames include identifiers, data, acknowledgment, cyclic redundancy checking, error detection, and fault confinement. CAN-FD extends the data phase and can use a faster data bit rate than the arbitration phase, subject to transceiver, wiring, and network constraints. CAN is not automatically a safety system; functional safety requires a complete hazard analysis, diagnostics, timing analysis, and appropriate standards.

6. Industrial interfaces and system integration

Industrial systems commonly use 24 V discrete I/O, 4–20 mA, pulse or frequency signals, RS-485, and fieldbus networks. Industrial inputs often include reverse-polarity protection, surge suppression, filtering, and thresholds designed for long cables. Outputs may be sourcing (PNP) or sinking (NPN), and the distinction must match the input wiring convention.

Interface selection should consider distance, topology, update rate, deterministic timing, power availability, environmental exposure, maintenance skill, and failure behavior. A high-speed board-level bus may be inferior to a slower differential network in a factory with motors and variable-frequency drives.

A robust design includes:

  • documented voltage, current, timing, and connector requirements;
  • fault-current limiting and replaceable protection where appropriate;
  • separation of extra-low-voltage and hazardous circuits;
  • controlled cable routing and shield termination;
  • diagnostic states for open circuit, short circuit, timeout, and invalid data;
  • watchdogs and defined startup outputs;
  • verification over temperature, supply tolerance, cable length, and electromagnetic stress.

7. Worked design examples

Example 1: Conditioning a potentiometer for an ADC

A 0–5 V potentiometer is connected to a 3.3 V ADC. A divider cannot safely translate the full range unless its output is limited. Choose R₁ = 5.1 kΩ from the potentiometer wiper to the ADC node and R₂ = 10 kΩ from the node to ground. The maximum ADC voltage is

Vout = 5 × 10/(5.1 + 10) ≈ 3.31 V

The result is close to, but slightly above, 3.3 V. Component tolerance and potentiometer output variation could violate the ADC limit. A safer design uses a ratio giving a nominal maximum below 3.3 V, for example R₁ = 5.6 kΩ and R₂ = 10 kΩ:

Vout = 5 × 10/(5.6 + 10) ≈ 3.21 V

A 100 nF capacitor at the ADC node forms a filter, but its effective cutoff depends on the Thevenin resistance of the divider. The source resistance is approximately R₁ ∥ R₂ = 3.59 kΩ, giving fc ≈ 1/(2π × 3.59 kΩ × 100 nF) ≈ 443 Hz. The ADC acquisition-time specification must still be checked.

Example 2: Driving a solenoid

A 24 V solenoid draws 0.8 A. A MOSFET with RDS(on) = 0.08 Ω at the actual gate voltage is selected. The approximate steady conduction loss is

Pcond = 0.8² × 0.08 = 0.0512 W

This is modest, but switching loss, thermal resistance, fault current, and transient voltage must also be considered. A flyback diode rated for at least the coil current and suitable reverse voltage is connected across the coil. The controller output drives the gate through a resistor, and a gate-to-source pull-down ensures that the solenoid remains off during reset.

8. Illustrative case: conveyor inspection cell

Background. An illustrative conveyor cell uses a photoelectric sensor, a rotary encoder, a pneumatic solenoid, and a controller located three metres from the machine panel. A variable-frequency motor produces substantial electrical noise.

Problem. The photoelectric sensor occasionally reports false parts, the encoder loses counts, and the controller resets when the solenoid switches.

Analysis. The sensor’s single-ended output shares a return conductor with the solenoid current. The encoder cable is unshielded and runs beside motor wiring. The solenoid lacks a flyback suppressor. The controller’s 3.3 V input is also connected directly to a 5 V auxiliary signal.

Approach. The redesign uses a shielded, twisted differential encoder connection and a suitable line receiver. The sensor input receives a connector-side transient suppressor, series resistance, and a low-pass filter selected so that legitimate part transitions are preserved. The solenoid is driven by a logic-level MOSFET with a flyback diode and a separate, fused actuator return. A compliant level translator separates the 5 V and 3.3 V logic domains. The controller and field wiring are bonded according to the panel’s EMC design, while sensitive analog returns are kept away from high-current switching paths.

Outcome. The redesign removes the principal current and voltage transients rather than attempting to correct corrupted data in software. Verification includes oscilloscope measurements at the receiver, worst-case supply testing, repeated solenoid operation, cable-flex testing, and electromagnetic-immunity testing.

Learning points. Interface reliability is a system property. Filtering cannot compensate for incorrect grounding, software cannot safely replace a missing actuator clamp, and a protocol choice cannot correct an unsuitable physical layer.

9. Limitations, safety, and contemporary practice

No interface is universally best. Analog signals can provide high resolution but require calibration and noise control. Digital buses simplify data integrity and diagnostics but introduce address, timing, firmware, and network-management dependencies. Isolation improves safety and noise immunity but adds propagation delay, cost, power consumption, and possible failure modes.

Engineers must follow applicable electrical-safety, EMC, machinery, functional-safety, and communication standards. The exact standard depends on the product, voltage, environment, and jurisdiction. Risk assessment should address foreseeable misuse, single faults, loss of communication, corrupted measurements, actuator runaway, and maintenance access.

Contemporary designs increasingly use smart sensors, IO-Link, CAN-FD, Ethernet-based industrial networks, and embedded diagnostics. AI may assist predictive maintenance by identifying abnormal current, vibration, or communication patterns, but it does not remove the need for deterministic protection, validated thresholds, cybersecurity, or fail-safe hardware. Data quality, timestamp integrity, sensor drift, and explainability remain important when machine-learning models influence maintenance or control decisions.

Chapter Summary

Sensor interfaces transform physical quantities into safe, accurate, and appropriately filtered electrical signals. Voltage dividers, operational amplifiers, instrumentation amplifiers, current loops, and RC filters are basic tools, but their assumptions—loading, bandwidth, common-mode range, tolerance, and sampling constraints—must be checked. Actuator interfaces require suitable switches, gate control, thermal analysis, inductive-load suppression, and safe startup behavior.

Isolation separates grounds and hazardous domains but must be designed using voltage, clearance, creepage, transient, and timing requirements. Grounding and shielding must control return-current paths and electromagnetic interference. UART is a simple asynchronous point-to-point method; SPI is fast and synchronous but mainly local; I²C provides a shared open-drain bus with pull-ups and capacitance limits; CAN provides robust differential, prioritized, error-managed communication for distributed control. Industrial interfaces emphasize long-distance reliability, diagnostics, protection, and maintainability. Good designs treat circuit, wiring, firmware, mechanics, safety, and EMC as one integrated system.

Key Terms

Sensor conditioning: Electrical processing that makes a sensor signal suitable for measurement.

Instrumentation amplifier: A precision differential amplifier with high input impedance and high common-mode rejection.

Common-mode voltage: The average voltage present at two differential inputs.

CMRR: The ratio of differential gain to common-mode gain, usually expressed in decibels.

Anti-aliasing filter: An analog filter that limits signal bandwidth before sampling.

Live zero: A nonzero minimum signal, such as 4 mA, used to distinguish zero measurement from circuit failure.

Flyback diode: A diode that provides a current path when an inductive load is switched off.

RDS(on): MOSFET drain-source resistance in the conducting state.

Shoot-through: Simultaneous conduction of complementary switches in a half-bridge.

Galvanic isolation: Separation that prevents direct conductive current between circuits.

Creepage: Surface distance between conductive parts across an insulating material.

Clearance: Shortest distance through air between conductive parts.

Ground loop: An unintended or undesired current path formed by multiple ground connections.

Level translation: Conversion between incompatible logic-voltage domains.

UART: An asynchronous serial communication peripheral.

SPI: A synchronous serial peripheral interface using clock and data lines.

I²C: An addressed, open-drain, two-wire serial bus.

CAN: A differential, message-oriented, arbitration-based control network.

Termination: Impedance placed at a transmission-line end to reduce reflections.

EMC: Electromagnetic compatibility, including both emissions and immunity.

Review Questions

Short Answer Questions

  1. Why is a 4–20 mA signal often preferred to a voltage signal for long industrial cables?
  2. What is the purpose of a flyback diode across a solenoid coil?
  3. Define common-mode voltage and explain why it matters in differential measurement.
  4. Why must I²C pull-up resistance be selected in relation to bus capacitance?
  5. What is the purpose of termination at the ends of a CAN bus?

Long Answer Questions

  1. Explain the complete design process for conditioning a resistive sensor for an ADC, including loading, filtering, protection, calibration, and sampling.
  2. Compare low-side MOSFET, high-side MOSFET, relay, and H-bridge actuator drivers.
  3. Compare UART, SPI, I²C, and CAN in wiring, timing, addressing, robustness, and typical applications.
  4. Explain how grounding, shielding, isolation, and cable routing influence electromagnetic compatibility.
  5. Develop a protection and diagnostic strategy for an industrial 24 V actuator output.

Analytical / Application Questions

  1. A 0–10 V sensor must be connected to a 0–3.3 V ADC. Select a divider ratio, calculate the nominal output at 10 V, and discuss resistor tolerance, input loading, filtering, and overvoltage protection.
  2. A CAN installation has three termination resistors distributed along the cable. Predict the effect on measured resistance and signal quality, and propose a corrected physical layout.
  3. A motor driver resets whenever a nearby solenoid turns off. Analyze possible conducted and radiated causes, then propose circuit, grounding, layout, and measurement actions to isolate the fault.

Multiple Choice Questions with Answers

Question 1

A 4–20 mA transmitter outputs 12 mA over a 0–100 °C range. What temperature is represented, assuming linear mapping?

A. 25 °C

B. 50 °C

C. 60 °C

D. 75 °C

Correct Answer: B. 50 °C

Question 2

What is the principal purpose of a flyback diode across a DC solenoid?

A. To increase coil resistance

B. To provide a path for inductive current when switching off

C. To convert DC into AC

D. To increase the controller clock frequency

Correct Answer: B. To provide a path for inductive current when switching off

Question 3

For a non-inverting amplifier with Rf = 9 kΩ and Rg = 1 kΩ, what is the ideal voltage gain?

A. 0.9

B. 9

C. 10

D. 11

Correct Answer: C. 10

Question 4

Which interface normally uses open-drain lines and pull-up resistors?

A. UART

B. SPI

C. I²C

D. RS-232

Correct Answer: C. I²C

Question 5

What happens in CAN arbitration when a node transmits recessive but observes dominant?

A. It increases its transmission speed

B. It withdraws from arbitration

C. It disables the bus permanently

D. It changes its identifier automatically

Correct Answer: B. It withdraws from arbitration

Question 6

Two 120 Ω CAN termination resistors are correctly connected at the bus ends. What resistance is approximately measured across an unpowered bus, ignoring other paths?

A. 30 Ω

B. 60 Ω

C. 120 Ω

D. 240 Ω

Correct Answer: B. 60 Ω

Question 7

For an RC low-pass filter, increasing capacitance while resistance remains constant will generally:

A. Increase cutoff frequency

B. Decrease cutoff frequency

C. Eliminate all DC signals

D. Reverse signal polarity

Correct Answer: B. Decrease cutoff frequency

Question 8

Which circuit is most directly intended to prevent simultaneous conduction in complementary bridge switches?

A. A pull-up resistor

B. Dead-time control

C. A parity generator

D. A current-loop receiver

Correct Answer: B. Dead-time control

Question 9

A passive resistor divider used for logic translation is most appropriate when the signal is:

A. Slow and unidirectional with a high-impedance receiver

B. Bidirectional and open-drain at high speed

C. A hazardous mains waveform

D. A high-current motor phase

Correct Answer: A. Slow and unidirectional with a high-impedance receiver

Question 10

Which feature distinguishes SPI from I²C in many typical implementations?

A. SPI commonly uses separate chip-select lines rather than bus addressing

B. SPI always uses differential signaling

C. SPI requires pull-up resistors on every data line

D. SPI provides built-in nondestructive arbitration

Correct Answer: A. SPI commonly uses separate chip-select lines rather than bus addressing

Analog and Digital Electronics
Chapter 12 of 15