Arduino Number Guessing Game
Arduino Number Guessing Game
The components:
STEP 1: Put the Arduino on the holes of the Base & Secure it with screws and nuts
STEP 2 : We want to put the small side and screw it to the base
STEP 3 : Secure the Tall side1 to the base wood
STEP 4 : Secure the small side to the base wood
STEP 5 : Secure the Tall side 2 to the base wood
STEP 6 :Take the buzzer then Put the (+) Side in pin 11 of the Arduino and the other leg of the Buzzer in the GND pin
Note: the buzzer has an ingraving a + in the top
STEP 7 : Put the LCD In its place and Secure it with screws and nuts
STEP 8 : In the keypad, you will find that it has a tab in the back of it
Put the wire of the keypad in the keypad slot and remove the double faced tape and put the keypad in here place
Jumpers and connections
STEP 9:Prepare the LCD for Arduino connections:
Bring the LCD jumper wires (female side)
Connect brown to GND
Connect red to VCC
Connect orange to SDA
STEP 10 :Connect the jumpers to the Arduino:
Bring the jumper wires (male side)
Brown → GND
Red → 5V
Yellow → A5
Orange → A4
STEP 11 :Prepare the Keypad:
Locate pins 1 and 8
Connect jumpers 1→8 in order:
Black – White – Gray – Purple – Blue – Green – Yellow – Orange
STEP 12 : Connect the Keypad to the Arduino:
Black → Pin 2
White, Gray, Purple, Blue, Green → Pins 3–7 (in order)
Yellow, Orange → Pins 8–9
STEP 13 :Close the Upper face with the Screw and nuts
STEP 14 : Connect the adapter to the Arduino
HOW TO PLAY
🎯 Goal
Guess the secret number chosen randomly by the Arduino.
The number can be between 0 and 9 (easy mode) or 0–99 (hard mode).
You have a limited number of attempts:
3 tries in 0–9 mode
6 tries in 0–99 mode
⌨️ Keypad Controls
Digits (0–9): Enter your guess.
#: Confirm your guess.
*: Start a new game immediately.
A: Show help instructions on the LCD.
B: Backspace (delete last digit entered).
C: Toggle between guessing ranges (0–9 or 0–99).
D: Toggle buzzer ON/OFF.