Sample Laboratory Report Mechatronics
Sample Laboratory Report Mechatronics
Colegio de Muntinlupa
Sucat, Muntinlupa, Metro Manila
Computer Engineering
Remarks Grade
Activity No. 1
I. OBJECTIVES:
II. DISCUSSION:
All digital equipment, simple or complex are constructed from the basic circuits. These
circuits are called logical elements. Logic element performs some specific functions as
binary data.
The three basic decision-making logic elements are the AND gate, the OR gate and
the INVERTER. All other digital elements and circuits are variations or combinations of
just these three basic elements.
The simplest form of digital circuits is the INVERTER or the NOT gate. The INVERTER is a
logic element whose output is always opposite of its input state. If the input is a binary
0, the output is binary 1, the output is a binary 0. We say that the inverter has an
output complement of the input. The binary states 1 and 0 are considered to be
complementary.
The AND gate is a logic circuit that has two or more inputs and a single output. The
operation of the gate is such that the output of the gate is a binary 1, if all the inputs
are binary 1. If any or more inputs are at binary 0, the output will be a binary 0. The
AND gate is a control circuit whose output is a binary 1 only when all inputs to the
gate are in binary 1 state at the same time.
The other basic logic element is called an OR gate. Like AND gate it can have two or
more inputs and a single output. Its operation is such that the output is a binary 1 if
any one or more inputs are at binary 1. The output is binary 0 only when both inputs
are binary 0.
MECHATRONICS SYSTEMS
1. Construct the following ladder diagrams and complete the truth table needed for the
section IV. Save the program as DIGITAL_LOGIC
2. Insert New Section and name it depending what function is being simulated in each
section.
OR_FUNCTION
AND_FUNCTION
NOT_FUNCTION
NAND_FUNCTION
NOR_FUNCTION
XOR_FUNCTION
CR_FUNCTION
ORTONAND_FUNCTION
• Make Input A as address 1, input B as address 2 and CR1 as address 3 and output
lamp as address 4.
MECHATRONICS SYSTEMS
OR_FUNCTION
A B Output
0 0
0 1
1 0
1 1
AND_FUNCTION
A B Output
0 0
0 1
1 0
1 1
NOT_FUNCTION
A Output
0
1
MECHATRONICS SYSTEMS
NAND_FUNCTION
A B Output
0 0
0 1
1 0
1 1
NOR_FUNCTION
A B Output
0 0
0 1
1 0
1 1
XOR_FUNCTION
A B Output
0 0
0 1
1 0
1 1
MECHATRONICS SYSTEMS
CR_FUNCTION
A Output
0
1
ORTONAND_FUNCTION
A B Output
0 0
0 1
1 0
1 1
V. OBSERVATION
VI. CONCLUSION
MECHATRONICS SYSTEMS
V. OBSERVATION
Discuss the flow of the source code, the syntax and the theoretical concept if there are any
involved in the input/sensors/output devices used for the experiment. You may also indicate here
the problems and knowledge acquired during when performing the procedures of the
experiment. You may also include figures and references within this section [1].
VI. CONCLUSION
Discuss if you were able to achieve the objectives indicated in the experiment. Include
recommendations and discussion on what particular field or application you could use the
knowledge acquired in this experiment. You may also include figures and references within this
section [2].
[1] D. Russell, Introduction to embedded systems: Using ANSI C and the arduino development
environment. San Rafael, CA: Morgan & Claypool, 2010.