It's a small game, I hope you like it!
You can add a buzzer if you want. Connect the buzzer to pin 8
EXPANDED TECHNICAL DETAILS
Character-Based Retro Gaming
This project pushes the limits of standard character LCDs by creating a custom side-scrolling "Dodging" game.
- Custom Character Definition: The Arduino uses
lcd.createChar() to define a 5x8 pixel "Hero" and "Obstacle" sprites. This allows the game to present unique graphics on a screen designed only for text.
- High-Speed Collision Matrix: Every 50ms, the Arduino calculates the pixel-perfect overlap between the hero's current position and the obstacles. If a crash is detected, it triggers a game-over sound on a piezo buzzer.
Dynamic Difficulty
- Exponential Speed Scaling: As the score increases, the "Frame Delay" in the Arduino code decreases, making the side-scrolling faster and more challenging for the player.
ข้อมูล Frontmatter ดั้งเดิม
title: "16x2 LCD Game with Arduino UNO"
description: "It's a small game where you use a pushbutton to jump over obstacles, when you touch an obstacle, it's game over..."
author: "Tiemovanloon"
category: ""
tags:
- "game"
- "pushbutton"
- "lcd"
views: 15283
likes: 6
price: 1120
difficulty: "Intermediate"
components:
- "1x Alphanumeric LCD, 16 x 2"
- "1x Pushbutton switch 12mm"
- "1x Breadboard (generic)"
- "1x Jumper wires (generic)"
- "1x Arduino UNO"
- "1x Resistor 220 ohm"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "3e6d19cfd591308244ba574d70c9b5241ee6fd8ecbe16a688d2248100a16b7e1"
encryptedPayload: "U2FsdGVkX1/kG/0HAXjLlbRmCAODeOSq0B/xHJDuGWFh/Kk4bVrmzSBYxqLmiTNEw5LbhIRJ4lek+1E4m7RLaORlFWOhz9IqaJK0y1IN37c="
seoDescription: "Build a simple 16x2 LCD Game with Arduino UNO. Use a pushbutton to jump over obstacles in this fun DIY electronics project."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/16x2-lcd-game-with-arduino-uno-1c238c_cover.jpg"
lang: "en"