First-Come, First-Serve Circuit Chooses Winners

Aug. 18, 2005
This circuit is a first-come, first-serve selector (see the figure). Its genesis comes from a teacher who asked me to create a "Jeopardy" style quiz show apparatus that offers a fun way to test students. Three contestants each have a simple sing

This circuit is a first-come, first-serve selector (see the figure). Its genesis comes from a teacher who asked me to create a "Jeopardy" style quiz show apparatus that offers a fun way to test students.

Three contestants each have a simple single-pole, single-throw switch to activate when they know the answer. The first one who thinks he or she has the answer locks his or her light on and wins! The contestant switches are SW2, SW3, and SW4. SW1 is used by the moderator to reset and hold the circuit reset until ready to run the quiz.

The circuit takes into account that in an RS flip-flop, when the preset and the clear are both low, the outputs Q and not-Q will be "1." Then when the first preset or clear goes high, the flip-flop will assume the "0-1" or "1-0" state, indicating whether the preset or clear went high first.

U1a, U1b, and U2a debounce the switches. U6a, U3a, and U3b are the RS arbitration flip-flops that determine which contestant is first. U4a, U4b, and U4c decode the arbitration flip-flop outputs to light the winning light or LED. U5a determines when any one switch is pressed, and U5b and U5c generate a delay so that the arbitration flip-flops settle out before the LEDs are illuminated.

The number of arbitration flip-flops needed for a given number of contestants is the combination of the number of contestants taken two at a time. Thus:

F = \[C × (C — 1)\]/2

where F is the number of arbitration flip-flops required, and C is the number of contestants. Therefore, three contestants require three arbitration flip-flops. And, four contestants require six flip-flops.

For the contestant switches, I used a 35-mm film can. The switch was mounted in the bottom of the can so that the person can hold it and push the switch.

R8 is a protection resistor in case the switch wires are shorted to ground. The capacitors reduce the noise on the debouncing flip-flops. With the appropriate drivers and voltage, a lamp could replace the LEDs.

Sponsored Recommendations

What are the Important Considerations when Assessing Cobot Safety?

April 16, 2024
A review of the requirements of ISO/TS 15066 and how they fit in with ISO 10218-1 and 10218-2 a consideration the complexities of collaboration.

Wire & Cable Cutting Digi-Spool® Service

April 16, 2024
Explore DigiKey’s Digi-Spool® professional cutting service for efficient and precise wire and cable management. Custom-cut to your exact specifications for a variety of cable ...

DigiKey Factory Tomorrow Season 3: Sustainable Manufacturing

April 16, 2024
Industry 4.0 is helping manufacturers develop and integrate technologies such as AI, edge computing and connectivity for the factories of tomorrow. Learn more at DigiKey today...

Connectivity – The Backbone of Sustainable Automation

April 16, 2024
Advanced interfaces for signals, data, and electrical power are essential. They help save resources and costs when networking production equipment.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!