Tic Tac Toe for Nokia 5110

by Dzefri in Circuits > Arduino

7363 Views, 56 Favorites, 0 Comments

Tic Tac Toe for Nokia 5110

IMAG0540.jpg
IMAG0562.jpg
IMAG0542.jpg
IMAG0543.jpg
IMAG0564.jpg
IMAG0563.jpg

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)

Nokia 5110

IMAG0550.jpg
IMAG0555.jpg
LCD2.jpg
Positions.png

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);

Buttons

IMAG0548.jpg
IMAG0549.jpg
right button.png
left button.png
button.png

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)

Code

IMAG0565.jpg
IMAG0561.jpg
IMAG0539.jpg
IMAG0562.jpg

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)

Done

Tic Tac Toe for Nokia 5110 with Arduino
IMAG0544.jpg
IMAG0546.jpg

Here is video of it, hope you like it.

Follow me for more projects. :D