Pages: [1]   Go Down
Author Topic: 15 led multiplexed ring code  (Read 718 times)
0 Members and 1 Guest are viewing this topic.
Utah
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

need code or lots of help to make it for 15 leds useing as little pins as possible
Logged

Colorado
Offline Offline
Edison Member
*
Karma: 47
Posts: 1562
Reviving dead brain cells with Arduinos.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

15 single color LEDs?  Use two daisy chained shift registers (such as a 595) for a total of 16 LEDs.  Uses 3 pins, plus VCC/GND.

15 RGB LEDs?  Use multiple daisy chained shift registers (such as a 595).  15 LEDs x 3 = 45, you need 6 shift registers for a total of 16 RGB LEDs.

Or something like a WS2803 which has 18 channels.  So 6 RGB LEDs.  With three of them daisy chained , you can light up 18 LEDs.  Needs 2 wires only plus VCC/GND.  Or its smaller brother, the WS2801, which has three channels.  Daisy chain 15 of them (one per RGB LED).  Still only need 2 wires plus VCC/GND.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 513
Posts: 31529
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to define the hardware before you can write any code.
In the meantime practice finding out where the caps shift and the punctuation is on your keyboard, it will help with writing code.
Logged

IRL
Offline Offline
Full Member
***
Karma: 0
Posts: 146
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

one 74hc164 is enough if you build the LEDs into a matrix.
If you use resistors, 4 of them are enough.
If you get too much noise, reset the register, or use the 595.
Logged

I also have PIC related web domain.

Utah
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

"practice finding out where the caps shift and the punctuation is on your keyboard"

iMm aAn ammerican ennGenering stuuDEnt engLishness don'ts matter!!!!

Found them by the way.
Logged

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
iMm aAn ammerican ennGenering stuuDEnt engLishness don'ts matter!!!!
Stay away from designing/building anything. You may endanger lives.
Logged

Utah
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why
Logged

Pages: [1]   Go Up
Jump to: