Pages: [1]   Go Down
Author Topic: use 4015 shift register instead of 74595 shift out  (Read 713 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm attempting the ShiftOut tutorial..which is HERE: http://www.arduino.cc/en/Tutorial/ShiftOut

But I'm trying to use the cmos 4015 shift register...which is similiar, the main differences being it lacks a latch pin, and it is actually two separate 4-bit shift registers. I'm trying to just use the first 4-bits right now.

code:

Code:

int dataPin = 11; // digital out 11 from arduino connected to serial input A on 4015
int clockPin = 12; //digital out 12 from ard. connected to clockinput A on 4015

void setup() {
pinMode(dataPin, OUTPUT);
pinMode(clockPin, OUTPUT);
}

void loop(){
for(int i = 0; i < 16; i++){
shiftOut(dataPin, clockPin, LSBFIRST, i);
delay(1000);
}
}


The parallel outputs are connected to 4 separate resistors->LEDS.....

When I try it all the LEDs light up at once and nothing changes....

Think the problem is with my 4015???
Logged

Pages: [1]   Go Up
Jump to: