When nothing lights
Five things a chain does when it is wrong, and the one measurement or one line of code that settles each of them. None of them start with rewiring.
Start with the symptom
Almost every fault on this board is one of five things, and each has one check that settles it. Work from the symptom rather than from the wiring, because rewiring a chain that is already right is how a working display becomes a broken one.
The two measurements worth taking
Twelve volts, against your board's ground. Black probe on a GND pin of the microcontroller, red probe on the module's 12V pin. Twelve volts there means both the supply and the shared ground are good. Reading it against the supply's own negative lead instead proves only that the adapter works, which was never in doubt.
Continuity across the join. With everything switched off, a continuity test from the first module's DATAOUT pin to the second module's DATAIN pin. That single link is the one connection in a chain that is not duplicated anywhere, so it is the one whose failure has a symptom of its own: the near module counts and the far one stays dark.
The faults that are not electrical
Two of the five are in the sketch, and they have shapes you can recognise.
A flicker while the number changes is the latch being pulsed between bytes
rather than once at the end. Move the two digitalWrite(LAT, …) calls outside
the shiftOut loop.
Digits in the wrong order is the array being filled the wrong way round.
buf[0] goes out first and therefore travels furthest, so it is the leftmost
digit.
Neither of those is worth a meter, and neither is fixed by moving a wire.
When it is genuinely the module
Rare, and it has a specific look: one segment that never lights whatever you
send, on one module, while everything else behaves. Send 0xFF — all seven
bars and the point — and any bar still dark is that segment's own line.
Swap the module with another from the box before concluding anything. If the fault moves with the board it is the board; if it stays in the same position on the bench, it is the wiring or the joint feeding it.
When it does not work
Measure 12 V at the module's 12V pin with the black probe on your board's GND rather than the supply's. Reading it against the supply's own ground proves the supply works and tells you nothing about whether the two grounds are joined, which is the fault you are looking for.
A connection, not a sketch. Press gently on each joint in turn with the display running: the one that changes the picture is the one to reflow. Intermittent faults in a chain are almost always at an edge — either the wires from your board or the joint between two modules.
You are sending one byte and latching. Both registers hold what they held, and the one furthest from your board never received anything new. Check NUM_DIGITS against the number of modules actually joined together.
Suspect the supply before the module. A 12 V adapter that is undersized, or a battery that has sagged, drops under the load of a full chain and takes the segments close to the voltage below which they do nothing at all. Measure the 12 V rail while the display is lit rather than before you connect it.
The same chip and the same three wires on a breadboard-sized digit, with no second supply to think about.
The small 74HC595 segment module →Edit this page — content/books/4-inch-7-segment/when-nothing-lights.mdx
Questions about this product
See what other owners have asked, and read their solutions.
4″ 7-Segment LED Display with 74HC595
Loading discussions…
Discuss this article
Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.