Maker.io main logo

LED Matrix Controller using 4Duino

2016-09-14 | By 4D Makers

License: None Arduino

An LED matrix is essentially many LEDs packaged in a dot grid format in order to produce pictures or large text. They’re commonly used for signage purposes in the public space.

The LED matrix utilized in this project is made by multiplexing 35 LEDs together such that there are 5 columns and 7 rows to control the matrix. In this set up, we have row anodes and column cathodes. To light up a particular LED in our example matrix, the row pins are switched to HIGH voltage state and column pins are switched to LOW.

led1
led 2

How it Works

 led3

Components

  • 4Duino
  • Kingbright 50mm (2.0 INCH) 5×7 DOT MATRIX DISPLAY (TA20-11SRWA)
  • Jumper Cables
  • Breadboard
  • 5x resistors (between 100 – 300 Ω)
  • Micro USB cable
  • µSD card

Implementation

Step 1: Build

 LED4

For more details on the pin layout of the LED matrix, please refer to the TA20-11SRWAdatasheet. Note that the original datasheet have column cathodes and row anodes – the LED matrix used in this example have column anodes and row cathodes, but the pin connections for the 4Duino will still be the same regardless of the direction of the rows and columns.  All that really needs changing is the digitalWrite() commands in the 4Duino code for rows and columns.

 LED5

If your LED matrix is column anode and row cathode, replace all the “HIGH” words in this code section to “LOW” and “LOW” to “HIGH”.

If your LED matrix is column cathode and row anode, you are not required to modify this code.

Step 2: Program

Workshop 4 – 4Duino Extended Graphics environment is used to program this project.

This project requires the Arduino IDE to be installed as Workshop calls the Arduino IDE for compiling the Arduino sketches. The Arduino IDE however is not required to be opened or modified to program the 4Duino.

 led6

Open this file using Workshop 4.

Step 3: Comms Port

Connect the 4Duino to the PC using µUSB cable.

Then navigate to the Comms tab and select the Comms port to which the 4Duino connected.

 led7

Step 4: Compile and Upload

Finally, go back to “Home” tab and now click on the “Comp’nLoad” button.

 led8

The Workshop 4 IDE will prompt you to insert a µSD card to the PC in order to save the widget images. Insert µSD card, select the appropriate drive and press button “OK”.

 led9

If the µSD card already has the widget images, you can choose to click on “No Thanks”.

Step 5: Insert µSD card

After uploading the program in to the 4Duino, it will try to mount the µSD card. If the µSD card is not present it will prints an error message.

Once the µSD card is mounted, you will see the screen displayed in the image on the right.

 as

Demonstration

Experiment around with the controller – there are several options of matrix control modes to choose from.

 45

 454

 5132

 

Flow Chart

 563

Go to 4Duino Projects for more creative stuff.

TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum