Section 1 Digital logic design
Section 1 Digital logic design
D E S I G N
IT-211, 2024/2025
computer system
2
(Microcontroller)
EMBEDDED SYSTEM
4
W H AT I S A R D U I N O M A D E O F ?
5
HOW DOES ARDUINO INTERACT WITH THE ENVIRONMENT?
6
HOW DOES ARDUINO INTERACT WITH THE ENVIRONMENT?
Example workflow:
Signals
Digital Analog
Signal Signal
Has only two possible states — High or Low, Can take on multiple values between their
represented by 1 or 0. minimum and maximum limits.
8
SIGNAL TYPES - INPUT VS OUTPUT
Example 1 - Switch :
9
ADVANTAGES OF USING ARDUINO
10
TYPES OF ARDUINO BOARDS
11
ARDUINO
HARDWARE
12
1-MICROCONTROLLER
• The Microcontroller can be compared to the brain in the
human body.
• It is responsible for processing data and making
decisions to achieve the required tasks.
• Every microcontroller has a set of Input/Output (I/O) Pins:
• These pins allow it to receive signals (from sensors)
and send commands (to actuators).
• The microcontroller used in the Arduino Uno board is the
ATmega328P (Link Provided).
13
2 - D I G I TA L I / O P I N S
14
3-ANALOG I/O PINS
15
4-POWER PINS
• The Power Pins on the Arduino Uno provide the required
electricity to operate connected electronic components:
1. 5V Pin:
• Provides 5 volts of power, which is suitable for most
electronic components.
2. 3.3V Pin:
• Provides 3.3 volts, required for certain components that
need lower voltage.
3. GND Pins:
• There are 2 ground pins (GND), used as the negative
terminal for the components.
16
5-POWER INPUT
17
6-USB
18
TIME FOR
QUESTIONS
Q1: What is the primary role of a
microcontroller in an embedded system?
20
Q2: Which of the following best describes
an embedded system?
A) A general-purpose computer
B) A system that integrates a microcontroller to
perform a specific task
C) A device used only for gaming
D) A system that cannot be programmed
21
Q3: How many Digital I/O pins does the
Arduino Uno have?
A) 6
B) 4
C) 14
D) 20
22
Q4: Which of the following signals can
take multiple values between its minimum
and maximum?
A) Digital signal
B) Analog signal
C) Both Digital and Analog
D) None of the above
23
Q5: What is the purpose of the USB port
on the Arduino?
A) To connect sensors
B) To upload code
C) To provide power
D) Both B & C
24
Q6: What type of signal does a PIR sensor
generate when detecting motion?
A) Analog
B) Digital
C) None
D) Both
25
Q7: If the Arduino is receiving a signal
from a sensor, the signal is classified as?
A) Analog
B) Digital
C) Input
D) Output
26
Q8: The ATmega328P is used in the
Arduino Uno as
A) A sensor
B) A power pin
C) A microcontroller
D) A USB port
27
Q9: When the Arduino reads the value
from a temperature sensor, what type of
signal does it process?
A) Analog
B) Digital
C) Input
D) Output
28
Q10: Which of the following considered
as a sensor ?
A) Motor
B) Relays
C) Servos
D) None of them
29
Q11: Which Arduino board is best suited
for projects that require multiple I/O
connections?
A) Arduino Mega
B) Arduino Uno
C) Arduino Nano
D) Arduino Pro Mini
30
Q12: Which Arduino board is the most
popular and suitable for beginners?
A) Arduino Mega
B) Arduino Uno
C) Arduino Nano
D) Arduino Pro Mini
31
Q13: Which Arduino board is smaller, less
expensive, and designed for advanced
users?
A) Arduino Mega
B) Arduino Uno
C) Arduino Nano
D) Arduino Pro Mini
32
THANKS
33