Mbed Space Invaders

Description

An mbed version of the classic game Space Invaders implemented on the mbed LPC1768 with a navigation switch (joystick), pushbutton, speaker, audio amplifier, SD card reader, and a uLCD display.

Hardware

  • mbed LPC1768
  • Sparkfun 5-Way Tactile Switch Breakout
  • Pushbutton
  • Speaker
  • Audio Amplifier (Optional)
  • SD Card Reader
  • uLCD-4DGL

Schematic

Sparkfun 5-Way Tactile Switch Breakout

mbed LPC1768Sparkfun 5-Way Tactile Switch Breakout
gnd-
p13U- up
p12C - center
p11L - left
p10D - down
p9R - right

Pushbutton

Pulldown pushbutton connected to pin 15.

Speaker

Note: For optional setup, see Speaker mbed wikipage: Speaker Wiki Page

mbedSpeaker
p18+
gnd-

SD Card Reader

mbedSD Card Reader
p8CS
p5DI
VoutVCC
p7SCK
GndGnd
p6D0

uLCD_4DGL

mbeduLCD HeaderuLCD Cable
5V=VU5V5V
GndGndGnd
TX=p28RXTX
RX=p27TXRX
p29ResetReset

Setup for Mbed Space Invaders

/media/uploads/michaeljson/space_invaders_setup.jpg

Gameplay

Code

Import programMbed Space Invaders

An mbed version of the classic game Space Invaders implemented on the mbed LPC1768 with a navigation switch (joystick), pushbutton, speaker, audio amplifier, SD card reader, and a uLCD display.


Please log in to post comments.