Creating a Simple Logic Device

Discussion in 'Homework Help' started by hughesy603, Oct 15, 2015.

  1. hughesy603

    Thread Starter New Member

    Oct 15, 2015
    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!
  2. blocco a spirale

    AAC Fanatic!

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

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

    hughesy603 likes this.
  3. InspectorGadget

    Active Member

    Nov 5, 2010
    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.
    hughesy603 likes this.
  4. Bernard

    AAC Fanatic!

    Aug 7, 2008
    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.
  5. panic mode

    Senior Member

    Oct 10, 2011
    asside from analysing and discussing their operation, there is a more direct approach - buy them and play with them.
    InspectorGadget and GopherT like this.
  6. GopherT

    AAC Fanatic!

    Nov 23, 2012
    That would be like going outside to check the weather! It seems like you are trying to put google out of business.
    Sinus23 and InspectorGadget like this.
  7. WBahn


    Mar 31, 2012
    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.
    InspectorGadget likes this.