You are on page 1of 5

CLO/GSA MARKS

CLO1 /20

CLO2 -
DJM 50122 - EMBEDDED SYSTEM APPLICATION
TOTAL /20
PRACTICAL WORK 4
TIME ALLOCATION:
NAME:

MATRIX NO: DATE:

PROGRAM: CLASS:

DJM 50122 - EMBEDDED SYSTEM APPLICATION


PRACTICAL WORK 4 : DC MOTOR CONTROL WITH RELAY

Learning Outcomes:

Construct and simulate real-time embedded system application based on PIC16F/PIC18F


microcontroller effectively

OBJECTIVE
1. Write program in C language in MPLABX IDE.
2. Draw circuit in Proteus and simulate the output.

THEORY

A DC motor consists of an stator, an armature, a rotor and a commutator with brushes.


Opposite polarity between the two magnetic fields inside the motor cause it to turn. DC
motors are the simplest type of motor and are used in household appliances, such as electric
razors, and in electric windows in cars.

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

1. MPLAB X IDE software


2. Proteus software
3. PC

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.

DC input 5V for relay.


Figure 1: Single direction DC motor relay controlled circuits.

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

You might also like