Pocket Flappy Bird Game Machine

by tanmaynaphe in Circuits > Arduino

1790 Views, 2 Favorites, 0 Comments

Pocket Flappy Bird Game Machine

m2.jpeg
main image_edited.jpg

This is a nodemcu esp8266 microcontroller based gaming console that can play flappy bird and many other games.This machine can also be used to make deauther based on spacehuhns code at https://github.com/SpacehuhnTech/esp8266_deauther .

Supplies

The requirements for this project are :

1.Nodemcu Esp8266 Development board

2.0.96 inch i2c oled screen

3.Push Button

4.Copper clad pcb

5.Faber Castell permanent marker

6.Solder wire and iron

7.Jumper wire (if pcb not made)

8.Smartphone battery

9.Ferric Chloride

10.male headers

11.micro usb for uploading files

Solder All the Components on PCB

WhatsApp Image 2020-07-12 at 20.40.23.jpeg
WhatsApp Image 2020-07-12 at 20.43.38.jpeg
WhatsApp Image 2020-07-12 at 20.43.56.jpeg
WhatsApp Image 2020-07-12 at 20.49.33.jpeg
WhatsApp Image 2020-07-12 at 20.54.08.jpeg

Prepare the pcb by using permanent markers to draw the traces.

Toner transfer can also be used on the copper clad pcb and using ferric chloride to etch the pcb.

Drill all the holes for the headers solder all the headers on the pcb along with all the push buttons.

Make Connections As Per Schematic

schematic.png

Make all connections as in the schematic provided.

In this design the buttons are connected without pull up resisters because the internal pull up is used in code .

Prepare the smartphone battery by connecting female battery connector wire.

You can charge the battery with Tp4056 battery charger (take all cautions when handeling lipo batteries).

Smartphone battery can be used without external protection board because it has one internally.

Use breadboard and jumper wires to make connections in case pcb is not to be used.

Setup the Computer

step 3.PNG
step3esp8266.PNG
step3 manager.jpg
step3board.jpg

Make sure PC is setup.

Download latest Arduino IDE from www.arduino.cc download SSD1306 Adafruit library https://github.com/adafruit/Adafruit_SSD1306.

Open file>preferences paste "https://arduino.esp8266.com/stable/package_esp8266com_index.json" in additional board manager URLs.

Open tools>boards>boards manager search esp8266 and install board manager files by clicking install.

Download the Codes

step3board.jpg

Download the files below for code.

Put all the 3 files in a single new folder.

Open the "32igra.ino" file in Arduino IDE and publish code to Nodemcu select the setting as given in the image.

Enjoy the Game

flappy gameplay.jpeg
flappy oled start.jpeg
IMG_20200712_145238937_2.jpg
WhatsApp Image 2020-07-11 at 21.57.34.jpeg
WhatsApp Image 2020-07-11 at 21.57.35.jpeg

Enjoy the game flappy bird