Creating video game on 16*2 LCD using Arduino


Hi Guys,

In this blog I'll help you to create video games on LCD using Arduino microcontroller. This controller is one of the most popular microcontrollers and used by most of the electronics hobbyist. If you are a beginner and want to start a fun kind of project you can kick start with this project.

Let's begin


Components required:


1. Arduino Uno

2.16*2 Character LCD

3. Potentiometer

4.Push-button switches

5.Jumper wire

6.Breadboard


Software required:


Arduino IDE:

https://www.arduino.cc/en/main/software


if you don't know how to setup IDE you can watch videos on that. I'll make a separate blog in the upcoming days.


Project Explanation:

Once all the required components and software is ready, follow the below steps.

First will start with the coding part, I have a given the link to download the code and dump the code to the Arduino board. Make sure the port is selected correctly.


key part of this project is the circuit connection with LCD. you can go through the below steps for understanding.

The LCD(Liquid Crystal Display) module has 16 pin male header on the underside.

These pins are (from left to right)


  • VSS - Ground 
  • VDD- Power supply
  • Vo - Contrast adjust
  • RS -Register select 
  • R/W -Read/Write
  • E- Operational enable signal
  • DB0- data bit 0 (not used here)
  • DB1- data bit 1 (not used here)
  • DB2- data bit 2 (not used here)
  • DB3- data bit 3 (not used here)
  • DB4- data bit 4
  • DB5- data bit 5
  • DB6- data bit 6
  • DB7- data bit 7
  • LED+- Backlight LED positive
  • LED- - Backlight LED negative

you can make connections as follow


  • Connect DB7 to Arduino pin 3
  • Connect DB6 to Arduino pin 4
  • Connect DB5 to Arduino pin 5
  • Connect DB4 to Arduino pin 6
  • Connect E to Arduino pin 9
  • Connect R/W to Arduino pin 10
  • Connect RS to Arduino pin 11
  • Connect VCC to 5 volts
  • Connect VSS to Ground



Connections:


Code:

you can download the code by clicking on the below link.

https://drive.google.com/file/d/1pdPMd_FeqNBdM0G_0NguEXheVq0qHOya/view?usp=sharing






No comments:

Post a Comment