You all might have played the famous game of all time "Snakes" on your Nokia mobile phones. Inspired from the same Sandeep Sasi went far from just playing the game and thought of implementing it on 8051 platform.



The game is built on AT89S51 MCU operating at 27MHz crystal frequency. The game uses
a 16 * 8 LED dot matrix display and five way keys for user interface. A dedicated
delay settings key provides one touch access to the delay settings mode where the
speed of the Snake can be adjusted. Highlights of the game are:

  • As in the original game, the Snake grows in size as it snatches the eggs
  • Eggs appear periodically on the screen at random pixels and will disappear if not snatched within a certain period of time
  • The snake sees no boundaries at the edges of the display, will propagate in to any edge and enter from the opposite edge
  • The Snake can be accelerated / decelerated on the fly
  • There is also a separate delay settings mode to adjust the Snake's speed
  • The game ends when the Snake collides with itself
  • The total eggs snatched is then displayed as the game score
  • The gaming console will hibernate if no user event occurs in 25secs! The game can be resumed by pressing external interrupt / master reset keys!


Small video demonstrating the project:

[yt=425,344]2hflCwJzKwI[/yt]


The project code is not just well designed but also very well documented for a newbie to understand how things are being done. The complete documentation along with source code and schematics can be downloaded from the download section.

Download it here: C51 Snakes - A Nokia inspired game built on 8051
Tags c51 snakenokia snake game on 8051C51 Snakes - A Nokia inspired game built on 80518051 projects
printer friendly create pdf of this news item

Comments

DvscDorie
30 Nov 2020: 04:22 AM
[Pending Approval]
  

Submit comment

(Required; Min length 5)
(Required; will not be displayed)

Conversation

Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051
scena
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 111, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123