PCB Visiting Card With Tic Tac Toe Game
by EDISON SCIENCE CORNER in Circuits > Arduino
964 Views, 1 Favorites, 0 Comments
PCB Visiting Card With Tic Tac Toe Game
![IMG_20211010_203620-01.jpeg](/proxy/?url=https://content.instructables.com/FEJ/O7X9/KW3UWTNF/FEJO7X9KW3UWTNF.jpg&filename=IMG_20211010_203620-01.jpeg)
![IMG_20211011_161959-01.jpeg](/proxy/?url=https://content.instructables.com/FNO/YYE8/KW3UWTNL/FNOYYE8KW3UWTNL.jpg&filename=IMG_20211011_161959-01.jpeg)
![IMG_20211010_103953-01.jpeg](/proxy/?url=https://content.instructables.com/FBL/BWWF/KW3UWTN7/FBLBWWFKW3UWTN7.jpg&filename=IMG_20211010_103953-01.jpeg)
![PCB Visiting Card with Tic Tac Toe Game | Arduino game](/proxy/?url=https://content.instructables.com/FOI/D3F7/KW3UWV1Z/FOID3F7KW3UWV1Z.jpg&filename=PCB Visiting Card with Tic Tac Toe Game | Arduino game)
![1637229466980.jpg](/proxy/?url=https://content.instructables.com/F9F/5TPF/KW3UWVB2/F9F5TPFKW3UWVB2.jpg&filename=1637229466980.jpg)
Hello there
In this tutorial, I am going to show you how to make a visiting/business card. Not just a visiting card. This is a PCB but Just like a normal visiting card. You can see the EDISON SCIENCE CORNER name, logo, social media Icons and a QR code. The QR code will direct you to my youtube channel. But on the opposite side, you can see a circuit. This is a tic tac toe game circuit. Tic tac toe is a two-player game. Also known as X O Game. two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. Most of the time game will draw. here I replaced X and O with colours and also changed the traditional 3*3 into 4*4. So a total of 16leds and 16 switches each switch represent corresponding led. Player one is green in colour and player 2 red. That's it I think you got it.
Now let's see how to make this.
Designing and Printing of the PCB
![Schematic_badge_2021-11-18.png](/proxy/?url=https://content.instructables.com/FRP/YCQZ/KW3UWTXL/FRPYCQZKW3UWTXL.png&filename=Schematic_badge_2021-11-18.png)
![PCB_PCB_badge_2_2021-11-18.png](/proxy/?url=https://content.instructables.com/F0X/W2AV/KW3UWTXK/F0XW2AVKW3UWTXK.png&filename=PCB_PCB_badge_2_2021-11-18.png)
![IMG_20211010_103847-01.jpeg](/proxy/?url=https://content.instructables.com/FZ4/W5A3/KW3UWTN6/FZ4W5A3KW3UWTN6.jpg&filename=IMG_20211010_103847-01.jpeg)
![IMG_20211011_162045-01.jpeg](/proxy/?url=https://content.instructables.com/FBC/ZEIQ/KW3UWTNM/FBCZEIQKW3UWTNM.jpg&filename=IMG_20211011_162045-01.jpeg)
So this is the game circuit I designed it using easyeda. here I am using atmega328 as the heart of this project. Then I converted the circuit into PCB. I designed the PCB with a dimension of 89mm*50mm because this is the standard size of visiting cards. I used the insert image tool of easyeda to make the design. this is just about art you can make with your ideas. After designing the PCB I downloaded the Gerber file. Then I went to jlcpcb.com. I choose JLCPCB because they offer only 2$ for 5 PCBs. To order PCBs Just click on order now and select your Gerber file. after uploading, I choose the black colour .8mm thickness and placed the order. after 2 weeks I received the PCB. The PCB has only .8mm thickness but the quality is perfect as I expected.
Components Needed
ATMEGA328P-AU* 1
0805 capacitor 22pf *2
0805 capacitor 100nF* 2
SMD WS2812B-B*16
0805 LED SMD* 2
0805 resistors 1K* 3
0805 resistors10K 1
16MHZ*1
micro USBFemale*1
download BOM from here
Soldering
![IMG_20211010_165641-01.jpeg](/proxy/?url=https://content.instructables.com/FGH/FDKM/KW3UWTND/FGHFDKMKW3UWTND.jpg&filename=IMG_20211010_165641-01.jpeg)
![IMG_20211010_160213-01.jpeg](/proxy/?url=https://content.instructables.com/FL5/Y2DG/KW3UWTN8/FL5Y2DGKW3UWTN8.jpg&filename=IMG_20211010_160213-01.jpeg)
![IMG_20211010_160951-01.jpeg](/proxy/?url=https://content.instructables.com/FSE/68IA/KW3UWTNC/FSE68IAKW3UWTNC.jpg&filename=IMG_20211010_160951-01.jpeg)
![IMG_20211010_201440-01.jpeg](/proxy/?url=https://content.instructables.com/FVX/GDPU/KW3UWTNE/FVXGDPUKW3UWTNE.jpg&filename=IMG_20211010_201440-01.jpeg)
![IMG_20211011_102025-01.jpeg](/proxy/?url=https://content.instructables.com/FQ1/WJ3K/KW3UWTNI/FQ1WJ3KKW3UWTNI.jpg&filename=IMG_20211011_102025-01.jpeg)
![IMG_20211010_204121-01.jpeg](/proxy/?url=https://content.instructables.com/FNL/O6QV/KW3UWTNH/FNLO6QVKW3UWTNH.jpg&filename=IMG_20211010_204121-01.jpeg)
after grabbing all components I started soldering
I started with the micro USB port. Then I soldered all the other components. After soldering the control circuit I started soldering neopixel LEDs and after finishing that I soldered corresponding Switches. After 1 hour I completed all soldering and now our PCB looks like this.
Programming
![IMG_20211010_160246-01.jpeg](/proxy/?url=https://content.instructables.com/F5W/LERE/KW3UWTN9/F5WLEREKW3UWTN9.jpg&filename=IMG_20211010_160246-01.jpeg)
![IMG_20211010_160423-01.jpeg](/proxy/?url=https://content.instructables.com/F84/130X/KW3UWTNA/F84130XKW3UWTNA.jpg&filename=IMG_20211010_160423-01.jpeg)
![IMG_20211010_160707-01.jpeg](/proxy/?url=https://content.instructables.com/FV6/SGD4/KW3UWTNB/FV6SGD4KW3UWTNB.jpg&filename=IMG_20211010_160707-01.jpeg)
after completing the soldering I connected the USB cable and tested it. Now it's time to upload the code. I connected the spi pins to an isp Arduino and uploaded the sketch
DOWNLOAD CODE FROM HERE
PLAY AND ENJOY
![IMG_20211010_203843-01.jpeg](/proxy/?url=https://content.instructables.com/FN8/OBWS/KW3UWTNG/FN8OBWSKW3UWTNG.jpg&filename=IMG_20211010_203843-01.jpeg)
![IMG_20211011_104621-01.jpeg](/proxy/?url=https://content.instructables.com/F9A/YXSK/KW3UWTNJ/F9AYXSKKW3UWTNJ.jpg&filename=IMG_20211011_104621-01.jpeg)
![IMG_20211011_104628-01.jpeg](/proxy/?url=https://content.instructables.com/F2P/DP92/KW3UWTNK/F2PDP92KW3UWTNK.jpg&filename=IMG_20211011_104628-01.jpeg)
![PCB Visiting Card with Tic Tac Toe Game | Arduino game](/proxy/?url=https://content.instructables.com/F2V/4QNR/KW3UWV97/F2V4QNRKW3UWV97.jpg&filename=PCB Visiting Card with Tic Tac Toe Game | Arduino game)
This is how I made a visiting card with 4*4 tic tac toe game PCB. You can download the circuit, code, gerbers from the links. Hope you enjoyed and learned something from my tutorial.