Flappy Bird Game Full Report PDF
Flappy Bird Game Full Report PDF
Flappy Bird Game Full Report PDF
Submitted by
ARAVIND M 16TUEC013
ASHWIN M 16TUEC020
20
BALAVRUTHISH S 16TUEC023
Kovaipudur, Coimbatore-641042.
Coimbatore
MARCH – 2019
1
BONAFIDE CERTIFICATE
Certified this mini project report “ARDUINO LCD GAME” is the bonafide work
of “ARAVIND.M, ASHWIN.M, BALAVRUTHISH.S ”, who carried out the
mini project work under my supervision.
__________________ __________________
SIGNATURE SIGNATURE
Dr. R. UDAIYA KUMAR ,M.E.,Ph.D, Mr. S. GANESH PRABHU,M.E.,
HEAD OF THE DEPARTMENT SUPERVISOR
Professor and Head, Assistant Professor,
Department of Electronics and Department of Electronics and
Communication Engineering Communication Engineering
Sri Krishna College of Sri Krishna College of
Technology, Technology,
Coimbatore-640142 Coimbatore-641042
………………………… ..………………………
2
ACKNOWLEDGEMENT
Firstand foremost, we bow our head to the ALMIGHTY for being our light
and for his gracious showers of blessings throughout the course of this mini
project.
We record our genuine gratitude and respect to our Head of the Department,
Dr.R.UDAIYAKUMAR, M.E., Ph.D., Department of Electronics and
Communication Engineering, Sri Krishna College of Technology, for his noble
attention and eminent guidance throughout the mini project work.
3
Table of Contents
LIST OF FIGURES 6
1. INTRODUCTION 7
2. COMPONENTS 7
3. CIRCUIT 11
4.2. OUTPUTS 24
5. CONCLUSION 25
5.1. REFERENCE 26
4
ABSTRACT
on both Android and iOS platforms. The aim of the game is simple, try
to fly the bird, which is called “Faby”, between the green pipes without
hitting them. Due to its addictive nature, the developer of the game
discontinued the game from both the channels (Google Play Store and
and cloned versions were released. In this project, we will take the
concept of the game and implement a Flappy Bird Game using Arduino.
invest heavily into the project and implement the Flappy Bird Game using
5
LIST OF FIGURES
1 ARDUINO UNO 10
3 CIRCUIT DIAGRAM 13
4 OUTPUT 1 24
5 OUTPUT 2 24
6 OUTPUT 3 25
6
1. INTRODUCTION
very simple. We have replicated the bird with the character “0” and
“#”, one for the top row and the other for bottom row. The aim of
2.COMPONENTS
• Arduino UNO
7
• 16×2 LCD Display
• Push Button
• Connecting Wires
• Breadboard
• 5V Power Supply
ARDUINO UNO:
boards (shields) and other circuits. The board has 14 Digital pins, 6
8
by a USB cable or by an external 9 volt battery, though it accepts
on the Arduino website. Layout and production files for some versions
of the hardware are also available. "Uno" means one in Italian and was
chosen to mark the release of Arduino Software (IDE) 1.0. The Uno
board and version 1.0 of Arduino Software (IDE) were the reference
the first in a series of USB Arduino boards, and the reference model for
using the original STK500 protocol. The Uno also differs from all
preceding boards in that it does not use the FTDI USB-to-serial driver
9
16x2 LCD:
produce a visible image. The 16×2 LCD display is a very basic module
10
3.CIRCUIT
Basic Connections:
11
• connect GND of Arduino to negative rail of breadboard
LCD Connections:
• VO to Potentiometer
• RW to negative rail
• A to positive rail
• K to negative rail
Other Connections:
13
4.CODE AND OUTPUT
#include<LiquidCrystal.h>
int buttonPin = 2;
int ledToggle;
int i=0;
int pos=0;
int Speed=100;
######## ## ";
14
String typeaa = " ## #### ## #### ## ##
## ";
int typeA[] =
{22,23,32,33,34,35,36,37,43,44,52,53,54,55,61,62,63,64,72,73,74,75,76,
77,78,79,87,88};//28
int typeAA[] =
{17,18,26,27,28,29,40,41,47,48,49,50,58,59,69,70,82,83};//18
void setup()
lcd.begin(16,2);
lcd.begin(16,2);
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT_PULLUP);
while(ledToggle==0)
{
15
lcd.clear();
delay(500);
delay(500);
lcd.clear();
lcd.setCursor(0,0);
lcd.print('O');
//lcd.print(bala.substring(1,3));
void loop()
while(1)
for(i=0;i<89;i++)//
{
16
if(pos==0)
lcd.setCursor(1,0);
lcd.print(typea.substring(i+1,16+i));
else
lcd.setCursor(0,0);
lcd.print(typea.substring(i,16+i));
if(pos==1)
lcd.setCursor(1,1);
lcd.print(typeaa.substring(i+1,16+i));
else
lcd.setCursor(0,1);
17
lcd.print(typeaa.substring(i,16+i));
for(int j=0;j<28;j++)
if(typeA[j]==i)
if(pos==0)
gameover();
for(int j=0;j<18;j++)
if(typeAA[j]==i)
if(pos==1)
18
{
gameover();
delay(Speed);
winner();
detachInterrupt(digitalPinToInterrupt(2));
while(1)
lcd.clear();
delay(500);
detachInterrupt(digitalPinToInterrupt(2));
while(1)
lcd.clear();
delay(500);
lcd.setCursor(0,1);
delay(500);
void button_ISR()
20
{
buttonFlag = 1;
previousPress = millis();
ledToggle =! ledToggle;
digitalWrite(ledPin, ledToggle);
previousState = LOW;
if(ledToggle)
lcd.setCursor(0,0);
lcd.print('O');
lcd.setCursor(0,1);
lcd.print(' ');
pos=0;
}
21
else
lcd.setCursor(0,1);
lcd.print('O');
lcd.setCursor(0,0);
lcd.print(' ');
pos=1;
previousState = HIGH;
buttonFlag = 0;
}
22
After making all the connections as per the circuit diagram, upload the
code to Arduino and power on the circuit. The moment you turn on the
LCD.
Once the game starts, the Flappy Bird can be toggled its position
using the interrupts pin with the help of the push button. If the bird is in
the top, by pressing the button, you can move it to down and vice –
versa.
If the bird touches any of the obstacles, you will lose and the game
is over. Since this is a simple version of the game, there are only a few
obstacles and if you successfully overcome all those obstacles, you will
23
4.2 OUTPUTS
24
5.CONCLUSION
A simple DIY style project where we have created a Flappy Bird Game
using Arduino, 16×2 LCD Display and a push button. This doesn’t
replicate the original Flappy Bird game but gives an idea on how to
25
5.1 REFERENCES
1) https://vishanksinghh.wixsite.com/infinityrun
2) https://www.electronicshub.org/flappy-bird-game-using-arduino
26