3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Make a debug display for microcontrollers

Make a debug display for microcontrollers
This display comes in very handy if you work with the ADC function of micro controllers. 

It only needs two pins to control the display (three if you would like to control latch too). With two seven segments it can display up to 0xFF as hex. That is the whole 8bit range, what is the most used variable-width for small uCs. 

I built it because the final application doesn't have a display and I wanted to know what's happening before I finished it.

You need two 74HC959 shift registers, two seven-segment displays and 14 (16) resistors You need 16 if you want to use the dots, which are not implemented in the software. But using the dots would expand the displayable values to 10bit or 0-1027. I leave it up to you to figure this out.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The schematic

The schematic
We use two 74HC595 shift-registers to interface the seven segment displays. Whether you use common anode or common cathode 7-segments  you have to adjust the circuit. I used common cathodes. What means that each segment is one green LED and the cathodes of all LEDs are connected together. (Pins 3 and 8 of the 7-seg. display)
 
 The shift registers work this way: 
Each time you apply a pulse at the shift input, the current state of the serial input pin is shifted in the memory of the 74HC595. Each time a pulse at the latch input arrives the state of the internal memory is used to drive the outputs.
After 8 shift cycles the first input is shifted out at pin9 again and could be used as an input to another 74HC595. This is also called a daisy chain.
The 74HC595 can drive up to 70mA in total, so we have to adjust the resistors in a way that the current through each LED-segment stays below 9mA, which is about 470 Ohm for 5V and the used displays.
 
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Apr 12, 2012. 5:38 AMrobot797 says:
could you give us the code for the arduino
with the 595 in 2 wire mode
i dont care about the flashing
but i need a 2 wire way to controll it on the arduino
Dec 22, 2010. 1:55 AMvitya says:
Good job! It's kind of what I made for myself some time ago. See it here: http://diy.viktak.com/ProjectView.aspx?pid=10 cheers vitya

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
50
Followers
23
Author:andyk75
I like to explorer new things and try out stuff. At the moment I'm in to electronics and LEDs (mainly).