Tic Tac Toe for Nokia 5110

4,864

54

10

About: I just like to make staf xD If you want to contact me just send me massage and I will give you my email.

This is classic game of Tic Tac Toe.

It is easy project, all you need for this is:

3 Buttons

Nokia 5110 display

Arduino (I used nano)

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Nokia 5110

This is very interasting display, it is 84x48 and it works with 3.3V so arduino will have no problems with it.

If you want to use this screen, you will need libary, find the one I used it HERE.

You could just wire it with no resistors and it will be fine, but if you are planning to leave it on for a while you should put resistors(that means if you are programing it or just testing it, you can do that with no resistors, but in other cases you should put them).

You can find datasheet HERE.

I wired pins like this(in parentheses are other names for pins):

PIN8 -SCLK;(CLK);(SCK);

PIN9 -DIN;(SDIN);(MOSI);

PIN10 -D/C;(DC);

PIN11 -CS;(SCE);

PIN12 -RST;(RESET);

Step 2: Buttons

You can wire them like any other buttons you would put in your project, but maybe you will need to change the code then.

Button pins are pin2,pin3 and pin4.

There is 3 buttons, first is for going left, second is for putting X or O and third is for going right.

(Just play few times and you will get it)

Step 3: Code

I made this code, and you are free to change it and do whatever you want with it, I am not great at codding so if you see something that could be better just tell me.

There is one file that you will need to put in same folder as code for it to work it is TicTacToe.c (Dont worry it is in winrar file).

I made some comments in the code, I hope they will be healpfull.

I used LCDassistant to convert photos, you can fint it HERE.

*UPDATE* - I made one with score bar, it is TicTacToev2.zip(hope you like it)

Step 4: Done

Here is video of it, hope you like it.

Follow me for more projects. :D

Microcontroller Contest 2017

Participated in the
Microcontroller Contest 2017

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    10 Discussions

    0
    None
    blic19933

    2 years ago

    Why are using a .rar file type. Not many computers have the software to decompress it. Why not just use .zip or just the .ino Arduino file.

    2 replies
    0
    None
    ahmedebeed555

    2 years ago

    I love this kind of informative with practical demo intructables. Thank for sharing.