Reaction Time

This is a game designed to test reaction speed between two players. It uses a pushbutton as one controller, and a phone paired through bluetooth as the other controller. The results are then displayed over serial.

These are the parts that were used:

Wiring

microSD Transflash Breakout

mbedBreakout
p8CS
p5DI
VoutVcc
p7SCK
GNDGND
p6DO

Mono Audio Amp Breakout

mbedTPA2005D1Speaker
gndpwr - (gnd), in -
Vout (3.3V) or 5Vpwr +
p26 (PWM)in +
out ++
out --
Any DigitalOut px(optional)S (low for shutdown)

Adafruit Bluefruit LE UART Friend

mbed=Adafruit BLE
gndgnd
VU(5v)Vin
ncRTS
GndCTS
p27 (Serial RX)TXO
p28 (Serial TX)RXI

PushButton

mbedButton
GND-
p14+

/media/uploads/imic1/image1.jpg Breadboard with a finished game shown on mbed LEDs.

Code for Game

Import programReactionGame

A game testing reaction time between two people using a pushbutton as one controller and a phone connected with bluetooth as the other.


Please log in to post comments.