0% found this document useful (0 votes)
10 views9 pages

New Embedded Manual 19 27

The document outlines experiments involving LED matrix displays and stepper motors using MPLAB IDE and Proteus software. Experiment 6 focuses on displaying characters A-F on a 5x7 LED matrix, while Experiment 7 demonstrates displaying a 2-digit number on an 8x8 matrix. Experiment 8 covers the operation of a stepper motor in both forward and backward directions, detailing its control and driving modes.

Uploaded by

mayankinhome
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views9 pages

New Embedded Manual 19 27

The document outlines experiments involving LED matrix displays and stepper motors using MPLAB IDE and Proteus software. Experiment 6 focuses on displaying characters A-F on a 5x7 LED matrix, while Experiment 7 demonstrates displaying a 2-digit number on an 8x8 matrix. Experiment 8 covers the operation of a stepper motor in both forward and backward directions, detailing its control and driving modes.

Uploaded by

mayankinhome
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

EXPERIMENT NO.

Aim: To display A-F on 5x7 LED Matrix display


Tools used: MPLAB IDE v8.63 and Proteus 8.9 Professional

Theory:

Led matrix interfacing with pic microcontroller: A dot matrix Led display is a 2-dimensional patterned
array of LEDs, used to represent characters, symbols and images. It can be used in simple display
applications where the resolution is not a big concern.

In a dot matrix display, multiple LEDs are wired together in rows and columns. This is done to minimize
the number of pins required to drive them. For example, a 8×8 matrix of LEDs (shown below) would
need 64 I/O pins, one for each LED pixel. By wiring all the anodes together in rows (R1 through R8),
and cathodes in columns (C1 through C8), the required number of I/O pins is reduced to 16. Each LED
is addressed by its row and column number. In the figure below, if R4 is pulled high and C3 is pulled
low, the LED in fourth row and third column will be turned on. Characters can be displayed by fast
scanning of either rows or columns.

The LED matrix used in this experiment is of size 5×7. We will learn how to display still characters in
a standard 5×7 pixel format. The figure below shows which LEDs are to be turned on to display the
English alphabet ‘A’. The 7 rows and 5 columns are controlled through the microcontroller pins.

Suppose, we want to display the alphabet A. We will first select the column C1 (which means
C1 is pulled low in this case), and deselect other columns by blocking their ground paths (one
way of doing that is by pulling C2 through C5 pins to logic high). Now, the first column is
active, and you need to turn on the LEDs in the rows R2 through R7 of this column, which can
be

done by applying forward bias voltages to these rows. Next, select the column C2 (and deselect
all other columns), and apply forward bias to R1 and R5, and so on. Therefore, by scanning
across the column quickly (> 100 times per second), and turning on the respective LEDs in
each row of that column, the persistence of vision comes in to play, and we perceive the display
image as still.
Program:
Simulation Results:

Results: We have successfully simulated characters A-F on a 5x7 LED Matrix Display.
EXPERIMENT NO. 7

Aim: To Display a 2-digit number on an 8x8 LED Matrix display


Tools used: MPLAB IDE v8.63 and Proteus 8.9 Professional
Theory: LED MATRIX MODULES are available in different modules and each module will have a different
pin configuration. Different modules may have different pinout configurations but they have the same
functioning pins.
8x8 Matrix Display
An 8 x 8 LED matrix display is used in this project to display the information. LED matrices are available in
different styles like single color, dual color, multi-color or RGB LED matrix. They are also available in different
dimensions like 5 x 7, 8 x 8, 16 x 16, 32 x 32 etc.

PIN diagram of PIC16F874A/877A


Diagram of 8x8 Matrix Display

Code:
Output:
EXPERIMENT NO. 8
Aim: To run stepper motor in forward and backward direction
Tools used: MPLAB IDE v8.63 and Proteus 8.9 Professional
Theory: Stepper motors are DC motors that move in discrete steps. They have multiple coils that are
organized in groups called "phases". By energizing each phase in sequence, the motor will rotate, one
step at a time. With a computer controlled stepping you can achieve very precise positioning and/or
speed control. For this reason, stepper motors are the motor of choice for many precision motion control
applications.
▪ Two centre tapped coils
▪ Red Wire is common, connected to VCC
▪ Pink, Red, Yellow, Blue: Controls the rotation
Driving Modes:
1. Full Drive: If two electromagnets are energized simultaneously, motor runs on full torque.
2. Half Drive: If alternate one and two phases are energized, less torque produced, increases angular rotation
3. Wave Drive: One stator electromagnet is turned ON, consumes low power, less torque produced.
ULN2003A Stepper Motor Driver IC:
▪ Darlington pair array
▪ Capable of delivering 500mA of load with 600mA of peak current
Code:
Output:

You might also like