Article View: sci.electronics
Article #8128Re: Design a bar graph
From: chuck
Date: Sat, 03 Nov 1990 22:45
Date: Sat, 03 Nov 1990 22:45
38 lines
1756 bytes
1756 bytes
-Message-Text-Follows-
In article <16307@s.ms.uky.edu>, tindle@ms.uky.edu (Ken Tindle) writes...
>I have three binary lines, for eight possible states (yeah, oh wow). How
>can one light seven LED's from this, with zero having all LED's off and
>seven lighting all seven of them, in bar graph fashion? A dot display is
>easy, but bar is tougher. As a final touch, one should tax each digital
>line with but one standard TTL load.
>
Probably no better than your solution but here are 2 ways I can think
of.
1. Use resitors to binary weight your 3 lines and turn it into analogue.
Then use one of the bar graph driver chips made for stereos. You need
to find one that has linear levals not logrithmic.
2. Use 74XX138 (or is it 139) one of eight decoder to get 1 of eight
lines active low. drive LEDs as follows
+-|\
| >-----+----|<|----330ohm--5v
line n+1------|/ |
|
+----------+
|
+--|\
| >-----+----|<|----330ohm--5v
line n--------|/ |
|
Takes three chips 1 74xx138 and 2 quad and gates. How many did
it take you?
Chuck@mitlns.mit.edu
Technical Details
Message-ID:
<1990Nov3.200047.11252@athena.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!bloom-beacon!daemonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!bloom-beacon!daemon From: chuck@mitlns.mit.edu Newsgroups: sci.electronics Subject: Re: Design a bar graph Message-ID: <1990Nov3.200047.11252@athena.mit.edu> Date: 3 Nov 90 22:45:21 GMT Sender: daemon@athena.mit.edu (Mr Background) Distribution: na Organization: M.I.T. Lab for Nuclear Science Lines: 37