Introduction: Tic Tac Toe for Nokia 5110

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)

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