electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
4 bit (dual) LED display
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
PHOBoS



Joined: Jan 14, 2010
Posts: 5581
Location: Moon Base
Audio files: 705

PostPosted: Tue Jan 06, 2015 3:33 pm    Post subject: 4 bit (dual) LED display
Subject description: displaying numbers > 9
Reply with quote  Mark this post and the followings unread

Something I, and probably many others, have wondered about is how to use more than one LED display (for numbers > 9).
I know there are special counter chips that can directly drive displays and can be linked but that's not very useful if you just want
to display a decimal value of a binary number. You could use a PIC or something similar which might be the easiest solution for larger displays.

But I did came up with a simple solution for 4 bits.
My idea was to directly use the input bits for numbers 0..9 and for larger numbers add 6 to it using an adder.
This means that 10 (1010) will become 16 (10000) and by using only the last 4 bits the result is 0.
10 (1010) + 6 = 16 (10000) -> 0000 = 0
11 (1011) + 6 = 17 (10001) -> 0001 = 1
12 (1100) + 6 = 18 (10010) -> 0010 = 2
etc.
So what's needed is a circuit that detects when the input > 9 then add 6 with the adder and at the same time
display a '1' on the second display. (the one on the left)

However it turned out to be even easier to do but still by using an adder.
The only (available) CMOS adder I know is the 4560 and there is something 'special' about this one.
It's an NBCD adder which means that for numbers larger than 9 the output doesn't just count up in binary
but instead starts over from 0 while generating an extra (carry) bit. (it's base-10).
So it detects when the input > 9 then it starts from 0 again and has an extra output bit Shocked
That's what I wanted to do in the first place and this chip already does it all for me Laughing
The only thing to add is something to turn the second display on ('1').

the schematic:
I drew 2 versions, one for CA and one for CC displays. On the left side the adder with the carry out connected to
a transistor to display the '1' (it's connected to segments b and c of the display). The 4-bit outputs of the adder are
connected to the display driver chip (CD4543). A nice feature of this chip is that it can be used for both CA and CC displays
depending on the state of the Phase input (pin 6).

You could display 00..15 instead of 0-15. For this you would have to turn the b and c segments of the second display
permanently on and segments a,d,e,f off for numbers > 9.
And something else I just thought of is making input B1 (pin 14) of the adder high which should result in 1-16 instead of 0-15.

I haven't tested the circuit because I don't have the chips yet but I did already solder it to perf Rolling Eyes
(maybe I'll 'borrow' the chips from another project for testing)


I designed it to use with the fibonacci sequence generator, but made a seperate thread so it doesn't get buried in there.
If someone knows an easy way to display an 8 bit number let me know Wink


4-bit 7 segment LED display V2.gif
 Description:
 Filesize:  81.05 KB
 Viewed:  701 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

4-bit 7 segment LED display V2.gif



_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
hansbuscher



Joined: Jun 01, 2015
Posts: 2
Location: Los Angeles

PostPosted: Fri Jun 23, 2017 4:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Mr. Phobos.
I'm going to use this in my next mfos vari-clock sequencer for a q-clock counter.
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5581
Location: Moon Base
Audio files: 705

PostPosted: Sat Jun 24, 2017 6:07 am    Post subject: Reply with quote  Mark this post and the followings unread

good to hear you can make use of it Very Happy

oh and
welcome party!

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use