When I connect my Arduino with this 74HC595 shift register circuit, all the shift register's outputs go high, and any code I run doesn't seem to change this. Regardless of what I run, all outputs are still high.
I have tried connecting the output enable pin to high (by plugging it into 5 V power) in order to clear all outputs, but that changes nothing.
I have also tried running a simulation of an Arduino using the same circuit I built in person via this website, and it worked perfectly as I expected.
This is what my circuit looks like:
- Red connects to 5 V
- Orange connects to 5 V on the Arduino
- Black connects to ground
- Blue connects to clock pin
- White connects to latch pin
- Yellow connects to serial data input
- Greens connect to LEDs
- I'm using 330 Ω resistors for this circuit
I'm not sure what's causing this problem, especially as this is occurring before any code is run, so I'm assuming it's a circuit problem, and I'm not too familiar with it.