Go Down

Topic: first time question. LEDs on a pin (Read 593 times) previous topic - next topic

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


Grumpy_Mike

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.

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

Grumpy_Mike

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/

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?


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy