You are on page 1of 2

Arduino LED Memory Game

Mr. Ivin Inasu Chungath Mr.Enosh Martin Mr.Sonal Thomas Mr.Nithin K Sreedhar
2nd Semester Btech Student 2nd SemesterBtech Student 2nd SemesterBtech Student Asst.Professor
Dept. of EEE Dept. of EEE Dept. of EEE Dept. of EEE
Christ College of Enginering, Christ College of Enginering, Christ College of Enginering, Christ College of Enginering,
Irinjalakuda. Irinjalakuda. Irinjalakuda. Irinjalakuda.

Abstract — Arduino is an open-source platform used for


building electronics projects. Arduino consists of both a LEDs Breadboard Piezo buzzer
physical programmable circuit board (often referred to as a
microcontroller) and a piece of software, or IDE (Integrated
Development Environment) that runs on your computer, used
to write and upload computer code to the physical board. It is a Jumper cables
microcontroller board based on the Microchip ATmega328P
microcontroller. The Arduino hardware and software was
designed for artists, designers, hobbyists, hackers, newbies,
and anyone interested in creating interactive objects or
environments. Arduino can interact with buttons, LEDs,
motors, speakers, GPS units, cameras, the internet, and even
our smart-phone or our TV. The Arduino can be used as the
brains behind almost any electronics project. This gave us the
idea to create a simple LED game that challenges our memory Push Buttons
to recall the correct sequence. This game will help us to
improve our memory and increase our concentration. It can be
Resistors Arduino
played individually or with a group. A game always refreshes Uno
our mind and provides a fun way to stay active and promotes
relaxation reducing our anxiety and stress.
buttons and four LED with different colors. The game will
indicate its starting point when all of the LED light ups after
I. INTRODUCTION three seconds with five slow flashes. The LED will light up
in a random sequence, and the player need to press the button
Our project is a memory game designed and created for respective to the lighted LED according to the sequences of
the elderly. It is to encourage the elderly to play this game to the light display. If the player presses button(s) within 2
improve their memory and cure their boredom. This memory seconds and give a right answer, the game will continuously
game is played by clicking the button connected to the repeat the same sequence with an additional color at the end.
correct LEDs based on a sequence of LED lights blinking But if the player makes a mistake, the game is over and all
earlier. This game can amuse the elderly and help prevent light will flash rapidly. After that, it will give the right
Alzheimer's disease. In this project, with the help of the answer before it reset back.
Arduino we are going to create a memory game that
challenges your memory by recalling randomly generated III. PROTOTYPE DEVELOPMENT
sequences of multi-coloured LEDs. The basic overview of
this project is that the four LEDs blink in a certain, random To develop this game, First, take one of the pushbuttons
pattern and the player has to imitate the same pattern to level and place it in the middle of the breadboard. Attach the
up, and eventually win, the game. If the player enters a cathode (shorter leg) of the blue colour LED to the negative
pattern incorrectly, they lose the game and it starts a new rail of the breadboard. Then connect a 220Ω resistor to the
pattern. Every time, you got it right, the game would give anode (longer leg) of the LED. Now take the buzzer on the
you the sequence again with an additional colour at the end. breadboard and connect the negative pin of the buzzer to the
negative rail of the breadboard. Now it is time to wire all the
components to the Arduino. First, connect the negative pins
II. PROPOSED WORK of the pushbuttons into Arduino digital pins 2, 3, 4, and 5.
The Arduino uno is used to control the entire operation Connect the anodes (longer legs) of LEDs to Arduino digital
taking place like in the game. There is a total of 4 LEDs used pins 7, 8, 9, and 10 through 220Ω resistors. Connect the
in this game which are placed on the breadboard. A positive pin of the buzzer to Arduino digital pin 12 Finally,
pushbutton is provided to control each LED which means a power up the breadboard by connecting the 5V and ground
total of 4 pushbuttons. Each LED is also connected with a jumpers into rails. Follow the same instructions for the other
resistor. A buzzer is also included to produce music. Jumper colours. In the end we have to upload the code into the
wires are used to connect the different components in the Arduino board by programming in the software or IDE
circuit. In order for the game to run, the sketch (A sketch is (Integrated Development Environment) that runs on our
the name that Arduino uses for a program. It's the unit of computer. To program Arduino, we have to connect the USB
code that is uploaded to and run on an Arduino board.) is
uploaded to the Arduino board. This memory game has four

Intl. Conf. Circuits, Control and Energy – ICCCE 2021


type A/B from the serial port in Arduino to the USB port on new LED is blinked adding to the pattern. Whenever an LED
the computer. To program Arduino, the Arduino board is is blinked the buzzer also sounds simultaneously. If the
connected to a computer via USB, where it connects with player enters a pattern incorrectly, they lose the game and it
the Arduino development environment (IDE). The user is indicated by a continues losing beep from the buzzer. Now
writes the Arduino code in the IDE, then uploads it to the the game restarts from the beginning. This game has a total
microcontroller which executes the code. Some features of of 25 levels to enjoy.
the code: The first round consists of a sequence of 1
randomly chosen lights to follow. If the player can correctly
replicate the sequence of 1 light, they beat the round. After Final prototype
the first round is beaten, a song plays and another round
starts with a new sequence of 2 lights including the previous
one to memorize. Each round adds one more light to the
sequence until the player loses! You can change the initial
sequence length to any number of your choosing by
modifying int numlevels = 1;

TABLE I. LIST OF COMPONENTS

Sl. No Name of the Component Specification

ATmega328P – 8-bit V. CONCLUSION


1 Arduino Uno AVR family The Arduino LED Memory game is designed in such a
microcontroller
way that it helps to improve cognitive focus and spatial
2 4x Pushbuttons 50mA 24V DC
ability of the colour blinded person. It also helps them to
one each of red, green, reduce brain aging. For an Alzheimer patient it helps to
3 4x LEDs
blue, and white
improve their memory. Encourages them to spend more
4 4x Resistors 220 Ω
time with their grandchildren. It also helps them to catch up
4 Piezo Buzzer 3~250 V with the technology and utilize them. There are also some
5V at 1A or 15V at people in our society who like to play classic games. If
5 Breadboard
1/3A someone has a smartphone, but not familiar with it, only use
6 Jumper wires 13-15 nos. it for basic calling and messaging. Prefers button control
rather than touch screen devices, cannot remember complex
Gamification Type
instructions, interested in old-school technology and
Content gamification gaming. It has been proven very effective for them as they
were able to utilize their boring free time to play this game.
Game Mechanics They were able to recall their old memories about classic
Clear goal Challenge game. These are not only limited to these people but can be
Time limit progressing
Immediate feedback
played by people in any age group. Since this is an old
reward classic game, it will not be able to compete with the present-
day games. However, it’s a nice way to connect with our
family and friends by playing this game.
Reward Reward Usage
Reward trigger contextual type of Achievement game REFERENCES
reward Fixed action
[1] https://www.viralsciencecreativity.com/post/arduino-led-memory-
Reward usage reward type Level game
[2] https://create.arduino.cc/projecthub/Jerepondumie/make-an-arduino-
memory-game-73f55e
[3] https://www.instructables.com/Arduino-Simple-Memory-Game/
IV. RESULTS AND DISCUSSIONS [4] https://www.taydakits.com/instructions/simple-arduino-based-
memory-game-on-breadboard/pages/the-arduino-code--2
The game starts by a continues sound from the buzzer [5] https://maker.pro/arduino/projects/how-to-build-an-arduino-based-
and the all LEDs lighting up randomly simultaneously. The memory-game
sound from the buzzer stops after two seconds but the LEDs
continue to light up randomly unless we press a button to
indicate the beginning of the game. At the beginning of each
game, the Arduino randomly selects an LED and makes it
blink and the user has to click the button corresponding to
the LED within 2 seconds. If the user presses the correct
button the game moves to level 2 which has 2 random LED
blinking including the previous pattern and with each level a

You might also like