Playing Snake With A TV Remote

[vinod] sent in his replica of a Snake game, the game to play on old Nokia dumb phones.

The build is based on a PIC16F877 microcontroller just like previous Snake builds we’ve seen, but [vinod] didn’t use physical buttons in his build. Instead, he used a Philips infrared TV remote to control the game. The infrared controller only takes up one pin on the microcontroller, as opposed to the 4 pins of the easiest four button setup. [vinod] also threw in a simple one-transistor level converter so Snake can be played with a PC via RS-232. With the PIC code included in the build, it’s a great build that reminds us of a more civilized age.

The video of [vinod]’s snake game in action is posted after the break, but we noticed that the snake is allowed to ‘warp around’ the sides of the LED matrix. Some people might consider that cheating but that can be fixed by changing a few lines of code.

[youtube=http://www.youtube.com/watch?v=EuEvCTFW_AI&w=470]

12 thoughts on “Playing Snake With A TV Remote

    1. Yes, you may be thinking why I am not removing CD4017…right? Reason is , that board which you seen in the video is not only a game…But I used to do many things in that board…So, I thought its better to use a CD4017 to save ‘VALUABLE’ PIC PORTs…:-)

      1. Actually your system works without resistors as voltage on pins alls down but it could be damaged if leds are lit for more time or if take another microcontroller family such as AVRs which are much stronger regarding output capability. Also, you can’t be sure your system will work with another led array.

        Current control is mandatory for driving leds

      2. Also I suppose your leds are low consumption ones because CD4017 can handle 8,8mA on its output pins in the best case. With classic leds, everything burns, that what I would like to make you understand.

        Nothing offensive behind my comments ;-)

      3. Yes, I agree…..It is not good to use LEDs like this without any resistors in series..

        But when the display is scanning from one side to other, it is something like PWM of LEDs..This will prevent the LEDs to an extent…am I right?

        Also, I agree with your point that all LEDs are not similar. Some may get damaged easily compared to some other..May be depending on the manufacturer….

  1. it would have enough ports to drive that LED array. (8 Rows + 10 Columns = 18 Ports) one would probably want to supplement with some transistors to take the load off the PIC tho. (I think it can only source like 20mA at a time…)

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.