Author Topic: Is there a way to simplify this circuit ? (2 players reaction tester game)  (Read 854 times)

tigrou and 1 Guest are viewing this topic.

Online tigrouTopic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: be
This circuit is a 2 players reaction game.
The goal is to be the first to press a button after some random event (eg: buzz sound). This is not from me but from Kosmos 2000 electronic kit.



I was wondering if it was possible to do a 3 players (or more) version and ended with this.
While it works, it use 6 transistors and the 4 players version is going to use 12 transistors !
Is there a way to simplify it ? (eg: use less components)
« Last Edit: December 30, 2024, 11:29:49 pm by tigrou »
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8514
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #1 on: December 31, 2024, 02:33:27 am »
Is there a way to simplify it ? (eg: use less components)
Use a microcontroller ;)
 
The following users thanked this post: Smokey

Online coromonadalix

  • Super Contributor
  • ***
  • Posts: 6931
  • Country: ca
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #2 on: December 31, 2024, 03:21:12 am »
you have many possibilities, 555 based, transistor based. mcu   list goes on and on  etc ...

this one is simple in a way :
https://www.circuits-diy.com/school-college-quiz-buzzer-circuit-electronics-projects/

you can add many stages as you want ...   but simplicity mmm   

your  link does offer some simplicity too, you add more stages ...
 

Offline KrudyZ

  • Frequent Contributor
  • **
  • Posts: 295
  • Country: us
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #3 on: December 31, 2024, 03:37:02 am »
This circuit is a 2 players reaction game.
The goal is to be the first to press a button after some random event (eg: buzz sound). This is not from me but from Kosmos 2000 electronic kit.



I was wondering if it was possible to do a 3 players (or more) version and ended with this.
While it works, it use 6 transistors and the 4 players version is going to use 12 transistors !
Is there a way to simplify it ? (eg: use less components)

The problem with this circuit is that you also "win" by hitting the button before the event happens.
Also, why are the two base resistors of different value???
 

Online tigrouTopic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: be
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #4 on: December 31, 2024, 08:28:38 am »
Is there a way to simplify it ? (eg: use less components)
Use a microcontroller ;)
Sure, but where is the fun ?

The problem with this circuit is that you also "win" by hitting the button before the event happens.
There is other flaws as well, like pressing all 3 buttons at once, then releasing the winning one (and still holding the 2 other buttons) might end up lighting 2 LEDs.
Maybe this only happen in the simulation (which is close to perfect unlike real world).

Also, why are the two base resistors of different value???
Probably because the kit only provide a limited set of resistors, so two different values had to be used.
The circuit is here.

you have many possibilities, 555 based, transistor based. mcu   list goes on and on  etc ...

this one is simple in a way :
https://www.circuits-diy.com/school-college-quiz-buzzer-circuit-electronics-projects/

you can add many stages as you want ...   but simplicity mmm   

your  link does offer some simplicity too, you add more stages ...

I like it. Thanks. I also start thinking about using a bunch of logic gates (usually multiple ones are packed in a single IC).
« Last Edit: December 31, 2024, 08:49:11 am by tigrou »
 

Offline jpanhalt

  • Super Contributor
  • ***
  • Posts: 3974
  • Country: us
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #5 on: December 31, 2024, 09:36:59 am »
I think you need a latch.  In Jeopardy, some (most) contestants hit the button and release.  That would allow a very close second place light to stay on if its button was held.

A switch debouncer circuit may work, but I second the micro as the simplest solution.  Plus, the micro will give you the option of showing reaction time in milliseconds.
 

Online tigrouTopic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: be
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #6 on: December 31, 2024, 11:24:23 am »
I think you need a latch.  In Jeopardy, some (most) contestants hit the button and release.  That would allow a very close second place light to stay on if its button was held.

A switch debouncer circuit may work, but I second the micro as the simplest solution.  Plus, the micro will give you the option of showing reaction time in milliseconds.

Something like that.

As a bonus :
- Reset pin is used to reset the whole thing
- D pin is used to prevent players pressing button before they are allowed to do so (input is ignored). Holding button before that signal will have no effect.
« Last Edit: January 01, 2025, 02:31:53 pm by tigrou »
 

Offline jpanhalt

  • Super Contributor
  • ***
  • Posts: 3974
  • Country: us
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #7 on: December 31, 2024, 11:34:54 am »
That does seem to work and latches.  But, it's a lot of parts and still doesn't give the time.  Being the fastest of three is important, but an actual time that you can wear on an arm band is more impressive for bragging rights.
 

Online tigrouTopic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: be
Here is 555 version, based on coromonadalix answer.

Improved version of the OP circuit, using only transistors / resistors / diodes
There is probably lot of things to be improved (suggestions are welcome) but it's much better as it can scale easily.
« Last Edit: January 02, 2025, 11:17:52 pm by tigrou »
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8514
If you don't want to use an MCU, how about a small CPLD?
 

Online tigrouTopic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: be
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #10 on: January 03, 2025, 02:38:40 pm »
Challenge accepted  ;D

Code: [Select]
module quizz (
    input wire reset,     
    input wire enabled,
    input wire player1,   
    input wire player2,   
    input wire player3,   
    output reg led1,       
    output reg led2,       
    output reg led3       
);
  wire allowed = !(led1 | led2 | led3) && enabled;

  always @(posedge player1 or posedge reset) begin
      if (reset) begin
            led1 = 1'b0;
        end else begin
            led1 = allowed;
        end
    end
 
  always @(posedge player2 or posedge reset) begin
      if (reset) begin
            led2 = 1'b0;
        end else begin
            led2 = allowed;
        end
    end 
 
  always @(posedge player3 or posedge reset) begin
      if (reset) begin
            led3 = 1'b0;
        end else begin
            led3 = allowed;
        end
    end   

endmodule

Can be tested here

The synthetized layout is as simple as it can be :
« Last Edit: January 03, 2025, 09:22:23 pm by tigrou »
 

Offline jimmc

  • Frequent Contributor
  • **
  • Posts: 305
  • Country: gb
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #11 on: January 03, 2025, 03:39:37 pm »
How about this, can be expanded as required
 
The following users thanked this post: tigrou

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6366
  • Country: es
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #12 on: January 03, 2025, 04:22:27 pm »
Here you have, unlimited players, zero parts, the one that touches enables a very bright indicator.

« Last Edit: January 03, 2025, 04:24:23 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: amyk

Online tigrouTopic starter

  • Regular Contributor
  • *
  • Posts: 90
  • Country: be
Re: Is there a way to simplify this circuit ? (2 players reaction tester game)
« Reply #13 on: January 03, 2025, 05:22:28 pm »
How about this, can be expanded as required

Works like a charm.

Here you have, unlimited players, zero parts, the one that touches enables a very bright indicator.

(Attachment Link)

 :-DD
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf