JumpMan Game Arduino HD44780 I2c

by ForbiddenBit_com in Circuits > Arduino

2906 Views, 3 Favorites, 0 Comments

JumpMan Game Arduino HD44780 I2c

Untitled Project (Time 0_00_28;28).jpg

JumpMan is very simple on Arduino. The game uses only two "jump" and "reset" buttons. The game uses a display HD44780 2x16 connected via i2c. In the game, we skip a man over the trees. The speed of the game is growing all the time. If you do not know how to use the HD44780 display with the i2c module, see the tutorial: HOW TO USE DISPLAY HD44780 i2c .

Video Tutorial

JumpMan Game Arduino HD44780 i2c

List Elements:

C-400-DEV-A000046-a.jpg
6192_1.jpg
images.jpg

List elements:

  • Arduino Uno
  • Display hd44780 and i2c module
  • 2 switch
  • 7 wires
  • universal board

​Connections:

Untitled Sketch 2_bb.jpg

Connections:

HD44780 i2c: SDA to SDA or A4, SCL to SCL or A5, Vcc to 5V, GND to GND

Button 1 to pin RESET and GND

Button 2 to pin 2 digital and GND

Sketch:

Untitled Project (Time 0_01_07;03).jpg
2.jpg
3.jpg
Untitled Project (Time 0_00_38;25).jpg

Sketch:

Now we can go to the appropriate program. Install library LiquidCrystal_i2cby Frank de Brabander. Set the address and size of your i2c HD44780 my is 0x3F . Set the contrast with the potentiometer. You can change the amount of live in "int life = 5;" .

Control:
button 1 -> Jump

button 2 -> Reset

Enjoy the game :) .