Amali 4 Embedded
Amali 4 Embedded
Amali 4 Embedded
CLO1 /20
CLO2 -
DJM 50122 - EMBEDDED SYSTEM APPLICATION
TOTAL /20
PRACTICAL WORK 4
TIME ALLOCATION:
NAME:
PROGRAM: CLASS:
Learning Outcomes:
OBJECTIVE
1. Write program in C language in MPLABX IDE.
2. Draw circuit in Proteus and simulate the output.
THEORY
A relay is an electrically operated switch. It consists of a set of input terminals for a single or
multiple control signals, and a set of operating contact terminals. The switch may have any
number of contacts in multiple contact forms, such as make contacts, break contacts, or
combinations.
EQUIPMENT
PROCEDURE
1. At desktop or any location drive, create a folder named PW. In the folder, create
subfolder as below.
2. Open MPLABX, follow the previous step to create a C main file. Write the program
below and draw the circuit using proteus.
Program 1
DC motor single direction, controlled with only one relay.
Program 2
DC motor with bi-direction, controlled with two relays.
Figure 2: Bi-direction DC motor relay controlled circuits.
3. RESULT
a.Program.
b.Build successful report.
c.Simulation circuit with led ON.
4. DISCUSSION
5. CONCLUSION