I have been trying for the last 2 months to make this extremely simple circuit to work, and still am getting nothing. All I need that hasn't been figured out yet, is just the addressable backlighting for the buttons to my custom head unit.
Here's the schematic, which works perfectly on a breadboard when I lay it out identically to how this is shown. However this is not the case when its on my PCB.
With version one of the PCB, I could address QB-QH just fine. But if I tried to turn on QA, the whole thing would start to pulse and haphazardly show different outputs on. I forget which pin I had connected to SER, but it turned out to be tied to one of the ESP's communication pins for uploading. In any case, I had recreated that same circuit on a breadboard, and got the same weird behavior until I assigned the pin to something else. Currently SER: 21, SRCLK: 18, RCLK: 19 on the ESP32. Seeing as I had gotten it to work, I had assumed that everything with it was fine.
Fast forward a bit, I make several changes to the board pertaining to other things, while leaving the shift register's part the same. Despite that, I am still getting the most useless behavior. Now everything is on all the time, except for QA. I cannot turn anything off, cannot address anything to anything. I had for testing purposes another one on a breadboard in parallel with its data pins, and it outputted what I wanted, while the one on the PCB refused to do anything. Basically all and all, both iterations of PCB, the shift register has just been a pain. Yet the identical circuit on a breadboard does what is expected. The only difference between the chips is the breadboard variant is obviously your typical DIP, vs the SOIC variant on the board. On both the breadboard and PCB, I have tried multiple IC's. The behavior is identical to their corresponding environment.
I am genuinely stumped as to what the issue could be.
Yes I am aware that it is being powered at 5V, despite the ESP32's data outputting 3.3V, but I had tested both options and found that the 5V option was simpler, and more reliable, and gave me the brightness I needed.
The board in its current state showing the only behavior I can get:
Solder job (I'm not seeing any bridges nor have found any:
The PCB Drawings:
This is just a test script that I made to work in a vacuum so its not cluttered with the rest of the program:
int serialData = 21; // Black 14 SER
int shiftClock = 18; // Yellow 11 SRCLK
int latchClock = 19; // RED 12
void setup() {
pinMode(serialData, OUTPUT);
pinMode(shiftClock, OUTPUT);
pinMode(latchClock, OUTPUT);
// digitalWrite(latchClock, HIGH);
// shiftOut(serialData, shiftClock, MSBFIRST, 0b00000000);
// digitalWrite(latchClock, LOW);
digitalWrite(clearPin, LOW);
digitalWrite(clearPin, HIGH);
digitalWrite(latchClock, HIGH);
}
void loop() {
digitalWrite(latchClock, LOW);
shiftOut(serialData, shiftClock, MSBFIRST, 0b00000000);
digitalWrite(latchClock, HIGH);
delay(100);
}














