Sei sulla pagina 1di 2

ELC111.

2 Laboratory Activity 2: Digital Meets


Analog Lab Exercise
Pre-laboratory Report; Submitted: 15 December 2014

Tan, Francis U. (Author)

Visaga, Shane Marie A. (Author)

Electronics, Computer, and Communications Engineering


Ateneo de Manila University
Philippines
name@xyz.com optional (line 4)

Electronics, Computer, and Communications Engineering


Ateneo de Manila University
Philippines
shane.visaga@gmail.com

I. INTRODUCTION
This laboratory exercise aims to test the students
understanding of logic gates through designing circuits for a
digital seat belt warning system and a light sensor system.
II. THEORETICAL BACKGROUND
The three basic logic gates are AND, OR, and NOT. Other
logic gates are derived from the basic logic gates. The graphic
symbols and truth tables are indicated below. [1] Each gate has
one or two binary input variables, x and y, and a binary output
variable, F. [2] The truth table can be derived directly from the
algebraic expression. The truth table lists the value of the
output for every possible combination of the inputs. Given a set
of statements, one can fill up the truth table with inputs and
corresponding output/s. The amplifier circuit needed for the
first application is shown at Figure 1.

Fig. 1 a M. James, Department of Engineering


The Australian National University (2002 ).
ENGN2211 [Online]. Available:
http://users.cecs.anu.edu.au/~Matthew.James/
engn22112002/notes/bjtimg41.gifhttp://users.cecs.anu.e
du.au/~Matthew.James/engn22112002/notes/bjtimg41.gif

III. METHODOLOGY
A. Materials
The materials needed are basic logic gates for designing the
circuits, a transistor driver or an amplifier circuit for the seat
belt warning system, and a motor control circuit to accompany
the light sensor.
B. Procedure
The students will design the circuits and/or construct the
truth tables for the seat belt warning system and the light
sensor with motor control based on the conditions that
follows. For the seat belt warning system, the warning
indicator is logic 1 when at least one of the car passenger is
not wearing the seat belt. Assume the car is 4-seater, each seat
has a sensor (S1, S2, S3, S4) and each seat belt has a sensor
(B1, B2, B3, B4 corresponding to each seat sensor. Seat
sensor is 1 when it is occupied else 0. Seat belt sensor is high
when it is being used else it is low.
For the light sensor input system, there are three input
variables (3 selectors) and two output variables (2 controls).
The selectors (S2, S1, and S0) are input signals coming from
the light sensors (L1 and L0) and a switch, s1 = 1 when L1 is
activated (light sensor ON) and S0 = 1 when L0 is activated
(light sensor ON), S2 =1 when the switch is ON. The control
variables (C1 and C0) are output signals to the analog circuit
that controls the DC motors (M1 and M0). The selector inputs
(S2, S1 and S0) determine the motor functions (C1, C0) as
show in Table I.

A = S1B1 + S2B2 + S3B3 + S4B4


TABLE I FUNCTION DESCRIPTION FOR MOTOR
CONTROL
S2

S1

S0

C1

C0

0
0

0
0

0
1

1
0

1
1

Function
description
Forward:
Turn right

0
0
1

1
1
X

0
1
X

1
1
0

0
1
0

Turn left
Forward
Stop

L1 / S1
Both motors are ON
M1 is ON, M0 is
OFF
Both motors are ON
Both motors are OFF

C. Data Tables
I. TRUTH TABLE FOR A SET OF SEAT AND SEAT
BELT
S1
B1
0
0
0
1
1
0
1
1
Theoretical function: A = S1B1

II. TRUTH TABLE FOR LIGHT SENSOR WITH MOTOR


CONTROL

ALARM
0
0
1
0

If the car is 4-seater, then A =1 if at least one seat sensor is


1 while its corresponding belt sensor is 0. Use OR.

L0/ S0

S / S2
(s = switch)
0
0
0
0
1

C1

0
0
1
0
1
0
1
0
1
1
1
1
X
X
0
Logic functions:
C1 = S1S0S2+S1S0S2+S1S0S2
C0 = S1S0S2 + S1S0S2+S1S0S2
D.

C0
1
1
0
1
0

C1 = S2'(S0'++S1)
C0= S2'(SO'+S1)

REFERENCES
[1] Department of Electrical Engineering King Fahd University of
Petroleum and Minerals. (2005, Feb.). Laboratory Manual EE
200
Digital
Design
[Online].
Available:
http://ocw.kfupm.edu.sa/ocw_courses/user071/EE200a/Labs/EE
200LabManual.pdf
[2] M. Morris Mano, M. Ciletti, Digital Design with an Introduction
to the Verilog HDL. Fifth Edition. Upper Saddle River, NJ:
Prentice Hall, 60