user4874: I am trying to learn how to make a shift register work. I have been working off of the Arduino ShiftOut tutorial.
My issue is that the shift register isn't working when the circuit is powered and I am not sure what is wrong. I suspect the issue is with pins 10-13 on the 74HC595?
I have done this with an actual board and the 123d.circuits.io simulator with the same result:
http://123d.circuits.io/circuits/444111-shift-register

The code is very simple and taken from the tutorial:
// SH_CP; 11
const int clockPin = 9;
// DS; 15
const int dataPin = 8;
// ST_CP; 12
const int latchPin = 10;

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

  Serial.begin(9600);
  Serial.println("reset");
}

void loop() {
  for (int number = 0; number < 256; number++) {
    Serial.println(number);
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, number);
    digitalWrite(latchPin, HIGH);
    delay(500);
  }
}


user4874: Solution: Remove ground from Q0 as Gerben correctly pointed out in comments.
Also: rotate LEDs 90 degrees so that the anode and cathode are on different rows.
What was tripping me up is in the Arduino tutorial diagram is a little unclear on this (I now understand why their way is correct and my way (in the question) was wrong:


4874: <p>I am trying to learn how to make a shift register work. I have been working off of the <a href="http://arduino.cc/en/tutorial/ShiftOut" rel="nofollow noreferrer">Arduino ShiftOut tutorial</a>.</p>

<p>My issue is that the shift register isn't working when the circuit is powered and I am not sure what is wrong. I suspect the issue is with pins 10-13 on the 74HC595?</p>

<p>I have done this with an actual board and the 123d.circuits.io simulator with the same result:</p>

<p><a href="http://123d.circuits.io/circuits/444111-shift-register" rel="nofollow noreferrer">http://123d.circuits.io/circuits/444111-shift-register</a></p>

<p><img src="https://i.stack.imgur.com/fsCkh.png" alt="enter image description here"></p>

<p>The code is very simple and taken from <a href="http://arduino.cc/en/Tutorial/ShftOut12" rel="nofollow noreferrer">the tutorial</a>:</p>

<pre><code>// SH_CP; 11
const int clockPin = 9;
// DS; 15
const int dataPin = 8;
// ST_CP; 12
const int latchPin = 10;

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

  Serial.begin(9600);
  Serial.println("reset");
}

void loop() {
  for (int number = 0; number &lt; 256; number++) {
    Serial.println(number);
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, MSBFIRST, number);
    digitalWrite(latchPin, HIGH);
    delay(500);
  }
}
</code></pre>
 4874: <p>Solution: Remove ground from Q0 as Gerben correctly pointed out in comments.</p>

<p>Also: rotate LEDs 90 degrees so that the anode and cathode are on different rows.</p>

<p>What was tripping me up is in the Arduino tutorial diagram is a little unclear on this (I now understand why their way is correct and my way (in the question) was wrong:</p>

<p><img src="https://i.stack.imgur.com/JYzEK.gif" alt="enter image description here"></p>
