Загрузка страницы

Basic LED Matrix with Arduino

Very basic how to start controlling LEDs using row & column addressing. I.E. How to start if you want to make an LED display [or anything else interesting] and don't know much [or anything] about electronics.
This tutorial is the result of me trying to make an LED matrix display using the Arudino system in a short period of time and starting from a point of no prior electronics experience. One of the reasons it was so hard for me to try my project was not how difficult the task was but how little support there was for people in my position.

Aim of the tutorial

. Give understanding of how row and column addressing can be used to light individual LEDs on a matrix
. Demonstrate the very core basic level code that is needed to perform this function
. To show how this can be used to start creating interesting things.

the code ~

int colPin1 = 8;
int colPin2 = 9;
int rowPin1 = 1;
int rowPin2 = 2;
int rowPin3 = 3;
int rowPin4 = 4;
int rowPin5 = 5;

void setup() {
pinMode(colPin1, OUTPUT);
pinMode(colPin2, OUTPUT);
pinMode(rowPin1, OUTPUT);
pinMode(rowPin2, OUTPUT);
pinMode(rowPin3, OUTPUT);
pinMode(rowPin4, OUTPUT);
pinMode(rowPin5, OUTPUT);
}

void loop()
{
digitalWrite(colPin1, HIGH);
digitalWrite(colPin2, LOW);
digitalWrite(rowPin1, LOW);
digitalWrite(rowPin2, LOW);
digitalWrite(rowPin3, HIGH);
digitalWrite(rowPin4, LOW);
digitalWrite(rowPin5, LOW);
}

***I am not an expert and am aware that this code should be tidier. I kept this simple to make clear the way in which it performs the task. It would be great if people could respond with the next step, which is how to take this code and add layers on it to make it more efficient and more powerful***

Видео Basic LED Matrix with Arduino канала whokknowwss
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
23 июня 2010 г. 16:02:03
00:06:10
Яндекс.Метрика