# Creating a Simple Logic Device

#### hughesy603

Joined Oct 15, 2015
1
For my electronics course at my University, I have to create a simple logic device to show my Professor (this may seem very elementary to some of you, so I apologize in advance, but I am just getting started in EE).

This circuit is supposed to have two buttons and an LED. When either one of the buttons is pressed, the LED turns on. If neither or both of the buttons are pressed simultaneously, the LED stays off.

The components I can use are: SPST or SPDT buttons, resistors, transistors, diodes and an LED. Also, I can supply any sort of power I need to the circuit.

I am having trouble designing a circuit diagram for this because I am confused as to how the SPST / SPDT buttons function; namely, which prongs direct the flow of current when pressed or not pressed. I have to be able to recreate this design on a breadboard with wiring clear enough for troubleshooting.

I appreciate any sort of help on how to get started on this design. Thanks all!

#### blocco a spirale

Joined Jun 18, 2008
1,546
SPST and SPDT are not complicated, just google them...

Momentary switches are usually shown in there normal i.e. not pressed state:

Joined Nov 5, 2010
215
The SPDT switch has a common (on the left in blocco's image above) and two other contacts. In the case of a momentary pushbutton, they'd be labeled normally-closed or "NC" for the top right terminal, and normally-open or "NO" on the bottom-right terminal. When you push the button, the diagonal line switches from having the Common connect to the Normally Closed terminal on the top-right to having the Common connect to the Normally-Open terminal on the bottom-right.

You can do the exercise you described entirely with two SPDT pushbuttons. It's like a so-called "3-way light circuit" in the home where you have two different wall switches at either end of a hallway both operating the light in the hall. It's a basic exclusive-or function.

#### Bernard

Joined Aug 7, 2008
5,463
Draw two SPDT switches, Connect + 5V to one common & a 100 ohm resistor in series with a white LED to other common & - (supply return). LED cathode toward - V supply. Now see how to connect remaining terminals to accomplish the task.

#### panic mode

Joined Oct 10, 2011
1,829
I am having trouble designing a circuit diagram for this because I am confused as to how the SPST / SPDT buttons function; namely, which prongs direct the flow of current when pressed or not pressed.
asside from analysing and discussing their operation, there is a more direct approach - buy them and play with them.

#### GopherT

Joined Nov 23, 2012
8,012
asside from analysing and discussing their operation, there is a more direct approach - buy them and play with them.
That would be like going outside to check the weather! It seems like you are trying to put google out of business.

#### WBahn

Joined Mar 31, 2012
25,548
As suggested already, look up what a three-way light circuit is in house wiring and be sure that you understand how it does what it does. Then apply that understanding to your problem.