Skip to content

SupaOhm/Binary-Matching-Arduino-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS332 Microcontroller Project

Project Overview

Binary Matching Arduino Game

This project is a fun and educational game that helps players practice binary to decimal conversion. Built with Arduino Uno R3, it challenges players to match binary numbers displayed on LEDs to their decimal equivalents using a keypad.

Project Demo

A demonstration of this project can be viewed on YouTube: Project Demo

Getting Started

Prerequisites

  • Arduino Uno R3
  • Arduino IDE or PlatformIO
  • USB cable for programming
  • Required components (as shown in Tinkercad circuit)

Installation

  1. Clone this repository
  2. Open the project in your preferred IDE
  3. Configure the project settings as needed
  4. Build and upload to your microcontroller

Hardware Setup

Circuit Diagram

Circuit Diagram

Interactive version available on Tinkercad

For detailed schematics, see schematic.pdf

Components Used

Reference Quantity Component
U1 1 Arduino Uno R3
Sstart, Sreset 2 Pushbutton
KEYPAD1 1 4x4 Keypad
Rpot1 1 250 kΩ Potentiometer
D1-D4 4 White LED
D5 1 Red LED
D6 1 Green LED
PIEZO1 1 Piezo Buzzer
R5-R10, R12-R13 8 330 Ω Resistor
R11 1 1 kΩ Resistor
- - Jumper Wires
- - Breadboard

Project Structure

project/
├── src/              # Source code files
├── docs/             # Documentation
│   ├── circuit.jpg   # Breadboard circuit diagram
│   └── schematic.pdf # Detailed schematic
├── components.csv    # Complete component list
└── README.md         # This file

How to Play

  1. Adjust the Number

    • Rotate the potentiometer to generate a random number between 0 and 15
    • The number will be displayed in binary on the 4 LEDs
  2. Start the Game

    • Press the Start button to begin
    • You'll have 10 seconds to enter the correct decimal number
    • The buzzer will beep faster as time runs out
  3. Enter Your Guess

    • Use the keypad to enter the decimal number
    • Press A to clear your input if you make a mistake
    • Press D to submit your answer
  4. Game Over

    • If correct: You win! The LEDs will flash in celebration
    • If wrong or time's up: You lose! The correct number will be displayed
    • Press the Reset button to play again

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Acknowledgments

  • Created for CSS332 Microcontroller Lab
  • Special thanks to the Arduino and Tinkercad communities for their resources and support

About

This project is a fun and educational game that helps players practice binary to decimal conversion. Built with Arduino Uno R3, it challenges players to match binary numbers displayed on LEDs to their decimal equivalents using a keypad.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages