Fork me on GitHub

Project Notes

#177 7-Segment Shift Drive

Test control of a 7-segment LED display via a 74HC595 shift register.

Here’s a quick video of the circuit in action:

LED7Segment/ShiftDrive

Notes

While you can wire up each segment pin to a digital out on the Arduino as in the LED7Segment/DirectDrive project, it soon becomes pretty wasteful of pins. This project uses a 74HC595 8-bit shift register to feed segment values, requiring only 3 pins.

Since the 74HC595 has latched outputs, it also means all segment changes are simulataneous.

Register-Pin Mapping

Here’s a summary of how the bits in the shift register are mapped to LED segments:

Bit Segment
0 A - top horizontal
1 B - top right vertical
2 C - bottom right vertical
3 D - bottom horizontal
4 E - bottom left vertical
5 F - top left vertical
6 G - center horizontal
7 dp - decimal point

However the code uses bytes to represent dp,G,F..A from MSB to LSB, so I use MSBFIRST transfer.

Construction

Breadboard

The Schematic

The Build

Credits and References

About LEAP#177 LED7-SegmentCMOS/TTLArduino

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader