Go Down

Topic: use 4015 shift register instead of 74595 shift out (Read 1 time) previous topic - next topic


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: [Select]

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);

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???

Go Up