Académique Documents
Professionnel Documents
Culture Documents
5.1 Configuration
For a complex computer-controlled system (e.g. a flight control system for a fly-by-wire aircraft) there are two
approaches for computer configuration:
Centralised control: all operations are performed by one centralised computer. This is the traditional
method.
Distributed control: small micro-processor based computers are distributed around the system with
individual responsibilities (e.g. controlling one actuator). Usually there is a centralised supervisory
computer as well. Communication is via a serial data bus.
Simpler mechatronic computer control systems which require just one microprocessor are often called embedded
real-time systems. The term embedded indicates that they are fully integrated into the machine, and real-time
means that they respond to changes in sensor readings as soon as they occur. Engine management units and
washing machine controllers are examples of embedded real-time systems. An actuator with its own local
controller (i.e. an 'intelligent actuator') is another example, even if it is part of a larger control system.
Almost all control computers are based around a microprocessor. For simple tasks a special type of
microprocessor called a microcontroller can be used. This is a single-chip computer, with processor, memory
and interfacing on one chip. For example they are used in controllers for domestic appliances, automatic
cameras, and smart sensors (i.e. sensors with their own embedded computers for pre-processing sensor signals).
5.2 Overview
The following diagram gives an overview of the computer interfacing process
Two common example of this process in the automotive field are sensing wheel speed (this may be used in a
traction control system) or engine speed, and sensing the temperature of a cylinder or the temperature of the
coolant. These measurements are teated as inputs for the engine control system (ECU), which makes use of
them to determine engine spark advance and fuel injection timing. Sensing the engine or wheel speed uses a
digital sensor, and sensing the temperature uses an analogue sensor, as shown in the following diagrams:
Serial signals are used to communicate between different computers in a distributed system. A computer will
communicate with sensors and actuators in any of the above three ways depending on what type of sensors or
actuators they are. For example stepper motors are controlled by serial digital signals, and incremental optical
encoders provide positional information via serial digital signals as well. Most other actuators and sensors
operate with analogue signals, in which case the control computer needs an analogue interface to convert
between these signals and the binary digital signals used by the computer itself.
The following figure illustrates the three ways in which information may be communicated; it considers a sensor
transmitting the number eleven (1011 in binary) to a computer:
Communication using
parallel digital signal:
5V (1) Computer
0V (0)
5V (1) Parallel
Sensor Interface Binary number
5V (1)
1011
Communication using
analogue signal:
Computer
11V
Analogue
Sensor to digital Binary number
converter
1011
An ADC is used to read an analogue signal and convert it into a binary digital signal which can be used by a
computer. An ADC can be on a plug-in computer expansion board (e.g. for a PC), or on the same chip as the
microprocessor in the case of some microcontrollers.
A DAC converts a binary digital signal into an analogue signal. DACs are specified in a similar way to ADC's:
Number of 'bits': e.g. a 12-bit DAC converts a 12-bit binary number into an analogue signal.
As 212 =4096, the binary number has to be in the range 0 to 4095.
Output range: typical ranges are 10V (i.e. -10V to +10V), and 0 to 10V. The former
would be called bipolar, the latter unipolar.
Settling time: time delay before the analogue signal is valid, e.g. 10s.
Counters are devices which electronically count pulses and generate a binary number equal to the count value as
required by a computer. Counters are specified in terms of:
Number of 'bits': e.g. a 12-bit counter can count a maximum of 212-1, or 4095, pulses.
Maximum count rate: e.g. a 100kHz counter can count a maximum of 100 000 pulses per second.