• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

3 bit binary input to drive 7 LEDs - totally stumped!

Status
Not open for further replies.

CNO81

New Member
The trick is only using NAND gates and I haven't a clue how to go about doing this! Been mulling it over for a while now...suggestions/help!
 

e

New Member
you mean make a 3 to 8 decoder with nand gates? I just opened a digital book and saw one made with AND gates. Just draw up the truth table and K-map it.
 

CNO81

New Member
1 5
2 4 6
3 7

Thanks for the suggestions, some food for thought! What I was getting at though is if the LEDs are arranged in a dice shape as above and you have an input of 011 (3) and want to light up LEDs 3 4 and 5 how would you go about doing this? Given a 3-8 decoder only changes one output to 1 would I have to be cheeky and simply add inverters onto the other two outputs? To make it easier, it ONLY works when this condition is met, any other input and the lights tay off.
 

nettron1000

New Member
Do you mean a digital LED dice circuit ?

You could set up the LEDs like this:


O***O_____O***O .
O*O*O____ O*O*O
O***O_____O***O
.



And use a randum number generator and counters to drive the LEDs.
 

CNO81

New Member
It doesnt have to be that complicated (im not at that level yet). All I want is an idea of how to make a circuit that IF, for example, 011 was the input then 3 LEDs would light up out of the possible 7, any other input would mean NO LEDs would turn on - for now I don't think the placement is the most important point, im more interested in how to go about implementing the logic gates.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top