Bop-it Game

Project by Jace Hall and Jesse Duomund

400

Description

mbed version of Bop-it! game. LCD panel will tell you the action. Buzzer will beep and an external LED will blink to let you know to complete an action.
Actions are:

  • Bop-it! (tap the accelerometer)
  • Slide-it! (slide the slider to the opposite side)
  • Touch 3! (touch three squares on the touch sensor)

If you touch the wrong sensor or fail to complete the required action in time you will fail. You must reset the mbed if you fail to play again!

Equipment

Connections

Remember pullup resistors on I2C lines (4.7k) and external LEDs (1k)

AccelSlidermbedTouch PanelLCDMosfetSpeaker
SCLp7
SDAp5
SDOp6
INT2 (NULL)
INT1p11
CSp8
DATAp20
GNDGNDGNDGNDGNDSystem Negative
VCCVCC(+)VCCVCCSystem Positive
p21System C
Device +Positive
Device -Negative
p28SDA
p27SCL
p26IRQ
5VVCC
GNDGND
GND via 1k resistorVO
p12RS
GNDRW
p13E
DO(NC)
D1(NC)
D2(NC)
D3 (NC)
p14D4
p15D5
p16D6
p17D7
p29 (external LED 1)
p30 (External LED 2)

Video

Code

Import programLab3_1

Bop-It Game

Issues Encountered

Acc. Use one-axis with the tap function. Using I2C with touch sensor and interrupts can be troublesome. Use a custom IRQ handler and set priorities to get rid of issues. Improve the game by making the IRQ handler!


Please log in to post comments.