Dueling Tanks

This is a version of the traditional dueling tanks game using the analog joystick from spark fun, a set of buttons, and a MMA8452 three axis accelerometer for control. the analog joystick controls tank movement and the MMA8452 controls the barrel angle while the buttons are used for menu and fire control. The Sparkfun amplifier is used in conjunction with a breadboard friendly potentiometer to control volume and the Sparkfun SDcard reader is used for audio clips. Haptic feedback is provided through an Adafruit DRV2605L breakout board.

/media/uploads/macenzofan/img_2041_pel1Rbu.jpg

/media/uploads/macenzofan/img_2040_H4pMEsT.jpg

At the heart of the project is the NXT LPC1768 mbed board.

The wiring for this project was completed according to the following pinouts.

Joystick

mbedJoystick
GNDGND
VOUTVCC
p15VERT
p16HORZ
p17SEL

LCD

mbeduLCD
GNDGND
VU5V
TX = p14RX
RX = p13TX
p11RES

amp

mbedTPA2005D1Speaker
GNDPWR-, IN-
VUPWR+
p18IN+
OUT++
OUT--

accelerometer

mbedMMA8452
GNDGND
VOUT3.3V
p28SDA
p27SCL
I2
I1

SD card

mbedMicroSD
GNDGND
VOUTVCC
p8CS
p5DI
p7SCK
p6DO
CD

haptic feedback

mbedDRV2605L
GNDGND
VOUTVIN
p10SCL
p9SDA
IN

Import programDuelingTanks

The classic dueling tanks game for mbed.

Demo Video.


Please log in to post comments.