0% found this document useful (0 votes)
34 views3 pages

Smart LED Pattern Selector Project

The project involves designing a Smart LED Pattern Selector using the Intel 8086 microprocessor and 8255 PPI, where users input a 4-digit password via a keypad to access and select from predefined LED patterns. Each team must customize the key-pattern selection, and the project requires various components including LEDs, a matrix keypad, and assembly code for functionality. Deliverables include a Proteus simulation file, a detailed report, and the assembly code file, with grading based on proper connections, interfacing, and functionality.
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)
34 views3 pages

Smart LED Pattern Selector Project

The project involves designing a Smart LED Pattern Selector using the Intel 8086 microprocessor and 8255 PPI, where users input a 4-digit password via a keypad to access and select from predefined LED patterns. Each team must customize the key-pattern selection, and the project requires various components including LEDs, a matrix keypad, and assembly code for functionality. Deliverables include a Proteus simulation file, a detailed report, and the assembly code file, with grading based on proper connections, interfacing, and functionality.
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

Princess Sumaya University for Technology

Computer Engineering Dept.


22344 – Microprocessors - Spring 2025
Hardware Project

Smart LED Pattern Selector Using 8086 and 8255

In this project, you will design and implement a microprocessor-based Smart LED Pattern
Selector using the Intel 8086 microprocessor, the 8255 Programmable Peripheral Interface, a 4x4
matrix keypad, and an array of 8 LEDs.

Features:

o Use the keypad to input the 4-key lock pattern. The 4-key password should be
constructed by concatenating the last two digits of the first student's ID with the last two
digits of the second student's ID, resulting in a 4-digit number. Each digit corresponds to
a keypad key.
o If the login access is unauthentic, a buzz sound should be generated.
o If the login access is authentic, you are given the access to LED pattern selector.
o Select one of four predefined LED lighting patterns from a common pool using
designated key presses. Each key corresponds to a unique pattern. When a key is
pressed, the system activates the associated LED pattern using software-based delay
loops. The pattern continues to run until another key is pressed to trigger a different
pattern. Use software delays.

Each team must customize the key-pattern selection, for example:

Example for Team A:


Assigned Key Assigned Pattern
1 P1 (Left-to-right)
3 P3 (Binary counter)
A P5 (Random flash)
D P6 (Knight Rider)
Example for Team B:

Assigned Key Assigned Pattern


2 P2 (Alternate Blink)
4 P4 (Ping-Pong)
7 P7 (Prime Numbers)
C P8 (Gray Code)

1
• Pattern Pool (Shared Among Students)

Pattern Code Pattern Name Description


P1 Left-to-Right Wave LEDs light up from left to right sequentially
P2 Alternate Blink Even and odd LEDs blink alternately
P3 Binary Counter LEDs count from 0 to 255
P4 Ping-Pong Bounce LEDs light back and forth
P5 Random Flash LEDs turn ON/OFF randomly
P6 Knight Rider Effect Smooth shifting LED effect
P7 Prime Number LEDs LEDs light only for prime numbers (0–255)
P8 Gray Code Counter Displays binary-to-Gray code sequence

Components Required:

1. 8086 Microprocessor.
2. 8255 PPI (Programmable Peripheral Interface) - operate in mode 0.
3. 4x4 Matrix Keypad - For user authentication.
4. Use Proteus internal clock for simulation. Real 8284 is only required for lab
demonstration, not in Proteus.
5. 8 LEDs –to generate the lighting patterns.
6. Latches (74LS373), transceivers (74LS245), 3-to-8 Line Decoder (74LS138) - to prepare
the signals of 8086 to interact with the system.
7. Any needed logic gates, resistors, wires, power supply.

Assembly code

- The pre-set 4-key login lock pattern storage in memory.


- The 8255 initialization (define the address port and send the control word).
- Keyboard scanning logic.
- Password validation logic.
- LEDs lightning patterns control.

Deliverables:

- Proteus Simulation File (.pdsprj): Full design schematic diagram showing your design
details (components, connections and decoding circuits). Your schematic should be neat
and well designed.
- A report describing your design step by step with a flow chart describing how your code
is working. Clearly state and describe the ports of the 8255.
- Assembly code file: contains the code that enables the microprocessor to perform the task
and interact with the keypad and LEDs.
-

2
Grading Rubric:

In this project, students work in teams of two students each.


- Any added features, not mentioned in the requirement will be given an additional
bonus.
Item Sub item Grade
Proper connection of the components with 8086
Proteus 10
with correct addressing
Correct interfacing with Keyboard and LEDs 5
Initialization of 8255 3
Assembly code LED pattern generation and execution 3
Keyboard interfacing and scanning 6
Password verification program 8
Hardware Design Connectivity 5
Implementation
Proper functioning 10

Total 50

Common questions

Powered by AI

Designing memory storage for the pre-set 4-key login lock pattern requires considering memory allocation for speed and efficiency. The pattern must be stored in a non-volatile section or be reinitialized upon startup, ensuring persistence. Addressing should be done efficiently to allow rapid access during authentication checks. The storage design also needs to ensure security against unauthorized access or tampering. These considerations ensure swift and secure validation in the microprocessor system .

The assignment integrates hardware and software by requiring the design of a circuit that includes microprocessors and programmable interfaces, alongside writing assembly code to control them. It requires understanding electronic components to construct systems that interface correctly, and programming skills to develop algorithms for user authentication and LED pattern manipulation. This fusion of disciplines ensures students learn to apply theoretical knowledge practically, achieving the educational goals of building complex, functional systems .

The project enforces customization of key-pattern selections by requiring each team to define their unique key assignments for activating different LED patterns. This is significant because it emphasizes design flexibility and understanding of interfacing techniques. Customization ensures that students engage creatively with the project, applying their knowledge to allocate specific keys to different pattern codes such as binary counter or gray code. This feature highlights the project's educational intent to develop problem-solving skills and adaptability .

The 8255 Programmable Peripheral Interface (PPI) is critical in handling input and output operations within the 8086 microprocessor system. It operates in mode 0 to interface with the 4x4 keypad for user input and control the 8 LEDs for pattern display. The 8255 requires initialization by defining the address port and sending the control word, after which it facilitates communication between the microprocessor and peripherals, ensuring that input from the keypad correctly triggers LED pattern changes .

Software-based delay loops are implemented to control the timing of LED activation, ensuring that patterns execute smoothly and visibly. These loops introduce artificial delays in the execution flow of the system, allowing LEDs to light up in a controlled sequence, such as the left-to-right wave or knight rider effect. This software timing removes dependency on additional hardware timers, simplifying design while maintaining precise control over pattern dynamics .

The Intel 8086 microprocessor can be effectively utilized by integrating it with an 8255 Programmable Peripheral Interface, a 4x4 keypad, and an array of 8 LEDs. The microprocessor interfaces with these components to allow user input through the keypad, verify the input against a stored password pattern, and control the LED patterns based on user selections. Addressing modes of the 8086 handle access to memory and input/output ports, while assembly code initializes the 8255, handles keypad scanning for password verification, and controls LED pattern execution through software delays .

Using assembly language offers the advantage of fine-grained control over hardware components, crucial for tasks such as initializing the 8255 PPI, scanning the keypad, and managing LED patterns through direct manipulation of the microprocessor's registers. However, challenges include the steep learning curve, requiring detailed understanding of assembly syntax and hardware architecture. Writing efficient code can also be time-consuming and error-prone, but it provides insightful exposure to machine-level programming essential for embedded systems .

Key components for implementing the smart LED pattern selector include the 8086 microprocessor, 8255 PPI, a 4x4 matrix keypad, 8 LEDs, latches, transceivers, line decoders, and logic gates. These components interconnect as follows: the 8086 processes keypad inputs and controls the 8255, which in turn manages LED outputs. Latches and transceivers facilitate signal transfer and voltage level adaptation, while line decoders direct the 8086's address pulses to the correct device ports. Logic gates ensure correct data handling .

The grading rubric for the smart LED pattern selector project is designed to align with key learning objectives by emphasizing areas such as connectivity, functionality, and code development. By assigning specific grades for correct interfacing of the 8086 with the components, proper assembly code execution, and the system's overall performance, the rubric guides students in focusing on crucial aspects of microprocessor-based design. It encourages thorough understanding and effective implementation, providing clear goals that students must achieve to succeed .

In the smart LED pattern selector system, user authentication involves entering a 4-key lock pattern derived from the combination of student IDs. The keypad input is scanned by the microprocessor, which compares it against the predefined password stored in memory. If the login attempt is unauthentic, the system generates a buzz sound as feedback. If it is authentic, the user gains access to select LED patterns. The validation logic thus ensures that only authorized users can modify LED behavior .

You might also like