5 X 7 LED Matrix Display Project V1.0

Similar documents
Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

Controlling a Dot Matrix LED Display with a Microcontroller

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

CHAPTER 11: Flip Flops

A Digital Timer Implementation using 7 Segment Displays

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

ECEN 1400, Introduction to Analog and Digital Electronics

ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering

Electronic Rotary Table Divider V2.1 Construction

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

0832 Dot Matrix Green Display Information Board User s Guide

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

PURDUE UNIVERSITY NORTH CENTRAL

Decimal Number (base 10) Binary Number (base 2)

WHO ANSWERED FIRST? FIND OUT WITH THIS QUIZ BUZZER KIT

8051 MICROCONTROLLER COURSE

3-Digit Counter and Display

The components. E3: Digital electronics. Goals:

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Low Cost Pure Sine Wave Solar Inverter Circuit

Build A Video Switcher. Reprinted with permission from Electronics Now Magazine September 1997 issue

4 Character 5x7 LED Matrix Display

AXE033 SERIAL/I2C LCD

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

Seven-Segment LED Displays

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Information Board User s Guide

LAB4: Audio Synthesizer

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

STEPPER MOTOR SPEED AND POSITION CONTROL

Switch board datasheet EB

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

CATIA Basic Concepts TABLE OF CONTENTS

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

Chapter 6: From Digital-to-Analog and Back Again

GLOLAB Universal Telephone Hold

Designing VM2 Application Boards

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

VOICE RECOGNITION KIT USING HM2007. Speech Recognition System. Features. Specification. Applications

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

An Introduction to MPLAB Integrated Development Environment

8 by 8 dot matrix LED displays with Cascadable Serial driver B32CDM8 B48CDM8 B64CDM8 General Description

PLL frequency synthesizer

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

Measuring Resistance Using Digital I/O

Arduino Lesson 13. DC Motors. Created by Simon Monk

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

Joule Thief 3.0 Kit. June 2012, Rev Joule Thief 3.0

FlowKit in-circuit debug system

EET272 Worksheet Week 9


Accurate Measurement of the Mains Electricity Frequency

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

Digital Electronics Detailed Outline

Advanced LED Controller (LED Chaser)

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Wiki Lab Book. This week is practice for wiki usage during the project.

TV Remote Controller Decoder

How to Read a Datasheet

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Lab 1 Diode Characteristics

Neonixie 6 Digit Nixie Clock Controller Introduction and Assembly

Technical Aspects of Creating and Assessing a Learning Environment in Digital Electronics for High School Students

Electronic Circuit Construction:

Monitoring of Intravenous Drip Rate

Digital To Analog Converter with Sine Wave Output

DC Motor with Shaft Encoder

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Programming Logic controllers

USING I2C WITH PICAXE

Power LED's - simplest light with constant-current circuit

Sequential Logic: Clocks, Registers, etc.

Automatic Street Light Control System Using Microcontroller

PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

Digital I/O: OUTPUT: Basic, Count, Count+, Smart+

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

Microcontroller-based experiments for a control systems course in electrical engineering technology

DOING MORE WITH WORD: MICROSOFT OFFICE 2010

Renewable Energy Monitor User Manual And Software Reference Guide. (979)

Hexadecimal and Numeric Indicators. Technical Data

MICROCONTROLLER INTERFACING CIRCUITS

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

RUNNING MESSAGE BOARD USING DOT-MATRIX DISPLAY. Ervin John U. Benigra, Bryan Leonard D. Montaño and Engr. Maridee B. Adiong. Capitol University

Contents. Microsoft Office 2010 Tutorial... 1

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Optical Sensor Interface for AFX Digital LED Timer/Counter by George Warner, Jan

Tecla for Android. Downloading and Installing the Tecla Access App. Activating and Selecting the Tecla Access Keyboard

Lab 7.1.9b Introduction to Fluke Protocol Inspector

Lab 5 Operational Amplifiers

Fundamentals of Signature Analysis

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Transcription:

5 X 7 LED Matrix Display Project V1.0 Package designed by Allan Byres H.J.Cambie Secondary School

Rationale: This project came about while I was teaching level 3 electronics students how to use the PIC micro-controller. I had followed my usual routine of teaching through experiments or labs as I routinely call them. The students had learned the PIC basic commends to light LED s and make various display patterns on both the A and B ports. I was frustrated by the lack of something practical and useful to do with them at this point. They wanted a project and I didn t have one except for robotics. So continuing the theme of LED displays which are easy enough I needed a challenge and I came across this project that is sold as a kit on the internet but unfortunately uses assembly language. ( unfortunate because I am not proficient in it!) You can find it here http://www4.tpg.com.au/users/talking/5x7%20display%20index.html I also came across this web site that offered some useful information and the same components, huge bonus! http://drew.hickmans.net/movingsign.htm So I was off to the races and had a project. The example in the picture is my prototype and I have had it working showing a simple flashing message. The steps following are those that I follow and you will notice that I have assumed some basic pic programming knowledge and how to use the programming software and the T- pic programming board created and sold by Ian Mathie and Paul Wytenbroek at BCIT. Students need to be familiar with the pic and be able to do some programming. They need to be comfortable with the three pieces of computer software and the workings of a bread-board and IC s. Before completing this project I would have students complete The intro labs 1 through 6 which take them through all of the PIC Basic commands necessary. 5 x 7 Display Explanation 2

Only one column (vertical) of LEDs turns on at a time. Seven of the lines of port B drive the LEDs via 100R resistors and the cathodes are connected together and taken to the 0 V rail via a "sinking" transistor. The 5 sinking transistors are turned on (one at a time) by the outputs of a CD 4017 "counter" chip. This chip has 10 outputs with one output going HIGH at a time. The chip is firstly reset by taking pin 15 HIGH then LOW and keeping the line low - this allows the chip to "clock." The first output (pin 3 on the 4017) goes HIGH and this is connected to the first transistor via a 2k2 base resistor. The transistor turns on and the cathodes of the first column of LEDs connect to the 0v rail. The LEDs are turned ON by delivering current from the PIC chip. When any of the output lines of the PIC go HIGH (RB0 to RB6), the corresponding LED(s) are illuminated. The 100R resistor limits the current to about 25 ma, as this is the maximum each output is designed to deliver. The output lines of the chip correspond to Port B and by turning off these lines, clocking the 4017 then turning on the outputs again, the second column of LEDs will be illuminated. This is repeated for the 3rd, 4th and 5th columns. When this is repeated at a rate above 50 times per second, the whole screen of LEDs appears to be ON at the same time. This is how a picture or effect is produced on the screen - it's called scanning. The 4017 In order to understand how this project will work we need to have a good understanding of how the 4017 works. It is an integral part of this particular display. It s cheap and commonly available and simple to use. There are other options such as using the other unused parts of the PIC (A Port) but I eventually want to have two 4017 s and connect up fours 5 X 7 s allowing a 3

20 X 7 display as shown below. The following labs are designed to help us to learn how the 4017 works and how to use it effectively to control each column. 4017 Lab 1 Each student must complete this lab individually. (Two periods maximum) Refer to the construction notes below (step 4) The purpose of this lab is to learn how the 4017 activates each output pin and makes it high in turn when given a clock pulse on pin 14. Also how to reset the 4017 at any point using the RESET pin (# 15) 4

1) On a T-pic bread board build the following circuit: o 4017 decade counter IC o 5 LEDs which connect to the 4017 output pins in numerical order as in the construction notes. (no transistor is necessary at this time. Each led should have its cathode connected to ground) o Power connections to the 4017 (from PIC Board) and PIC connections to pins A0 and A1, where pin A0 connects to the clock pin and A1 to the reset pin. (see Construction Notes below) o Follow all Bread boarding conventions! o Get it checked and signed here: 2) Write a PIC Basic program that will turn on each LED in order one through five, activate the reset switch, then go back and do it again. o Include enough comments to make it easy to understand. o Test it and modify the program if necessary! o Save It as your initials 4017_1 4) 4017 Info Construction Notes Pins 13 and 15 are important to the correct operation of the 4017. Pin 13 should be connected to ground or 0V for your labs. Pin 15 needs to change state. If pin 15 stays connected to ground the counter will advance from outputs 0 to 9 and the repeat. If we change its state to high it resets the counter and starts from 0 again! 5

4017 Lab 2 Each student must complete this lab individually. (One period Only) The purpose of this lab is to investigate the display project and to work towards the creation of at least one letter or shape. Task 1 Write a program to light up a whole column one LED at a time moving from top to bottom and then reverse it by turning off one led at a time. Use the same schematic diagram as for lab 1. Save your program on your own disk as 4017_2. Get it marked and demonstrate it to Mr. B Task 2 The matrix is a 5 x 7 rectangle. Your function here is to decide on one letter, shape, icon or anything else that is not vulgar in any way! Shade in the relevant blocks below. Fill in the blanks: Each vertical column is controlled by the: Each horizontal Row is controlled by the: The 4017-decade counter has ten output pins, Note the order in which they occur! Also Note that pin 14 is the Clock and Pin 15 is the Reset Pin. Remember it is a CMOS device!! Handle with care 6

The idea of persistence of vision means that we don t in fact have to light all the columns at the same time but rather we will light up one at a time. So long as we do it fast enough we should see the character show up! This means that each column should be on for of a second or less! Task 3 Calculate the decimal number necessary to turn on the correct LED s in each column of the character you have shaded in the table above. Write it next to the corresponding row number below: 1) 2) 3) 4) 5) Build a display board. Before we can carry on you will need to build a display board or access at least one commercial display that will suit this project. The following is a circuit board that will allow you to build your own. The schematic: for transistors any small NPN transistor will work(2n3049) 7

4017 Lab 3 So far we have worked with a single vertical column and we have had the 4017 light up an led on each pin. The combination of this is what we seek to achieve in order to create a display Purpose: The purpose of this lab is to get a simple display to show up on the board you have designed and built. You have already created a simple design that you will now use. Task 1: One column moving The first task is to combine the knowledge gained and create a moving column of light. The column should move from left to right across the display. Write a program that will do this. As always keep notes on what you are doing and each change you make. This will help you to keep track of things. Also make sure you comment on you program. Hints: remember that the reset must occur each time to move to the next column. Go back to the basic explanation on page 3 if you need to review. A short pause time s necessary or else the display Save your program as 4017_31 Task 2: Now rewrite the program from task 1 above to show the single character you designed. Save it as 4017_32 on your disk. 8