Pages: [1]   Go Down
Author Topic: first time question. LEDs on a pin  (Read 467 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello.

I'm new here, and I have just finished "hello world" with the arduino.
I'm using an arduino uno board, and I have a question.
Is it possible to light several LEDs in sequence using 1 pin, like an LED array?
In sequence, I mean, the first lights up, then goes off, then the second, etc.
Forgive me if this is a simple thing, I'm just learning and I was hoping to have this as my first project to learn

Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 514
Posts: 31541
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is it possible to light several LEDs in sequence using 1 pin,
No, you need one pin per LED ( don't forget the resistor ) or an external chip like a shift register, that requires 3 pins, or an I2C device that requires 2 pins.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I thought it would be something like that.
I was hoping to do a really big light bar, 60 LEDs...
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 514
Posts: 31541
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why the 1 pin limit?
with 3 pins you can light up as many as you like by cascading shift registers,
You can even dim them with this software.
http://www.elcojacobs.com/shiftpwm/
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
with 3 pins you can light up as many as you like by cascading shift registers,
Again, I am super new to arduino, what is a shift register?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 514
Posts: 31541
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One of these:-
http://arduino.cc/en/Tutorial/ShiftOut
Logged

Pages: [1]   Go Up
Jump to: