Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
Elecrow community is a shared platform and we are not responsible for any design issues.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
closed
user-img

Lily lee

Published: Apr 10,2024

Create a Breakout Game With Arduino

I am going to present the simple yet entertaining breakout game created with Arduino UNO, an OLED display, and a joystick.

ccc ccc
Copyright Info

Attribution-ShareAlike (CC BY-SA)

Read More⇒
  293
  1
  0
cover-img
 
  • thumbnail-img
 

Hardware Components

  • Arduino UNO

    X 1 fenxiang
  • 0.96" OLED Display

    X 1 fenxiang
  • Joystick Module

    X 1 fenxiang
  • Jumper Wires

    X 1

Story

Hello, friends. Welcome to the exciting world of Arduino game development! Today I am going to present the simple yet entertaining breakout game created with Arduino UNOan OLED display, and a joystick. The process is not complex. What we need is careful consideration of code’s logic implementation. By bringing the classic breakout game to life, you’ll not only enhance your programming skills but also experience much fun. Now, let’s begin our journey.

 

Supplies

Step 1: Circuit Connection

In the circuit diagram, extra wires are utilized to bridge the breadboard and modules due to the misalignment of the holes. However, in practice, it is feasible to mount the OLED display and joystick module onto the breadboard directly. Linking the Arduino to the breadboard is the only thing we need to do as for circuit connection.

For convenience, the chosen OLED display employs I2C communication, utilizing only two wires. It is connected to the Arduino UNO's default I2C pins (A4 and A5).

To ensure accurate value readings, the analog pins which are responsible for reading the x and y axis of the joystick module should be connected to the Arduino's analog pins (A0-A5).

Step 2: Code Implementation

Before code writing, download the required library "U8glib" to facilitate operation at the OLED display.

During code writing, we should pay attention to the part of joystick control. Both axes are utilized, one for lateral movement in the game, while the other for game start and end operations.

For the complete code, refer to Elecrow's GitHub repository.

Step 3: Upload & Testing

Select the appropriate board and upload the code to see your achievements!

If you've found this guide helpful, please share it with your friends to create a breakout game with Arduino together.

Code
  • breakout

    https://github.com/Elecrow-RD/short_eletronics/tree/main/breakout
    View
user-img

Lily lee

+ Follow

Topic

View All
Arduino Breakout Game
  • Comments( 0 )
  • Like( 1 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All