IEEESTEC 17TH (2024), (pp. 225–230)
АУТОР / AUTHOR(S): Iva Cvetanović, Petar Nikolić
DOI: 10.46793/IEEESTEC17.225C
САЖЕТАК / ABSTRACT:
This project is based on the world-famous Snake game, which was first introduced to the public in 1997, with its fairly simple premise: the player controls the movements of the snake, leading it towards the apple – a single pixel on the screen – which, after being eaten, causes the snake’s body to elongate. After pressing a button, the player exits the pre-game state (including a welcome screen and, if second button is pressed, the leaderboard is shown on a 16*2 Liquid Crystal Display, i.e. LCD) and enters the in-game state, with the LCD now showing the player’s current score determined by the number of eaten apples, and both the snake and the apple being shown on two LED (Light Emitting Diode) matrices daisy-chained together. In case of the snake colliding with its own body, the LCD shows the game-over screen, updating the leaderboard according to the data stored in the EEPROM (Electrically Erasable Programmable Read-Only Memory) to show the three highest scores and the names entered by the players who achieved them.
КЉУЧНЕ РЕЧИ / KEYWORDS:
snake game, microcontroller, EEPROM, interrupt, LCD.
ЛИТЕРАТУРА/ REFERENCES:
- Nokia website. Available at: https://www.nokia.com/
- Taneli Armanto’s Linkedin profile. Available at: https://fi.linkedin.com/in/taneli-armanto-4242145
- About the Snake game. Available at: https://www.itsnicethat.com/features/taneli-armanto-the-history-of-snake-design-legacies-230221/
- Arduino Nano Available at: https://docs.arduino.cc/resources/datasheets/A000005-datasheet.pdf
- Arduino IDE. Available at: https://www.arduino.cc/en/software
- Proteus simulator. Available at: https://www.labcenter.com/downloads/
- MAX7219 datasheet. Available at: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX7219-MAX7221.pdf
- LCM1602C datasheet. Available at: https://www.alldatasheet.com/datasheet-pdf/view/1221278/ETC2/LCM1602C.html
- ATmega328P datasheet. Available at: https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf
- About LED matrix. Available at: https://softwareparticles.com/learn-how-an-8×8-led-display-works-and-how-to-control-it-using-an-arduino/
- About SPI. Available at: https://www.analog.com/en/resources/analog-dialogue/articles/introduction-to-spi-interface.html
- More about SPI. Available at: https://www.circuitbasics.com/basics-of-the-spi-communication-protocol/