Create 8-bit Binary Decoder Circuit w/3 Mechanical Switches

Click For Summary

Discussion Overview

The discussion revolves around designing a circuit that utilizes 3 mechanical switches to control 8 LEDs, representing binary combinations. This is framed within the context of an electric circuits class, where participants explore methods to achieve this without using logic gates or integrated circuits.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant inquires about the difficulty of creating a circuit with 3 switches to light up 8 LEDs without using logic gates.
  • Another participant suggests using a 74138 chip, but the original poster clarifies that they cannot use logic chips.
  • A suggestion is made to use transistors to create AND, OR, and NOT functions, while noting that relays could be an expensive alternative.
  • One participant expresses uncertainty about how to create logic using transistors and resistors, despite understanding the truth table.
  • Links to resources on using diodes and resistors to create AND and OR gates are provided.
  • A participant questions what alternatives exist if logic gates are not allowed, emphasizing that many students may not yet understand logic gates due to the course structure.
  • Another participant describes how switches can function as logic gates, suggesting that the arrangement of switches can control the LEDs.
  • One participant mentions the possibility of using various gates available in the lab kit, including NAND gates, to construct the circuit.
  • A final suggestion outlines a method using different types of switches to easily connect to the LEDs, proposing a specific wiring arrangement.

Areas of Agreement / Disagreement

Participants express a variety of approaches and ideas, with no consensus reached on a single method for constructing the circuit. Some participants propose using transistors and resistors, while others suggest utilizing available gates from the lab kit. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

Participants note limitations in knowledge about logic gates due to the course structure, which may affect their ability to engage with the problem fully. There is also mention of potential costs associated with certain components, such as relays.

phantomAI
Messages
17
Reaction score
0
How difficult would it be to create a circuit that uses 3 mechanical switches as inputs to light up 8 LEDs for the binary combinations? This is for my electric circuits class.

I've done one for Logic class, but I was able to use Logic gates and some other extra equipment. So any hints on how I should go about creating one without these logic gates?
 
Engineering news on Phys.org
Do you mean you want to build your own instead of just using something like a 74138 chip?

Cliff
 
Cliff_J said:
Do you mean you want to build your own instead of just using something like a 74138 chip?

Cliff


yeah, I'm not allowed to use a logic chip, so will this be possible?
 
Transistors, lots of them, is one way to create AND, OR, and NOT circuits without using any chips. Relays would work too, but that's an expensive option due to the sheer number needed.

For this, you could start with the truth table for the in/out and then end up with a large breadboard. :)

I'd think it'd be easiest to work from most significant to the least significant to minimize the logic needed quickly, but that's only an opinion.

Cliff
 
this sounds complicated, I'm not even sure how how to create logic from transistors and resistors. I know how the truth table will turn out.
 
Thanks, I'll see if I can make this work
 
What are you supposed to use if you can't use logic gates of any sort?

- Warren
 
chroot said:
What are you supposed to use if you can't use logic gates of any sort?

- Warren


This is for a class that takes place before Logic Design, so most of the students don't know about the logic gates. I'm taking both classes at the same time, but I'm not allowed to use these gates since it gives me an advantage over others.

The project description is as follows:

Design a circuit that uses 3 mechanical switches for its inputs. The "up" position of each switch should represent a binary 1, and the "down" as binary 0. The circuit should light one of 8 LED's for each binary combination of switch positions.
 
  • #10
A simple switch is a logic gate, when 2 switches are placed in parallel they form an OR gate, when in series they from a AND gate.

It looks to me that the goal of this project is to find an arrangement of the 3 switches which will control each of the lights. There are 8 possible positions therefore there should be a way to wire the circuit to control 8 different lights.

Sounds like an exercise in ladder logic. If you ever encounter a PLC this is very nice stuff to know.
 
  • #11
could you post the answer when you get it? thanks,
Martin
 
  • #12
res-diode combinations for AND and OR. Common emitter config bjt for NOT. In principle, you can build any combinatorial logic out of res, diode and bjt.
 
  • #13
I don't know if this is too late, but u are allowed to use the different kind of gates to create this circuit. In your lab kit you should have all the needed gates like for Exaple the chip (74LS00) is 4 NAND gates in one. Try to figure out which one is which I do not have time right now to go over them all, but all the different gates are avalable in your labkit.
 
  • #14
If you are allowed to use (1) a single pole-two position (2) a double pole-two position, and (3) a four pole-two position switch, it is very easy. Simply tie the single pole to power; then tie its two outputs to the two poles of the double pole switch. Then tie the four outputs of the double pole switch to the four inputs of the four pole switch. The eight four pole switch outputs then go to the eight LEDs. They are grounded together.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 49 ·
2
Replies
49
Views
5K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
6K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 8 ·
Replies
8
Views
5K