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.
Components
- Mbed Microcontroller
- Pushbutton Switch
- IR Distance Sensor
- uLCD-1.44" LCD Display
Circuit
- LCD
LCD Pin | Mbed Pin |
---|---|
+5V | VU |
RX | p10 |
TX | p9 |
GND | GND |
RES | p11 |
- IR Sensor Pin
Sensor Pin | Mbed Pin |
---|---|
+5V | VU |
GND | GND |
Signal | p20 |
- Pushbutton Pins
Pushbutton Pin | Mbed Pin |
---|---|
High | p30 |
Low | GND |
Program
Import program4180-L4
4180-L4
1 comment on Flappy Bird Using IR Distance Sensor for Randomness:
Please log in to post comments.
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