Skip to content

Commit 85facc3

Browse files
authored
Merge pull request #409 from arduino/jhansson-ard/led-matrix-fix
LED matrix circuit issues [MKC-555]
2 parents 118c02e + 1d02059 commit 85facc3

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

content/built-in-examples/07.display/RowColumnScanning/RowColumnScanning.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ LED displays are often packaged as matrixes of LEDs arranged in rows of common a
1414

1515
![](assets/8x8-LED-Matrix.png)
1616

17-
1817
These can be very useful displays. To control a matrix, you connect both its rows and columns to your microcontroller. The columns are connected to the LEDs cathodes (see Figure 1), so a column needs to be LOW for any of the LEDs in that column to turn on. The rows are connected to the LEDs anodes, so the row needs to be HIGH for an individual LED to turn on. If the row and the column are both high or both low, no voltage flows through the LED and it doesn't turn on.
1918

2019
To control an individual LED, you set its column LOW and its row HIGH. To control multiple LEDs in a row, you set the row HIGH, then take the column high, then set the columns LOW or HIGH as appropriate; a LOW column will turn the corresponding LED ON, and a HIGH column will turn it off.
@@ -49,29 +48,26 @@ Here's a matrix of the pin connections, based on the diagram above:
4948
### Hardware Required
5049

5150
- Arduino Board
52-
5351
- 8 x 8 LED Matrix
54-
55-
- 2 10k ohm potentiometers
56-
52+
- 2x 10k ohm potentiometers
5753
- hook-up wires
58-
5954
- breadboard
55+
- 8x 1k ohm resistors
6056

6157
### Circuit
6258

63-
The 16 pins of the matrix are hooked up to 16 pins of the Arduino board. Four of the analog pins are used as digital inputs 16 through 19. The order of the pins is assigned in two arrays in the code.
59+
The 16 pins of the matrix are hooked up to 16 pins of the Arduino board. Four of the analog pins are used as digital inputs 16 through 19. The order of the pins is assigned in two arrays in the code.
6460

6561
Two potentiometers, connected to analog pins 0 and 1, control the movement of a lit LED in the matrix.
6662

63+
To keep your LED matrix from burning, add 8 10kΩ resistors to the wires connected in yellow in the image below.
6764

68-
![](assets/circuit.png)
65+
![Circuit diagram of the LED matrix.](assets/circuit.png)
6966

7067

7168
### Schematic
7269

73-
74-
![](assets/schematic.png)
70+
![Schematic of the LED matrix.](assets/schematic.png)
7571

7672
### Code
7773

@@ -82,5 +78,3 @@ Two potentiometers, connected to analog pins 0 and 1, control the movement of a
8278
You can find more basic tutorials in the [built-in examples](/built-in-examples) section.
8379

8480
You can also explore the [language reference](https://www.arduino.cc/reference/en/), a detailed collection of the Arduino programming language.
85-
86-
*Last revision 2015/07/29 by SM*
Loading

0 commit comments

Comments
 (0)