Maker Pro
Maker Pro

Reaction Game

Hi All,
I need a bit if advise.
I am designing a childs reaction game. there are 4 LEDS and push-button type switches.
The LEDs will light uo randomly and the children will hit the key relating to the lit LED.
This will be done with a PIC micro and written in C.

What would be the best way for me to detect the keys? I envisage connecting LEDS to the PORT of the PIC and similarly the
lkeys to 4 individual I/O lines of the micro via 10k pull-up resistors.

Any help would be appreciated.
Best regards,
Raj
 
That should work.
Be sure to use very robust momentary switches as input devices. Kids can be very enthusiastic/destructive :D.
 
Hi,
I just wanted to know this is my idea:
for example 2 LEDs are lit (these will be on PORTB 0, 1, 2, 3 of the micro. Say bit 1 and Bit 3 are lit. I need to mask these off and then compare the appropriate switches connected to PORT B bits 4-7, so the key presses will be bit 4 and bit 6.
I hope that makes sense.
Yes, thanks for the advice regatrding robust switches :)
Best regards,
raj
 
Top