Digital logic design projects

download Digital logic design projects

of 23

Transcript of Digital logic design projects

  • 7/30/2019 Digital logic design projects

    1/23

    The ICs for the 20 Step circuit board are not

    available at this time.

    Traffic Light Control Circuit

    20 Output Sequencing Circuit

    This page features a circuit that has twenty open collector outputs that turn on one at

    a time in a continuous, unidirectional loop sequence. The circuit uses the 74LSxx

    family of TTL integrated logic devices. The circuits are designed to drive light

    emitting diodes or low current, low voltage incandescent lights but can also drive

    other loads of up to 80 milliamps.

    As logic circuits go, the 20 Step circuit is fairly simple but due to the nature of the

    TTL Logic devices used, care must be taken when wiring these circuits. Simply put;

    The neater the wiring the better.

    NOTE: The 20 Step Circuit does not work in circuit simulation programs. The likely

    cause is that this circuit uses input states that force the outputs of the 74LS145 drivers

    to be turned off. These states would normally not be used with these devices and are

    probably not programmed into the simulator's software.

    If you would like to make use of these circuits, take the time to find and read at least

    the first 2 pages of the manufactures datasheets for the integrated circuits.

    UsingGoogle, search for "74ls(part number)" in the first box and "PDF" in the second

    box on the advanced search page.

    A printed circuit board and parts are available for thiscircuit.

    http://home.cogeco.ca/~rpaisley4/20step.html#Traffichttp://home.cogeco.ca/~rpaisley4/20step.html#Traffichttp://www.google.com/advanced_search?hl=enhttp://www.google.com/advanced_search?hl=enhttp://www.google.com/advanced_search?hl=enhttp://home.cogeco.ca/~rpaisley4/20step.html#PCBhttp://home.cogeco.ca/~rpaisley4/20step.html#PCBhttp://home.cogeco.ca/~rpaisley4/20step.html#PCBhttp://home.cogeco.ca/~rpaisley4/20step.html#PCBhttp://home.cogeco.ca/~rpaisley4/20step.html#PCBhttp://www.google.com/advanced_search?hl=enhttp://home.cogeco.ca/~rpaisley4/20step.html#Traffichttp://home.cogeco.ca/~rpaisley4/20step.html#Traffic
  • 7/30/2019 Digital logic design projects

    2/23

    20 Output Sequencing CircuitThe following schematic is for the 20 Output Sequencing Circuit on the circuitboard

    shown above.

  • 7/30/2019 Digital logic design projects

    3/23

    Basic Circuit Operation

    The circuit is stepped through the sequence by an adjustable LM555 astable

    oscillator.

    The Oscillators output is divided by a 74LS90 divider into a 10 step BCD

    weighted output.

  • 7/30/2019 Digital logic design projects

    4/23

    The BCD output then drives two 74LS145 - 1 of 10 decoders (See Notes) that

    are used to produce a 1 of 20 step output sequence.

    Notes

    The circuit does not drive the 74LS145's directly but uses a 74LS107 JK Flip-

    Flop and four 74LS32 dual input OR gates to control to the inputs to the two

    74LS145 output drivers. The 74LS107 and 74LS32 are used to create

    disallowed states in the output drivers alternately. The disallowed states prevent

    any of the ten outputs on that particular device from being turned ON while the

    other 74LS145 is in counting to ten.

    This produces a system where only one of the 74LS145's is able to produce a

    LOW output state at a time. In essence the circuit counts to 10 twice in

    succession rather than counting to 20 in a single cycle.

    This is an unusual logic scheme but it allows the circuit to make economicaluse of the open collector outputs of the 74LS145s decoder/drivers rather using

    output buffer ICs that are driven by 74LS138 logic devices which have eight

    steps.

    The TTL family devices used in the circuit require a regulated 5 volt supply

    and draw approximately 60 miliamps.

    The outputs of the 74LS145's can be supplied from up to 15 Volts with a

    maximum current of 80 milliamps.

    The circuit above is shown in a continuous running mode. The circuit can also

    be stopped and reset externally as shown in later diagrams.

    74LS145 Equivalent Output Circuit

  • 7/30/2019 Digital logic design projects

    5/23

    Parts List

    The following is a parts list for use with the 20 Output Sequencing Circuit.Mouser

    Electronicspart numbers are shown but the parts may be available from other sources

    as well. Suppliers that handle 'NTE' components should be able to get the ICs.

    Part Number Mouser Description Mouser Part # QTY

    VR 1 - Voltage Regulators TO-92 5.0V 0.1A - 511-L78L05ABZ - 1

    IC 1 - Timers DIP-8 Single Timer - 512-LM555CN - 1

    IC 2 - DECADE COUNTER DIP14 - 526-NTE74LS90 - 1

    IC 3 - DUAL J-K F/F DIP-14 - 526-NTE74LS107 - 1

    IC 4 - QUAD 2-IN OR DIP-14 - 526-NTE74LS32 - 1

    http://www.mouser.com/http://www.mouser.com/http://www.mouser.com/http://www.mouser.com/http://www.mouser.com/http://www.mouser.com/
  • 7/30/2019 Digital logic design projects

    6/23

    IC 5, 6 - BCD-DEC DECODER DP16 - 595-SN74LS145N - 2

    R1 - 100K ohm / 1/4 Watt Carbon Resistor - 660-CF1/4C104J - 1

    R2 - Trimmer Potentiometers 1Mohms 6mm - 531-PT6KV-1M - 1

    R3 - 470 ohm / 1/4 Watt Carbon Resistor - 660-CF1/4C471J - 1

    C1, C3 - Radial Electrolytic Capacitors 25V 10uF - 140-XRL25V10 - 2

    C2 - Radial Electrolytic Capacitors 25V 1.0uF - 140-XRL25V1.0 - 1

    D1 - Green 3mm LED - 859-LTL-4231 - 1

    - - 2 Position Terminal Block - 5mm - 651-1729018 - 1

    The 1N4148 diodes for the traffic signals shown below are Mouser part number 78-

    1N4148.

    NOTE: The LEDS for the traffic signal lights must be selected by the user as their

    size and style depend on the mounting.

    20 Output Circuit - PCB Parts Placement Diagram

    Save and print this diagram to aid in assembling the circuitboard.

    Circuit Board Parts Placement Diagram

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    20 Output Sequencing Circuit PCB And

    Parts

    http://home.cogeco.ca/~rpaisley4/20stepPartsPlace.GIFhttp://home.cogeco.ca/~rpaisley4/20stepPartsPlace.GIFhttp://home.cogeco.ca/~rpaisley4/20stepPartsPlace.GIFhttp://home.cogeco.ca/~rpaisley4/20stepPartsPlace.GIF
  • 7/30/2019 Digital logic design projects

    7/23

    20 Output Sequencing Circuit PCB - Assembled Example

    The printed circuit board is 2.9 inches square and has been commercially made.

    The picture shows the circuit board wired for continuous running for the Traffic

    Light Control circuit. Other modes of operation will be shown in diagrams lower on

    the page.

    The ICs for the 20 Step circuit board are not

    available at this time. The price of the 20 Output Sequencing Circuit circuit boards is: $12.50 US each plus

    postage. (Each additional board is 12.00 dollars.)

    NOTE: Some of the components supplied with the kit are not from Mouser Electronics.

  • 7/30/2019 Digital logic design projects

    8/23

    If you are interested in printed circuit boards and parts for this circuit, please send an

    email to the following address:[email protected]

    Your message will be answered as soon as possible.

    20 Step LED Circuit

    The next diagram shows a simple 20 LED driver circuit. Only one current limiting resistor is

    needed as only one LED can be on at a time.

    http://home.cogeco.ca/~rpaisley4/email.htmlhttp://home.cogeco.ca/~rpaisley4/email.htmlhttp://home.cogeco.ca/~rpaisley4/email.htmlhttp://home.cogeco.ca/~rpaisley4/email.html
  • 7/30/2019 Digital logic design projects

    9/23

    Single Traffic Light Control Circuit

    If you only need to control a one set of traffic lights for a display, refer to theSingle Traffic

    Light Driver Circuitpage at this site.

    20 Step Traffic Light Schematic

    The next diagram shows the output of the 20 Step circuit being used to control a set of traffic

    Lights.

    http://home.cogeco.ca/~rpaisley4/SingleTrafficLight12.htmlhttp://home.cogeco.ca/~rpaisley4/SingleTrafficLight12.htmlhttp://home.cogeco.ca/~rpaisley4/SingleTrafficLight12.htmlhttp://home.cogeco.ca/~rpaisley4/SingleTrafficLight12.htmlhttp://home.cogeco.ca/~rpaisley4/SingleTrafficLight12.htmlhttp://home.cogeco.ca/~rpaisley4/SingleTrafficLight12.html
  • 7/30/2019 Digital logic design projects

    10/23

  • 7/30/2019 Digital logic design projects

    11/23

    As drawn, the traffic light circuit allows the lights in one direction to be GREEN for 7 steps of

    the counter, Yellow for 2 steps and RED for 1 step before the light turns GREEN in the opposite

    direction. The RED signals for one direction are slaved to the GREEN, YELLOW and RED ofthe other direction though the six 1N4148 diodes.

    Other light sequence steps can be created by shifting the circuits outputs as long as the totalnumber of steps totals twenty.

    Advanced GREEN lighting could be added but the flashing would have to be done externally tothe PCB circuit.

    When LEDs are used, it is possible to control up to five sets of traffic signals with one 20 Step

    circuit. Only one set of 1N4148 diodes are needed and the signals would all be synchronized.

    Traffic Light Circuit For A 'T' Intersection

    The next circuit has the same function as the one above but can drive higher current lamps such

    as the #1157 automotive bulb.

    http://home.cogeco.ca/~rpaisley4/20stepTrafficT.GIFhttp://home.cogeco.ca/~rpaisley4/20stepTrafficT.GIFhttp://home.cogeco.ca/~rpaisley4/20stepTrafficT.GIFhttp://home.cogeco.ca/~rpaisley4/20stepTrafficT.GIF
  • 7/30/2019 Digital logic design projects

    12/23

    Manual Control Circuits

    The following circuits allow the 20 Step circuit to be controlled manually and to have a

    shortened sequence length.

  • 7/30/2019 Digital logic design projects

    13/23

    Stop, Start and Reset

    The next diagram and image shows external controls that can be used to manually Start, Stop

    and Reset the circuit. When the circuit is reset the 555 clock will stop and the number 1 outputwill go to a LOW state.

    If the RESET terminal is held LOW the circuit will run continuously. The RUN terminal has

    limitations (CLOCK input of the 74LS107) that are explained on the data sheet for the device.

    The next photo shows the location of the RUN and RESET connections on the circuit board. A

    jumper normally between the RUN connection and the circuit common must be removed first.Also shown are 5 volt and common connections that can be used to power external circuitry.

    If the 555 timer is removed, an external clock could be used to step the circuit. Alternately the

    circuit's 555 clock could provide an output to and external circuit.

  • 7/30/2019 Digital logic design projects

    14/23

    Manual Step And Reset

    The next diagram shows external controls that can be used to Step the circuit manually and

    reset the output to 1 - 0 LOW.

    When push button S1 is closed the output of the 555 clock will go LOW and the output of the

    circuit will advance by one step. When DPDT switch S2 is moved to the right the circuit is resetand counting cannot advance.

    NOTE: The variable resistor R2 has been removed from the circuitboard.

  • 7/30/2019 Digital logic design projects

    15/23

    Additional 20 Step Circuits

    Shortened Sequence Length

  • 7/30/2019 Digital logic design projects

    16/23

    The number of steps in the sequence can be reduced by connecting an external resetting circuit

    to one of the outputs of the circuit.

    The resetting circuit uses an external 556 timer to provide complimentary HIGH and LOW

    outputs that are connected to the 'RESET' and 'RUN' terminals of the circuit board. In the

    example shown the reset pulse is approximately 0.1 seconds long but could be of any length asset by resistor R-R and capacitor C-R.

    Holes and pads are already on the main circuitboard to facilitate the RESET connections.

  • 7/30/2019 Digital logic design projects

    17/23

  • 7/30/2019 Digital logic design projects

    18/23

    NOTE: Due to the nature of 555 timers, after a reset, the first clock pulse from IC 1 will be

    slightly longer than the normal clock pulses.

    The reset circuit's input is shown connected to output 1 - 5 but can be connected to any of the

    20 outputs.

    Switch S1 disables the shortened cycle.

    Shortened Sequence Length For Paralleled Outputs

    The next diagram illustrates how to connect the 556 resetting circuit when outputs of the 20

    Step circuit are connected in parallel.

  • 7/30/2019 Digital logic design projects

    19/23

    The diode at output 1 - 3 isolates the resetting circuit's input from the other outputs in the group.

    Stopping The Output Cycle

    The cycle can be stopped at a particular output by connecting that output to pin 7 of timer IC 1.

    When output 1 - 5 goes LOW it will connect pin 7 of IC 1 to ground and stop the timer.

    When the cycle is stopped, the output of IC 1 will be forced HIGH and LED D1 will turn OFF.

  • 7/30/2019 Digital logic design projects

    20/23

    The diode prevents the voltage at the output of the circuit from being fed back to IC 1 when the

    circuit is running normally.

    Manual controls are used to reset and restart the circuit.

  • 7/30/2019 Digital logic design projects

    21/23

    10 and 40 Step Circuits

    10 Step Circuit

    The next diagram shows the 10 Step circuit from which the 20 Step circuit was developed. (Nocircuitboard is available for this circuit.)

    40 Step Circuit

    It is possible to have longer step cycles by using a 4 stage Shift Register instead of the JK Flip-

    Flop as in the 20 step circuit. The following diagram is an example of a circuit with a 40 step

    sequence.

    NOTE: This circuit is not complete and is presented for information purposes only.

  • 7/30/2019 Digital logic design projects

    22/23

  • 7/30/2019 Digital logic design projects

    23/23

    Return to the Main Page

    Please Read Before Using These Circuit Ideas

    The explanations for the circuits on these pages cannot hope to cover every situation on

    every layout. For this reason be prepared to do some experimenting to get the results you

    want. This is especially true of circuits such as the "Across Track Infrared Detection"

    circuits and any other circuit that relies on other than direct electronic inputs, such as

    switches.

    If you use any of these circuit ideas, ask your parts supplier for a copy of themanufacturers data sheets for any components that you have not used before. These sheets

    contain a wealth of data and circuit design information that no electronic or print article

    could approach and will save time and perhaps damage to the components themselves.

    These data sheets can often be found on the web site of the device manufacturers.

    Although the circuits are functional the pages are not meant to be full descriptions of each

    circuit but rather as guides for adapting them for use by others. If you have any questions

    or comments please send them to the email address on the Circuit Index page.

    Return to the Main Page

    01 November, 2012

    27 August, 2011

    http://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.htmlhttp://home.cogeco.ca/~rpaisley4/CircuitIndex.html