Hey Buddies...
I hope you all are safe and healthy..
I made a Space Impact Rocket LCD Game.
You can make it at your home and play it with your friends and children.
If you like this project respect it.
Give me suggestions so I can improve it or any feedback you want to give to my YouTube channel.
link is : https://studio.youtube.com/channel/UCaXI2PcsTlH5g0et67kdD6g
If you have any queries regarding this project
contact me at
email :mohdsohail0008@gmail.com
Facebook page : Electronics is Fun
Instagram ID: eif.08
Also you can give me suggestions on "What I made next project.?"
Project Perspective
Space Impact LCD game is an innovative and creative space shooter project. By focusing on the essential building blocks—the Nokia 5110 LCD and two tactile switches—you'll learn how to communicate using a specialized game logic and a robust hardware setup.
Technical Implementation: Animation and Bitmaps
The project reveals the hidden layers of retro game development:
- Graphics layer: Using a Nokia 5110 LCD and the Adafruit GFX library, the Arduino can individually address and control each of the 84x48 pixels on the screen.
- Bitmap Processing layer: The game's sprites (your spaceship and enemy ships) are stored as small 1D or 2D "bitmaps" in the Arduino's flash memory.
- Physics and Collision layer: The Arduino code constantly updates the X and Y coordinates of each object and checks for overlapping "bounding boxes" to detect when your laser hits an enemy ship.
- Audio Feedback layer: A Piezo Buzzer provides a playful and historical audio feedback for each shot fired and enemy ship destroyed.
Hardware Infrastructure
- Arduino Uno: The "brain" of the game, managing the display logic and coordinating all user input and physics tasks.
- Nokia 5110 LCD: Providing a clear and playful visual feedback for the game's retro graphics.
- Tactile Switches: These robust and common electrical switches provide a satisfying tactile click for each move or "FIRE!" command.
- Piezo Buzzer: Provides a playful and historical audio feedback for the shooting and explosion sequences.
- Breadboard: A convenient way to prototype the game circuit and connect all components without soldering.
- Micro-USB Cable: Use to program the Arduino directly from your computer for power and code.
Interaction Logic & Game Loop
The space shooter is designed to be very efficient:
- Initialize Display: SETUP the Arduino to communicate with the Nokia 5110 LCD and clear its memory.
- Poll Controls: The Arduino reads your moving switches and triggers a "laser" fired event if the fire button is pressed.
- Execution Loop: The Arduino constantly updates the positions of your ship, the enemies, and the particles in real-time.
- Visual and Audio Feedback: Watch as your score updates on the LCD each time you destroy an enemy ship, with a celebratory buzzer sound for each point.
Steps to make this project:
1. Gather all components.
2. Connect LCD to cardboard.
3. Place Arduino on cardboard.
4. Place push button on cardboard.
5. Place Joystick on cardboard.
6. Do connections from circuit diagram.
7. Upload the Arduino code.
If you don't find anything on the LCD display adjust the 10k potentiometer till something is not shown on the LCD display.
Your project is ready...!!!
Future Expansion
- OLED Status Dashboard Integration: Add a small OLED display to show a larger life bar and the number of enemy ship waves defeated.
- Multi-Player IR Game Sync: Connect several IR sensors to create a multi-layered competition between two or more friends.
- Wireless Leaderboard Registration Support: Add a WiFi module (ESP8266/ESP32) and link to a cloud leaderboard to track your high-score globally.
- Advanced Velocity Profile Customization Support: Add a small slider or potentiometer to manually adjust the difficulty or the ship's speed.
Space Impact LCD game is a perfect project for any electronics enthusiast looking for a more interactive and engaging retro tool!
Visit my YouTube channel once and see more interesting projects.
"Electronics is Fun"