how much shift register can Attiny can handle

hi guys, i new to arduino, so far i can program 8 leds with a 74hc595 chip to make them blink one by one at a time.

but now i want it to control 16 leds and have the same effect. do i have to create 2 binary high and low? something like that?

The wiring is done , it is almost same as this :http://bildr.org/2011/02/74hc595/

here my current code for 8 leds:

int clockPin = 12; //IC Pin 11, Yellow Jumper
int dataPin = 11; //IC Pin 14, Blue Jumper
int latchPin = 8; //IC Pin 12, Green Jumper
const int buttonPin = 2;  
int buttonState = 0;
int potPin = A0;    // select the input pin for the potentiometer
int val = 0;       // variable to store the value coming from the sensor

byte patterns[9] = {
B00000000,
B10000000,
B01000000,
B00100000,
B00010000,
B00001000,
B00000100,
B00000010,
B00000001
};

int index = 0;
int count = 8;

void setup() {
pinMode(buttonPin, INPUT);  
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
 Serial.begin(9600);
}

void loop() {
buttonState = digitalRead(buttonPin);
val = analogRead(potPin); 
 Serial.println(val);
if (buttonState == HIGH){
    
  for (int i=1;i<10;i++){
  digitalWrite(latchPin, LOW);
  shiftOut(dataPin, clockPin, LSBFIRST, patterns[i]);
  digitalWrite(latchPin, HIGH);
  delay(val);
  }
}else {
  digitalWrite(latchPin, LOW);
  shiftOut(dataPin, clockPin, LSBFIRST,0);
  digitalWrite(latchPin, HIGH);
}
}

okay i just solve that problem, another question is that how much shift register can attiny85 can handle?

how much shift register can Attiny85 can handle?

i am planning to power up 60 Leds from Attiny 85 is that possible? they are 12 v leds, and i am using 74hc595 pair with uln2003A for each 7 or 8 leds.

please help me out

(deleted)

(deleted)

george221:
how much shift register can Attiny85 can handle?

It depends a lot on how they're arranged and the ingenuity of the person who writes the software.

george221:
i am planning to power up 60 Leds from Attiny 85 is that possible?

Sure. With only 60 LEDs you can use a whole byte to store the LED state, no problem.

Go simpler tho - TPIC6B595, like a HC595 and ULN2803 combined into one package.
I've got 27 daisychained right now. Buffered the SCK & latch line, they drives 3 inputs, the buffers then drive 9 shift registers. Planning ahead for 45 daisychained.
Make sure you have 0.1uF cap on Vcc of each device.

tpic6b595.pdf (427 KB)

Here's arduino functionality combined with TPIC6B595s to drive up to 96 LEDs, or 96 LED strings.
Kits & cards for sale.
http://www.crossroadsfencing.com/BobuinoRev17/

Thanks guys, it helps alot

it there any other finish product for this kind of application?

Maybe. ATtiny85 doesn't have that much memory for doing stuff. I used an Atmega1284P with 16K SRAM for my large shift register design.

I design cards for folks all the time. You need something custom? I can do that.

6 IO pins, and
– 8K Bytes of In-System Programmable Program Memory Flash
• Endurance: 10,000 Write/Erase Cycles
– 512 Bytes In-System Programmable EEPROM
• Endurance: 100,000 Write/Erase Cycles
– 512 Bytes Internal SRAM

k i will try it out first if it doesn't go well, i will just buy it