Introduction: Tic Tac Toe for Nokia 5110

Picture of Tic Tac Toe for Nokia 5110

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

Picture of 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

Picture of 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

Picture of 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

Comments

bdmsoft (author)2017-02-23

Wow, Nice one !!
Buddhi from Sri Lanka

Dzefri (author)bdmsoft2017-02-24

Thank you :)

blic19933 (author)2017-02-07

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.

Dzefri (author)blic199332017-02-08

I changed it to .zip

blic19933 (author)Dzefri2017-02-10

Thanks!

ahmedebeed555 (author)2017-02-09

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

Anirudh Ralhan (author)2017-02-07

Really good!!! :-)

Dzefri (author)Anirudh Ralhan2017-02-08

Thanks :-D

Srpska Nauka (author)2017-02-07

Cool

yep

About This Instructable

3,899views

52favorites

License:

Bio: I just like to make staf xD If you want to contact me just send me massage and I will give you my email.
More by Dzefri:Logo With Fading LEDsArduino Game "NIM"Tic Tac Toe for Nokia 5110
Add instructable to: