Arduino Video Game With Vga Video Output

About the project

This is a simple SHOOTING GAME that can run on Arduino and output video on a VGA monitor

Project info

Difficulty: Moderate

Platforms: Arduino

Estimated time: 1 hour

License: MIT license (MIT)

Items used in this project

Hardware components

Breadboard (generic) Breadboard (generic) x 1
Resistor 100k ohm Resistor 100k ohm x 1
Arduino UNO Arduino UNO x 1
DFRobot Gravity:Digital Push Button (Yellow) DFRobot Gravity:Digital Push Button (Yellow) x 1
Rotary potentiometer (generic) Rotary potentiometer (generic) x 1

Software apps and online services

Arduino IDE Arduino IDE
https://github.com/ https://github.com/

Story

If u don't like to read you can watch the video here

My old VGA monitor was collecting dust for a long long time and I finally found a good use for it. Being inspired by retro gaming consoles I thought "why not run a game on Arduino with VGA video output !!". So I looked up a bunch of supported resolutions on http://tinyvga.com/vga-timing and found that the math for 640x480 @60Hz mode would workout easily with the Arduino.

timing math

timing math

timing math

I have used the integrated Timer1 of atmega328p for Vsync and Timer2 for Hsync signals.

schematic

schematic

schematic

I used jumper wires for all the connections.

thats it...now just upload the code and enjoyyy!!!!!! fun fact: no library was used.

enjoyy

enjoyy

enjoyy


Schematics, diagrams and documents

SCHEMATIC

Code

ARDUINO VGA GAME CODE

arduino code

Credits

Photo of dhruv221

dhruv221

I am a 19 yr old who is crazy about electronics and love to make videos about my crazy projects

   

Leave your feedback...