Robotics Section 4 LV
Robotics Section 4 LV
SECTION
4 DIGITAL AND
ANALOGUE SYSTEM
DESIGN 1
1
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Introduction
Welcome to the exciting world of electronic circuit design, a fundamental aspect of
both digital and analogue systems. Electronic circuits are the backbone of modern
technology, enabling everything from simple household gadgets to complex robots
and sophisticated communication systems. Understanding the components of an
electronic circuit and their functions would help you acquire knowledge on the various
components of an electronic circuit. It is crucial for anyone interested in robotics,
automation, or any field that relies on electronic devices to go through this indicator.
In robotics, electronic systems are essential for controlling and coordinating different
components to complete specific tasks. Block diagrams are useful tools that provide a
clear and simple way to represent these complex systems.
In this lesson you will learn that digital technology generates, stores, and processes
data in terms of positive and nonpositive states, represented by the number 1 and the
number 0. Data is transmitted or stored as a string of 0s and 1s, each referred to as a
bit, and a byte is a string of bits a computer can address individually. Before the digital
age, electronic transmission was limited to analogue technology, which conveyed data
as electronic signals of varying frequency or amplitude added to carrier waves. This
lesson also aims to critically analyse analogue and digital systems and their relation
to discrete and continuous-time machine designs. Digital systems use binary digits (0s
and 1s) and logic gates to process discrete signals, enabling precise control and decision-
making in devices like computers and smartphones. Analog systems use components
like resistors, capacitors, and operational amplifiers to interface with sensors and
manage real-time control. Through hands-on activities, learners will build and analyse
circuits, compare digital and analogue systems, and classify machines based on their
inputs and outputs.
2
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Key Ideas:
• Passive components such as resistors, capacitors, and inductors manage energy
within circuits, crucial for voltage regulation, signal filtering, and energy storage.
Active components like diodes, transistors, and integrated circuits play pivotal roles
in signal amplification, current control, and digital logic operations, enabling complex
functionalities in electronic systems. Specialised components such as relays and circuit
breakers facilitate the control and protection of electrical circuits, while LEDs offer
energy-efficient illumination. Understanding the functions and applications of these
components, reinforced by analogies and hands-on practice, forms a solid foundation
for effective electronic circuit design and troubleshooting.
• Block diagrams are visual representations that use simple blocks to depict different
components of an electronic system and their connections, making it easier to understand
complex electronic systems. These diagrams highlight system inputs and outputs, where
inputs are the signals or data received by the system, and outputs are the actions or
data generated by the system. In electronic systems, interconnected components like
sensors and actuators play crucial roles; sensors gather environmental data (inputs),
while actuators execute physical actions (outputs) based on control signals from the
microcontroller. The microcontroller serves as the control block, processing inputs
and generating outputs to manage the system. Schematic diagrams complement block
diagrams by providing detailed symbolic representations of electronic circuits, showing
precise connections between components. Understanding the flow of information,
illustrated by arrows in block diagrams, is essential for grasping how different functional
blocks interact and how the system operates as a whole.
• Implement electronics circuits and understand the layout of a breadboard and correctly
assemble circuits using components like resistors, LEDs, power cells and transistors.
• Use a digital multimeter to measure voltage, current, and resistance in circuits, following
safety precautions.
• Digital systems use binary digits (0s and 1s) for precise control and decision-making.
• Digital systems operate on discrete signals using binary digits.
• Logic gates (AND, OR, NOT, etc.) are the building blocks of digital circuits.
• Key components include microcontrollers, finite-state machines, timers, and pulse-
width modulation.
• Analogue systems work with continuous signals, representing real-world quantities like
sound or temperature.
• Analogue systems handle continuous signals and interface with real-world sensors.
• Key components include resistors, capacitors, and operational amplifiers (op-amps).
• These components perform functions like amplification, filtering, and signal processing.
3
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Practical Applications
Imagine you want to build a robot. To make it move, sense its environment, and interact
with the world, you’ll need to design circuits that control motors, process sensor data,
and manage power. Each of these tasks requires a solid understanding of electronic
components. By mastering this knowledge, you’ll be equipped to bring your robotic
creations to life and troubleshoot any issues that arise.
Resistors Diodes
Capacitors Transistors
Passive components
Passive components are electronic components that do not require an external power
source to operate. They cannot introduce energy into the circuit; instead, they consume,
store, and release energy in the form of electrical or magnetic fields.
4
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
1. Resistors are passive components that limit and regulate the flow of electrical
current. This is achieved by reducing the current which helps to control voltage
levels in a circuit.
5
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
3. Inductors: Inductors store energy in the form of a magnetic field and are used in
filtering and energy storage applications. They resist changes in current flow and
play a crucial role in AC circuits.
6
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Active Components
Active components are electronic components that require an external power source
to operate. They can introduce energy into the circuit and are capable of controlling
current flow.
1. Diodes: Diodes are semiconductor devices that allow current to flow in one
direction only. They are used in rectification, voltage regulation, and signal
demodulation.
7
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Relays are simply switches that are used to control flow of voltage in circuits and
operate electromechanically. They allow a low-power signal to control a high-
power circuit, which is useful for applications where a low-power signal, such
as from a microcontroller, needs to control a high-power device like a motor or a
heater.
5. LED (Light Emitting Diode): An LED is a semiconductor device that emits
light when an electric current passes through it. It consists of a semiconductor
8
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Summary table
Passive Pictures/Symbol Functions
Components
9
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Active
Components
10
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Active
Components
11
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Active
Components
Activity 4.1
3. The image is a printed circuit board with electronic components soldered on.
Examine the image keenly.
12
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
4. After watching the video and examining the image provided above, perform
the following tasks:
a. List 10 electronic components you observed when you watched the video
and on examining the picture
b. Draw the circuit symbols of all components identified and listed
c. Group the various components as passive or active
d. State a function of each of the component listed
e. Discuss your answers with a classmate
ELECTRONIC SYSTEMS
An electronic system is a collection of interconnected electronic components that work
together to perform a specific function or set of functions. These components include
devices like resistors, capacitors, transistors, integrated circuits, and microcontrollers.
They work together to process signals, control processes, and manage information. For
example, your smartphone is an electronic system that handles communication, internet
browsing, photography, and many other tasks through its various interconnected parts.
In robotics, electronic systems are responsible for receiving input from sensors
(like cameras, microphones, and touch sensors), processing this information using
processors and microcontrollers, and then sending commands to actuators (like
motors and servos) to perform actions. For instance, in a robotic arm, an electronic
system processes the input from sensors that detect the position of the arm and sends
commands to the motors to move the arm precisely. This allows robots to perform tasks
like assembling parts, picking and placing objects, or even performing surgery with
great accuracy.
13
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
The recipe breaks down the process of cooking into steps, much like how flowcharts
represent processes. This simple flowchart diagram demonstrates how breaking down
a task into clear, sequential steps can help us understand and complete complex
processes. In the same way, engineers use flowcharts to plan and manage tasks in
robotics.
Block Diagrams
A block diagram is a visual map that simplifies an electronic system by breaking it into
functional blocks connected by arrows. Each block represents a specific function or
component, such as a microcontroller, sensor, or motor driver. The arrows show the
direction of signal flow between these blocks, illustrating how the system operates.
For example, a block might represent a microcontroller, sensor module, or motor
driver. The arrows between blocks indicate the direction of information or signal flow
between different subsystems. A block diagram could break down the elements of an
audio system. It could show how the power supply unit interacts with the audio mixer
and the audio power amplifier to project sound through a loudspeaker.
1. System inputs
Inputs represent the information or signals that enter the electronic system from
external sources. These inputs can come from sensors, user interfaces, or other
connected devices. In a block diagram, inputs are typically shown as arrows
entering the respective blocks.
14
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
2. System outputs
Outputs represent the results, actions, or data generated by the electronic system
and sent to external components or devices. Outputs can control motors, display
information, or communicate data to other systems. In block diagrams, outputs
are typically shown as arrows leaving the respective blocks.
1. Sensing block
This block represents the sensors used in the robot to perceive the environment.
Sensors could include cameras, ultrasonic sensors, or infra-red sensors.
2. Control block
The control block houses the microcontroller or microprocessor responsible for
processing sensor data and making decisions. It takes inputs from the sensing
block and generates control signals for the actuation block.
3. Actuation block
This block includes the actuators responsible for physical actions in the robot,
such as motors or servos. The actuation block receives control signals from the
control block and executes the required actions.
In building a robot that follows a line on the ground. A simple block diagram of such a
system will consist of the following:
1. The sensing block
2. The control block
3. The actuation block
The table below describes each and how it works
15
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
This block represents anything This is the robot’s brain! It These are the parts
that gathers information about receives the signal from the that make the robot
the robot’s environment. In sensor block (dark or light) move based on
our example, it might be a and decides what the robot the control block’s
light sensor that detects the should do next. It might be a instructions. In this
difference between the dark microcontroller, like a small case, it could be the
line and the brighter floor. computer, programmed to tell motors that turn the
The sensor block sends this the robot to turn its wheels if it robot’s wheels. The
information (dark or light) as goes off the line. control block sends a
a signal to the next block. signal (turn left, turn
right, or go straight)
to the actuator block,
which translates
that signal into
movement.
These blocks (sensing, control, and the actuation blocks) can be diagrammatically
represented using shapes that represent individual blocks as shown below.
Fig. 4.10 shows the block diagram representation of the robotic system with appropriate labels for each
block and arrows indicating signal flow between the blocks.
An arrow points from the Sensing Block to the Control Block, representing the flow
of information from the sensors to the micro controller for processing. Another arrow
points from the Control Block to the Actuation Block, symbolising the transmission
of control signals from the microcontroller to the actuators, directing their actions.
This Schematic block diagram provides a simplified representation of a robotic system,
emphasising the flow of information from sensing to processing and control, leading
to physical actions executed by the actuators. The block diagram format is an essential
tool for understanding and designing complex electronic systems in robotics.
From the block diagram, one can explain the functions of the blocks as follow:
• The sensor block sees the environment (dark or light).
• The control block thinks about what to do (turn or go straight).
• The actuator block acts on those instructions (moves the wheels).
• The arrows between the blocks show the flow of information:
• Sensor block sends a signal (dark or light) to the control block.
• Control block sends a signal (turn or go straight) to the actuator block.
16
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
A schematic diagram is like a detailed map for an electronic system. It shows how
various components, like resistors, capacitors, and transistors, are connected to each
other. Think of it as a blueprint that electricians and engineers use to understand and
build electronic circuits.
In a schematic diagram, each component is represented by a unique symbol. For
example, a resistor is shown as a zigzag line, while a capacitor is depicted as two parallel
lines. These symbols are connected by lines that represent electrical wires.
By using schematic diagrams, you can easily see how electricity flows through a
circuit, from the power source, through the components, and back again. This helps in
troubleshooting and designing circuits because it provides a clear and precise way to
understand the relationships and connections between different parts of the system.
In robotics, for example, a schematic diagram might show how sensors, processors,
and actuators are wired together. This allows engineers to visualize how a robot’s
electronic systems work and ensure that all parts are connected correctly to perform
tasks efficiently.
17
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
18
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Note: Some schematic diagrams might look more realistic, and some might just use
symbols to represent various components as demonstrated below.
The schematic diagram provided above shows a simple buzzer circuit. Let’s break
down the components and their connections:
• Battery (9V): The battery is represented with two parallel lines of different
lengths, and it acts as the power source for the circuit.
19
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
• Resistor (R1, 10k ohms): The zigzag line in the schematic diagram represents a
resistor which has a value of 10k ohm. The function of the resistor in the schematic
is to limit the current flowing through the circuit to protect other components.
• Switch: The switch is represented by an open gap with a line. The switch allows
the circuit to be completed or broken manually.
• SCR (Silicon Controlled Rectifier, C106B): A diode with a gate lead represents a
component known as the silicon-controlled rectifier. This diode with a gated lead
which acts as a switch that is controlled by the gate signal.
• Buzzer: The speaker-like icon in the schematic is used to represent the component
called the buzzer. The buzzer emits a sound when the circuit is activated.
Block diagrams use simple rectangular Schematic diagrams, on the other hand,
blocks to represent the main functional provide a detailed representation of the
parts of a system and arrows to show system. They use standardised symbols to
the connections and flow of information represent specific electronic components
between these parts. This provides a high- and show precise connections between
level overview of the system, helping them. This type of diagram serves as
to understand the structure and overall a blueprint for constructing the actual
function without getting into the specifics. electronic circuit, detailing every
component and its exact wiring.
20
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Activity 4.2
Analyse the block diagram (as shown above) of a robotic system and identify
sensors as inputs that collect environmental data (e.g., temperature, distance)
and actuators as outputs that execute physical actions (e.g., movement) based on
commands from the microcontroller.
Activity 4.3
21
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Activity 4.4
You may have encountered automatic doors at places like supermarkets, airports,
and office buildings. These doors open automatically when you approach them
and close after you pass through. But have you ever wondered how they work?
Here is a sample video on automatic door in operation:
ENOX AUTOMATIC SENSOR DOOR
Activity 4.5
In your group, brainstorm ideas for a simple robot your group would like to
build. Sketch a basic schematic diagram for your robot being sure to include the
necessary components and connections.
Share your ideas, explaining the function of your robot with your class.
22
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
THE BREADBOARD
A breadboard, sometimes called a prototype board, or solderless board, is a board on
which circuits can be implemented without the need to solder. The name breadboards
came about from the fact that engineers used bread-cutting boards to assemble
electronic circuits to implement and test their designs. The components were screwed
to the bread board and wired with Fahnestock clips, as shown below.
The breadboard consists of rows and columns connected internally as shown in the
diagram below. From left to right, the vertical strips by the red and blue vertical lines
are called the power rails or buses. These are usually marked with red (positive) and
blue or black (negative) lines. Power supplies are typically connected to the power rails
from which power is supplied to other circuits being prototyped on the board. There
are two sets of the power rails that sandwich terminal strips or component rails, and
they are internally connected horizontally. The component rails are used in connecting
components together.
23
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Materials
• 1 Breadboard
• 1 LED
• 1 470Ω Resistor
24
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
25
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
26
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
6. Double check to ensure all connections are secure and that there are no loose
wires.
7. Turn on the power supply. The LED should turn on if everything is connected
correctly
27
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Safety Precautions
Observe these safety precautions when using a multimeter:
1. Use the correct voltage and current settings.
2. Ensure proper probe use (red for positive, black for negative).
3. Check for residual voltage before measuring.
4. Verify and replace fuses as needed.
5. Keep hands and multimeter dry.
6. Inspect test leads regularly for damage.
One way in which you can know how your circuit is behaving is to monitor the circuits.
Circuits are monitored through measurement of electric properties components in
the circuit exhibit. Some of those physical properties include voltage, current and
resistance. To know the value of these quantities a multimeter is used to measure and
display the values.
28
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
https://www.
electronicshub.
org/current-
measurement-using-
multimeter/
29
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
4. Place Probes
• Touch the red probe to the anode (longer leg) of the LED.
• Touch the black probe to the cathode (shorter leg) of the LED or to the ground
rail.
5. Read Voltage
• The multimeter will display the voltage drop across the LED.
6. Turn Off Power Supply
• Once done, turn off the power supply.
7. Watch this video to see a practical example of how to measure voltage using a
multimeter. How to Measure Voltage with a Multimeter
Safety Tips
• Always start with the multimeter set to a higher voltage range and then move to a
lower range if needed.
• Avoid touching the metal parts of the probes while taking measurements to
prevent electrical shock.
• Make sure the probes are securely connected to the multimeter and the circuit to
avoid inaccurate readings or damage to the multimeter.
30
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Activity 4.6
In this activity, you will implement the circuit diagram given below on a
breadboard.
Precaution: Ensure to use the appropriate power rating and avoid short-circuits.
Handle all electronic components with care. Seek assistance from instructors
where necessary.
Light-Dependent LED Circuit with a Transistor
Materials Needed
• 1 Breadboard
• 1 Photoresistor
• 1 LED
• 1 NPN Transistor (2N2222)
• 1 470Ω Resistor
• 1 1kΩ Resistor
• 1 6V to 12V Power Supply (e.g., a battery pack or power adapter)
• Jumper Wires
• Digital Multimeter
31
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Steps
1. Place the Resistors on the Breadboard:
• Insert the 1kΩ resistor into the breadboard. One end should be in one row
and the other end in a different row.
2. Connect the Photoresistor:
• Insert the photoresistor into the breadboard so that one end is in the same
row as the 1kΩ resistor. The other end should be in a new row.
3. Connect the Transistor:
• Insert the transistor into the breadboard with its three terminals (collector,
base, emitter) in separate rows.
• Connect the junction of the 1kΩ resistor and the photoresistor to the base
of the transistor.
4. Connect the LED and 470Ω Resistor:
• Insert the LED into the breadboard, with the anode (longer leg) in one row
and the cathode (shorter leg) in another row.
• Connect one end of the 470Ω resistor to the row with the anode of the
LED and the other end to a new row.
• Connect the collector of the transistor to the row with the 470Ω resistor
and the anode of the LED.
5. Power Supply Connections:
• Connect the positive terminal (+) of the power supply to the row with the
470Ω resistor and LED anode.
• Connect the negative terminal (-) of the power supply to the emitter of the
transistor and to the row with the cathode of the LED.
32
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Activity 4.7
33
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Materials Needed
1. Arduino Uno
2. Breadboard
3. 2 NPN transistors (e.g., 2N2222)
4. 2 PNP transistors (e.g., 2N2907)
5. DC Motor
6. Resistors (1kΩ for base resistors)
7. Jumper wires
8. Power supply for the motor (e.g., 9V battery)
Circuit Assembly
1. Prepare the Breadboard:
• Place the NPN and PNP transistors on the breadboard.
2. Transistor Pin Configuration
• NPN Transistor (2N2222):
o Emitter (E)
o Base (B)
o Collector (C)
• PNP Transistor (2N2907):
o Emitter (E)
o Base (B)
o Collector (C)
3. Motor and Power Connections:
• Connect the motor terminals to the collectors of the NPN transistors.
• Connect the emitters of the NPN transistors to ground.
• Connect the emitters of the PNP transistors to the positive terminal of the
motor power supply.
• Connect the collectors of the PNP transistors to the motor terminals.
4. Base Resistor Connections:
• Connect a 1kΩ resistor between each base of the transistors and the
Arduino digital pins as follows:
o Arduino pin 1 to the base of NPN transistor 1
o Arduino pin 2 to the base of NPN transistor 2
o Arduino pin 3 to the base of PNP transistor 1
o Arduino pin 4 to the base of PNP transistor 2
Arduino Code
1. // Define pin numbers
2. const int pin1 = 1;
3. const int pin2 = 2;
4. const int pin3 = 3;
34
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
35
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Step-by-Step Guide
1. Assemble the Circuit
• Follow the circuit assembly instructions above, ensuring that all connections
are secure and correct.
• Double-check the connections to make sure there are no shorts or incorrectly
wired components.
2. Upload the Code
• Open the Arduino IDE on your computer.
• Copy and paste the provided code into the IDE.
• Connect the Arduino Uno to your computer using a USB cable.
• Select the correct board and port from the Tools menu.
• Click the Upload button to upload the code to the Arduino.
3. Test the Circuit
• Once the code is uploaded, the motor should start spinning in one direction.
• After 20 seconds, the motor should reverse direction.
• The motor will continue to alternate direction every 20 seconds.
Your circuit should look like the diagram below.
Activity 4.8
1. Turn on the power supply. Press the push buttons to see the motor’s response.
2. Measure the voltage at different points, such as across the motor terminals
and between the collector and emitter of the transistors.
3. Compare voltage readings across different groups and discuss the results.
36
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
4. Explain why the motor changes direction based on which button is pressed.
Discrete Signals
Discrete signals, which can only assume specific, separated values - such as on/off or
true/false - are central to digital systems. This characteristic differentiates them from
continuous signals, which can take on a continuous range of values. Recognising the
nature of discrete signals is essential for grasping the fundamentals of digital systems.
In contrast, continuous signals, which we’ll explore in subsequent sections, are integral
to analogue systems that operate with smoothly varying signals.
37
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Logic Gates
The operation of digital systems is fundamentally based on logic gates, which execute
essential logical operations by processing discrete signals. These gates are realised using
electronic components such as diodes, transistors, and resistors. While the symbols
for logic gates represent their logical functions, their actual implementation involves
configuring transistors in specific ways to perform operations like AND, OR, NOT,
and XOR. Understanding logic gates is crucial, as they form the building blocks of
digital circuits, enabling the execution of complex computations and decision-making
processes in digital systems.
AND Gate
For the output of an AND gate to be true (1) all its inputs must be true (1). If any input
is false (0), the output is false (0).
OR Gate
The OR gate outputs true (1) if at least one of its inputs is true (1). The output is false
(0) only if all inputs are false (0).
NOT Gate
The NOT gate, also known as an inverter, outputs the opposite of its input. If the input
is true (1), the output is false (0), and vice versa.
NAND Gate
The NAND gate is the inverse of the AND gate. It outputs false (0) only if all its inputs
are true (1). Otherwise, the output is true (1).
38
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
NOR Gate
The NOR gate is the inverse of the OR gate. It outputs true (1) only if all its inputs are
false (0). Otherwise, the output is false (0).
XOR Gate
The XOR (exclusive OR) gate outputs true (1) if its inputs are different. If both inputs
are the same, the output is false (0).
XNOR Gate
The XNOR (exclusive NOR) gate is the inverse of the XOR gate. It outputs true (1) if its
inputs are the same. If the inputs are different, the output is false (0).
Truth Tables
A truth table is a simple way to represent the operation of a logic gate. It lists all
possible input combinations and the corresponding output for each combination. The
combinations as per the number of inputs (n) are determined using the relation 2n .
For example, if a gate has three inputs (n=3), the number of ways you can combine the
inputs would be eight (23=2*2*2=8) as per the combination expression given. Here are
the schematics and truth tables for the basic logic gates:
39
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
40
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
meal – you need to know the final dish you are making, and the steps needed to
prepare it.
2. Find the Number of Inputs and Outputs
Next, you need to determine how many inputs and outputs your circuit will have.
Inputs are the signals or data you give to the circuit, and outputs are what the
circuit produces. This step is like listing the ingredients needed for your recipe –
you need to know what you have to work with.
3. Create a Truth Table
Once you know the number of inputs, you can create a truth table. A truth table
lists all possible combinations of inputs and the corresponding outputs for each
combination. The columns in the table represent the inputs and outputs. This table
helps you see how the circuit should behave for every possible input combination,
similar to following the cooking steps to see how each ingredient affects the final
dish.
4. Draw the Circuit Diagram
Finally, you draw the circuit diagram. This is a visual representation of your digital
circuit, showing how the different components (like logic gates) are connected.
Make sure your diagram matches the information in your truth table, with the
correct relationships between inputs and outputs. This step is like arranging the
ingredients on your plate, ensuring everything is in the right place to create the
final dish.
Example 1
In this example, we will design a digital circuit for a simple alarm system that turns on a
light. The system is made up of two (2) sensors and the light will be switched on when
either of two sensors detect motion.
Steps
Before you start, you need to know what the circuit is supposed to do. In this case, the
alarm system should turn on a light if either Sensor A or Sensor B detects motion. This
means the output (the light) should turn on if either input (Sensor A or Sensor B) is trig-
gered.
Determine the number of inputs and outputs for your circuit. Here, you have:
41
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Next, create a truth table that shows all possible combinations of inputs and the corre-
sponding output for each combination. This helps you understand how the circuit should
behave.
In this table:
Finally, draw the circuit diagram using the information from the truth table. You can iden-
tify the correct logic gate to use from the table above to create the circuit. In this case,
you need an OR gate because the light should turn on if one or both Sensors A and B,
detects motion. The OR gate outputs true if any of its inputs are true.
42
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
This circuit ensures that the light will turn on if either Sensor A or Sensor B detects
motion, just as specified.
1. Component Selection
This involves understanding the roles and functions of the three basic analogue
circuit elements; resistors, capacitors and the operational amplifiers.
a. Resistors
Resistors are components that limit the flow of electrical current. Here are some
key roles they play in analogue circuits.
i. Current Limiting: They prevent too much current from flowing in parts of
the circuit, protecting other components.
43
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
ii. Voltage Division: Resistors can divide voltage in a circuit, which helps in
regulating voltage levels.
iii.Biassing: They set the correct operating conditions for other components like
transistors.
iv. Load Resistance: In amplifier circuits, resistors help in properly amplifying
signals.
b. Capacitors
Capacitors store electrical charge and have several important uses in analogue
circuits:
i. Filtering: They block certain frequencies and allow others to pass, cleaning
up signals.
ii. Timing Elements: With resistors, determine the timing of signals in
oscillators and timers.
iii.Coupling: Capacitors pass AC signals between parts of a circuit while blocking
DC signals.
iv. Energy Storage: They store energy and help stabilise voltage during
fluctuations.
2. Circuit Design
Follow schematic diagrams to connect analogue components and create specific
analogue functions.
44
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Your teacher will guide you through the activity below to design an analogue
circuit from the circuit schematics shown.
Activity 4.9
45
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
46
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Discrete-Time System/Machine
A discrete-time system or machine processes discrete-time signals. It operates at
specific intervals rather than continuously. These systems take the values of a discrete-
time signal and use them to perform computations or make decisions at those specific
times.
For example, consider a digital clock. It updates the time display every second. The
system inside the clock reads the time signal (which is discrete because it updates at
each second) and changes the display accordingly.
Digital systems play a crucial role in discrete-time machine design, where events occur
at specific, well-defined intervals. Here is how digital systems manage these discrete
events effectively:
1. Signal Processing and Computation
Digital systems excel at processing discrete signals and performing complex
computations. Sensors in discrete-time machines generate data, which is
converted into digital form by analogue-to-digital converters (ADCs). In digital
form, microcontrollers or digital signal processors (DSPs) can process the data
using algorithms, filtering, and transformations to make decisions and control the
machine’s actions.
2. Logic-Based Control
Digital logic gates and circuits are the backbone of discrete-time control systems.
Logic gates (AND, OR, NOT, etc.) are used to evaluate conditions and determine
the appropriate control actions based on predefined rules or algorithms. Decision-
making processes, such as switching specific actuators or motors on or off, are
accomplished through digital control logic.
47
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
used to determine state transitions based on inputs from sensors or user commands.
The diagram provided illustrates how an FSM operates with states and transitions.
48
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Signal Processing
Digital systems process discrete signals using binary digits (0s and 1s) to control actions
and computations. The processing of discrete signals involves manipulating binary data
through logic gates and digital circuits. Digital systems use binary representation to
encode information, where each binary digit (bit) can either be a 0 or a 1, representing
two distinct states. By combining multiple bits, digital systems can represent more
complex data, such as numbers, characters, or sensor readings.
Logic gates are the building blocks of digital circuits. By combining these gates in
various configurations, digital circuits can perform complex computations and make
decisions based on input conditions. Understanding how to use these gates is essential
in creating systems that can solve problems and make decisions based on different
inputs.
Digital Control
Microcontrollers and programmable logic controllers (PLCs) are key components in
controlling digital systems, providing precise and efficient management. Here’s how
they work:
1. Real-time computation
Microcontrollers can run complex algorithms and perform real-time calculations.
This allows them to process data from sensors, make decisions, and create control
signals.
2. Sensor interface
Microcontrollers connect to various sensors to collect data from the environment.
They convert the analogue signals from these sensors into digital data for
processing.
3. Actuator control
Microcontrollers control actuators, like motors and solenoids, based on the control
signals they compute. This ensures that the actuators respond precisely and at the
right time.
4. Event-driven control
Microcontrollers can be programmed to react to specific events or conditions.
This allows them to perform certain actions at specific times.
5. Feedback control
In closed-loop systems, microcontrollers receive feedback from sensors and adjust
control signals as needed to keep the system operating correctly.
49
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
50
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
51
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Activity 4.10
52
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
• Connect the sensor output to the controller, which adjusts the actuator to
maintain the desired output.
5. Observation and Analysis
• Use the oscilloscope to observe the continuous feedback loop in action.
• Change the conditions (like temperature or light) and observe how the
system reacts in real time.
6. Discussion
• Discuss how continuous-time systems differ from discrete-time systems.
• Explore real-world applications (like thermostats, light dimmers, and
speed controllers).
7. Hands-On Experiment
• Learners sit in groups and ensure each group has all the necessary
components. The components will be provided by your teacher.
• In your group build a simple continuous-time control system, such as a
temperature control circuit using a heater and temperature sensor.
Materials Needed:
1. Temperature sensor (e.g., LM35)
2. Small heater (e.g., a resistor or heating element)
3. Transistor (e.g., TIP31)
4. Power supply (e.g., 12V battery or DC power supply)
5. Resistors, capacitors, and wires
6. Breadboard
7. Analogue oscilloscope
Steps to follow
1. Circuit Design
• Connect the temperature sensor to the breadboard.
• Use the transistor to control the heater based on the sensor’s output.
• Connect the sensor output to the base of the transistor through a resistor.
• Connect the heater in series with the transistor and power supply.
2. Building the Circuit
• Assemble the circuit on the breadboard.
• Connect the sensor output to the oscilloscope to monitor the voltage changes.
53
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Analogue Oscilloscope
An analogue oscilloscope is an example of a continuous-time machine. It continuously
samples the input voltage of an electrical circuit at specific time intervals, producing a
waveform. This is useful for testing, calibrating, and troubleshooting analogue circuits.
Activity 4.11
54
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
Steps:
1. Setup the Sensor and Actuator:
• Connect the thermocouple sensor to the breadboard.
• Connect the output of the sensor to the analogue oscilloscope.
2. Observe the Sensor Output:
• Turn on the oscilloscope and observe the waveform produced by the
sensor.
• Note how the waveform changes as the physical quantity (like
temperature) changes.
3. Implement Real-Time Control:
• Connect the actuator (heater or motor) to the system.
• Use a simple analogue control circuit to connect the sensor and the
actuator.
• Set up the control circuit so that the actuator responds to changes in the
sensor’s output.
4. Monitor and Adjust:
• Monitor the system using the oscilloscope.
• Observe how the actuator’s behaviour changes in response to the sensor’s
readings.
• Adjust the control parameters (like gain or setpoint) and see how the
system stabilises to the desired output.
Discussions
1. What changes did you observe in the waveform when the physical quantity
measured by the sensor changed?
2. How did the actuator respond to changes in the sensor’s output?
3. What adjustments did you make to the control parameters, and how did they
affect the system’s stability?
55
Review Questions
Question 1 and 2
The block diagram above represents a simple electronic system used in a robotic system.
1. What are the three main components represented in the block diagram?
2. Explain the purpose of using block diagrams in robotics.
56
3. Imagine you are tasked with designing a robotic system to automate complex tasks
in a busy factory setting. In this scenario, why would using schematic diagrams be
essential?
4. How are system inputs typically shown in a block diagram?
57
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
EXTENDED READING
1. Electronic components: Basic components, parts and function by LoneStar
Technologies
https://www.lonestartech.tw/electronic-component-basic-components-
parts-functions/#:~:text=Capacitors%3A%20Store%20and%20release%20
electrical,for%20rectification%20and%20signal%20modulation.
58
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
6. The link provided below is a free, easy-to-use app for 3D design, electronics, and
coding. Visit this platform and practice as many circuit simulations as possible.
https://www.tinkercad.com/
7. Watch the following videos on how to practise circuit building simulation with
Tinkercad
59
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
REFERENCES
1. Drawing of block diagrams | www.apps.diagrams.net
2. Drawing of schematic designs | www.tinkercad.com
3. Multimeter - Wikipedia. https://en.wikipedia.org/wiki/Multimeter#:~:text=A%20
multimeter%20(also%20known%20as,voltmeter%2C%20ohmmeter%2C%20
and%20ammeter.
4. Beig, F. (2023, September 14). Simple light sensor circuit. Circuits DIY. https://
www.circuits- diy.com/simple-light-sensor-circuit/
5. HELPDESK_WJ (Waijung). DC Motors Control - HELPDESK_WJ (Waijung) -
Aimagin Support. (n.d.). https://support.aimagin.com/projects/support/wiki/
DC_Motors_Control
6. Combinational Logic Circuits. Digital and Analog Electronics Course. (n.d.).
https:// electronics-course.com/combinational-logic
7. Kinzar Y. Digital. https://www.techtarget.com/whatis/definition/digital
60
SECTION 4 DIGITAL AND ANALOGUE SYSTEM DESIGN 1
ACKNOWLEDGEMENTS
List of Contributors
Name Institution
61