Flappy Bird Using IR Distance Sensor for Randomness

Overview

This project involved implementing the Flappy Bird game on the mbed microcontroller, using an IR distance sensor as a source of noise. Noise is used as a way to determine the position of the wall's openings. The project uses a single button as a 'flap' input, which increases vertical velocity.

/media/uploads/rfarr6/20141021_134850.jpg /media/uploads/rfarr6/20141021_134856.jpg /media/uploads/rfarr6/20141021_134911.jpg /media/uploads/rfarr6/20141021_135048.jpg

Components

  • Mbed Microcontroller
  • Pushbutton Switch
  • IR Distance Sensor
  • uLCD-1.44" LCD Display

Circuit

  • LCD
LCD PinMbed Pin
+5VVU
RXp10
TXp9
GNDGND
RESp11
  • IR Sensor Pin
Sensor PinMbed Pin
+5VVU
GNDGND
Signalp20
  • Pushbutton Pins
Pushbutton PinMbed Pin
Highp30
LowGND

Program

Import program4180-L4

4180-L4

/media/uploads/rfarr6/20141021_134911.jpg


1 comment on Flappy Bird Using IR Distance Sensor for Randomness:

15 May 2016

Hello,

we had a trouble running the program because we couldn't import the customized library and a message showed that says: "You don't have permission to import the remote repository 4DGL-uLCD-SE.lib". I think you should set the repository visibility to "Public". Does it make a difference if we used a IR sensor (gp2y0a41sk0f 48) instead of (gp2y0a41sk0f 46)

Thank you in advance

Please log in to post comments.