For now I only have two columns with 5 rows so 20 LEDS (5 LEDS per column * 2 columns * 2 LED columns per column). I am having trouble when trying to light up only one led at a time. I turn all output pins to LOW and set the related row pin to HIGH so that current will be able to flow. The problem is the following:
Given the fact the 2 columns are setup exactly the same way, the same led on the same row of those 2 columns will lit up... This is why I am trying to set one of the two column pins as an LOW INPUT but this does not help.
Here is the code for clarity:
for (int i = 0; i < ROWS_NUMBER ;i ++){
digitalWrite(ROWS_PINS*, LOW);*
}*
for (int i = 0; i < COLUMNS_PINS_NUMBER ;i ++){* digitalWrite(COLUMNS_PINS*, LOW);
_ }*_
* digitalWrite(ROWS_PINS[1], HIGH);
pinMode(COLUMNS_PINS[1],INPUT);
digitalWrite(COLUMNS_PINS[1],LOW);* How can I make it so that only one led at a time is lit on?
Where are the resistors! You need about 270R in line with each column.
You never said this was a charleyplexing circuit, you drive those very differently from a normal matrix.
Simple Outdoor LED Message Moving or Scrolling Sign Board Design Project with Circuit diagram Electronic LED Scroller Generator for outdoor digital signs Marketable LED sign board with Message scrolling. LED Message Scrolling Board with completed circuit diagram and the micro controller programming. Sometimes this LED scrolling message board is referred as LED Message sign board.
Generally the LED Scroller Message Generator can be implemented with many different logic. Out of two are very famous
LED moving message display board design using decade counters.
LED moving message display board design using shift registers.
The second one is very simple for a beginner. So, this post I am implementing LED moving display using shift registers. LED Scrolling Display can be implemented by using any micro controller like 8051, PIC and AVR controllers. Here, I implemented Scrolling Display by using 8051 microcontroller i.e. 89s52 microcontroller. The next post will show the implementation by using PIC and AVR micro controllers.
Grumpy_Mike:
Where are the resistors! You need about 270R in line with each column.
You never said this was a charleyplexing circuit, you drive those very differently from a normal matrix.
I'll try that but I tried putting 10k resistors on each column to be sure but it didn't so AFAIK a 270R will give the same result.