3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to use an LED Array Module

How to use an LED Array Module
«
  • set.jpg
  • LEDfront.jpg
With a single LED you can indicate the state of something: on or off. That might be a little boring. With an array of LEDs you can display characters or even some simple blocky graphics. That might add a little pizzaz to a small microcontroller project.



You could use individual LEDs wired into a grid of rows and columns, or you can make use of a module that has the LEDs conveniently placed into a single package. Who wants to wrangle with a pile of LEDs? That is a LOT of leads to solder...

Remember the old dot-matrix printers? CGA displays? No? Well old dudes like myself sure do. Many devices like those displayed or printed their characters as an array of 7 rows of 5 pixels/dots. This project will help you learn how to use a 5 by 7 LED array.

As an alternate you can make use of an 8 by 8 LED array.

This Instructable will cover how the LED Array Module works and how to design a character set to display. I will put together a very simple microcontroller circuit to drive the display, and list the development environment and some of the firmware needed to do the task.
 
Remove these adsRemove these ads by Signing Up
 

Step 1An array of LEDs

An array of LEDs
You may already likely be familiar with how you use an LED. They are dead simple to use. A microcontroller pin may output 5V that drives a single LED through a resistor and to ground.

The LED array arranges LEDs in rows and columns. The LEDs in the grid have their two connections, their cathodes and their anodes, connected to the other LEDs. By making these connections correctly, a microcontroller can drive any one LED on while leaving others off.

In the diagram below the LED at column 1 row 1 would be turned on if positive voltage is applied at C1 while ground is applied to R1. That single LED (C1 R1) would light up.

If, in addition to that, R3 was also at ground potential then the C1 R3 LED would also light.

You might work out that if we were to also light up the C3 R1 LED, that the C3 R3 will also light up, even if we do not wish to see it. There is voltage on C3 and ground on R3, so the LED is going to light itself.

To avoid that problem we can pick either a row or a column to light at a time. In this Instructable I control one column at a time. The microcontroller displays a pattern on column 1, then quickly moves to column 2 with a different pattern. The firmware moves through all five columns and then continues to cycle over and over. Done slowly this is rather odd looking as only one column is displayed at a time.

But if the cycling happens quickly, then it appears to the human eye that the entire display correctly displays a character.

The software will set column 1 to a positive voltage while setting 2-5 to ground. Then a pattern that results in row pins set to a positive voltage or ground is set on the row pins. After a delay, column 1 is set to ground and column 2 is set to a positive voltage. A new pattern is sent to the rows.

As each column is individually set to a positive voltage, each row gets a pattern of the LEDs to light up. When this is quickly cycled over and over the LED Array Module displays a single character.

« Previous StepDownload PDFView All StepsNext Step »
5 comments
Sep 19, 2010. 2:04 PMrimar2000 says:
This instructable is very very useful!
Sep 24, 2010. 9:37 AMaqua9751 says:
thanks
Sep 18, 2010. 9:05 PMdark sponge says:
Dang, a couple years too late. I spent forever finding the pinout of one of these matrices with a battery and a resistor testing every single pin and writing it down...
Sep 18, 2010. 9:07 PMdark sponge says:
Never mind, the one I have looks exactly the same except for it's 5x8 instead of 5x7.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
20
Followers
3
Author:indestructable