Tic-Tac-Toe Pico Card banner

Tic-Tac-Toe Pico Card

25 devlogs
39h 42m 33s

This is a unique portfolio card that allows users to play tic-tac-toe on it. It also includes NFC feature to link to your favorite website!

  • Full tic-tac-toe gameplay experience
  • NFC feature that navigates others to my github link
Demo Repository

Loading README...

Hung-Chi Wang

Shipped this project!

Hours: 39.69
Cookies: 🍪 510
Multiplier: 27.63 cookies/hr

OOOOOO HUGE UPGRADE FOR V2
I made so many improvements on this version including fully functional NFC, cleaner code, and a GORGUOUS COSMIC back silkcreen
On top of that, I also added 3 gameplay modes: PVP, easy AI, difficult AI opponent
Btw easy AI simply places the cross randomly while the smarter AI uses the minimax algorithm with the alpha-beta pruning
Just saying I have never won in the difficult mode……..it’s just impossible to win like I even lost a couple times
Overall this project was just so fun to build, I learned so much in PCB design (i mean it’s the main focus right) and how NFC works (turned out that i kinda overcomplicated it). I even reflowed the board myself and this is acc the third one I built cuz the previous ones were both dead bc of my reflowing skill
PS: I just realized how it took me two months to reship this lol

Hung-Chi Wang

Spent just a little time fixing some bugs cuz I accidentally swapped the order of the LEDs pin assignemnt and the NEXT button so it glitched during the gameplay
Anyway I also cleaned up the repo and ready to ship!!

1

Comments

siddhan.t
siddhan.t 19 days ago

Looks so cool! Love the small size as well

Hung-Chi Wang

Added the AI feature!!! THIS IS SOOOOO COOL
i implemented the Minimax algorithm (which is a recursive algorithm for choosing the next move mostly in two-player) game from this github repo
But I also faced some issues like the AI program would occupy the entire MCU’s thread and it took a very long time and halted the waiting animation i was trying to add
But then i discvoered the alpha beta pruning which was meant to optimize the algorithm, and it really sped up the entire process alot especially how it reduced lots of workload and steps

0
Hung-Chi Wang

OOOOOOO FINALLY FINISHED REFLOWING ANOTHER BOARD!!!
This time it works perfectly well, both the game and the NFC
Now ive confirmed the hardware runs perfectly, i will start focusing on the software
To be added:

  • Little tic tac toe AI
  • Optimize the code by removing all global variables (bruh i sucked at coding
0
Hung-Chi Wang

Spent 2 hours reflowing the entire board!! It almost works 100% but i messed up the USB port……I think I migth have accidentally melted the plastic contact in the port when hot airing it
I thought the shield pins should be soldered using soldering iron, till i realized how most people used solder paste, but it’s already too late cuz its nearly impossible to melt my high temp solder

Attachment
0
Hung-Chi Wang

Another huge breakthrough!! my NFC works flawlessly on my iphone 14 and another android phone!!!
But idk why my mom’s iphone 15 doesnt respond at all (i think it might be her problem lol)
Anyway i really thought reflowing it without stencils would be tough but acc it was not at all lol

0
Hung-Chi Wang

Alr just created the bom file and added everything to the cart
Btw I also decided to include all color LEDs just in case lol
On top of that, I also sorted all the parts for my RP2040 custom devboard

0
Hung-Chi Wang

3 hours!? DAMNN lapse was kinda tripping when I was working and I thouht it was only 45 minutes……..(no wonder why it felt like forever :)
Anyways here’s what I did

  • Reread the document for the NFC chip and realized that a 220nF cap is required
  • Polished the PCB layout. including replacing 0.1uF with 1uF for 3V3 and 1V1
  • Updated Readme and Created new release
  • Re-rendered the new front layer pcb
  • Ordered PCB
0
Hung-Chi Wang

AHHHHHHH this is getting kinda frustrating……….
Now I have two options for the charging IC

  • MCP73831 (fits better but then I gotta deal with unwanted dicharging and battery protection)
  • MCP73871 (very overkill, very unnecessary)
Attachment
0
Hung-Chi Wang

Selected the battery and its associated parts:

  • MCP73831 (the charging IC)
  • LIR2450 (the battery)
  • Keystone 3008 (battery holder)
    *** Still looking for battery protection IC
Attachment
0
Hung-Chi Wang

the image in the previous devlog is not showing, but it’s fine after doing some tuning and modification to the NFC here’s the beautiful result
*** IDK why the images in the last devlog aren’t showing

Attachment
Attachment
Attachment
0
Hung-Chi Wang

Added some design to the front silkscreen!! And I also rendered the board in blender

0
Hung-Chi Wang

I spent an hour fixing the NFC and I finally found out the reason!! I FORGOT TO CONNECT THE OTHER ROUTE, that’s simply why lol

Attachment
0
Hung-Chi Wang

GUESS WHAT I began to build V2!!!
This is what im gonna be focusing on

  • Fix NFC feature
  • Add coin cell battery
  • Better Design on both front and back
    btw I spent an hour doing research on how to add battery and learning figma lol
Attachment
1

Comments

thegenius0369
thegenius0369 2 months ago

Awesome Project

Hung-Chi Wang

Shipped this project!

Hours: 20.91
Cookies: 🍪 594
Multiplier: 28.42 cookies/hr

This is the V1 of my tic-tac-toe business card, and IM SO EXCITED TO SHOW IT TO EVERYONE!!! This is also by far the most complicated project I’ve ever built, like I didn’t even know if it would work lol. But overall im really proud of this ***BTW NFC for some reason doesn’t respond at all so I gotta redesign it……

Hung-Chi Wang

V1 finally done, just spent some time updating my repo and posting the first release!
I also planned out the V2:

  • Fix NFC feature, probly redraw the antenna ig
  • Add a reset button
  • Add a battery
  • Add silkscreen, mask design with all my information just like a proper business card
    Just one last glance at my beautiful MCU :)
Attachment
Attachment
2

Comments

parva
parva 3 months ago

This thing is very big best thing.

parva
parva 3 months ago

You should add the direct link of video in demo.

Hung-Chi Wang

FINALLY DONE!!!!! I finished the game logic and flashing animation when either of the player won or a tie happened!!

Instruction

  • Player 1 is orange, and player 2 is red
  • Press left to move to the next grid
  • Press right to select the grid
  • Just like any tic-tac-toe rules
Attachment
0
Hung-Chi Wang

For the past two hours I finally made the control system work!!!!

  • Press left button for next
  • Press right button to select
  • The pointer will automatically skip the selected grid
  • The pointer will go back to the first grid if it reaches the last grid
Attachment
0
Hung-Chi Wang

HUGE SUCCESS, I finally got the board and everything except the NFC seems to be working perfectly!!!

  • Tested out all the LEDs
  • Installed Micropython
  • Installed Thonny
  • Coded left and right buttons
  • Watched Micropython Tutorials
Attachment
0
Hung-Chi Wang

Here’s what I did for the past two hours:

  • Excluded NFC from the copper pour
  • Redesigned NFC Antenna
  • Chose all the parts and edited BOM file, I repackaged everything thrice
  • Triple-checked the 3D viewer
  • Tried my best to replaced extended components with basic

PS: it’s 70 USD (89 CAD when I checked my bank account)!!!! SO I SPENT SO MUCH TIME ON CHECKING TO MAKE SURE EVERYTHING GOES RIGHT

Attachment
Attachment
Attachment
Attachment
0
Hung-Chi Wang

For the past two hours I was trying to add NFC feature to this card!!!

Attachment
0
Hung-Chi Wang

For the past hour I was cleaning up everything, including:

  • Swapping 1V1 capacitors with 3V3 (I mean the position) cuz 1V1 is crucial for chip logic supply and more delicate I suppose
  • Adding more GND vias
  • Rerouting a couple wires to the LEDs to allocate more space for NFC
  • Cleaning up references
  • Cleaning up DRC warnings and 2 errors
Attachment
0
Hung-Chi Wang

Finished routing everything!!!

  • Rearranged the pins
  • Added tons of GND vias as usual
  • Aligned USB socket with the edge
Attachment
Attachment
Attachment
Attachment
0
Hung-Chi Wang

Almost done wiring the IC components!!! YAYYY
PS: I deleted to capacitors as there are two pairs of 3V3 pins very close to each other

Attachment
Attachment
0
Hung-Chi Wang
  • Finished tic-tac-toe grid positioning
  • Replaced 0402 with 0805
  • Researching alternative flash storage (the original one is too big)
Attachment
Attachment
0
Hung-Chi Wang

Roughly positioned the components, mainly searching parts on JLCPCB cuz extended parts are too expensive…….

Attachment
Attachment
0
Hung-Chi Wang

Completed the schematic and footprints!!!
Part Selections:

  • 0402 Capacitors
  • 0402 Resistors
  • 0402 LEDs
  • RP2040
  • ABM8-272-T3 12MHZ Crystal (recommended by the official)
  • W25Q128JVS Flash Storage
  • USB-C
Attachment
Attachment
2

Comments

Melodic
Melodic 4 months ago

Looks awesome!

ekamwadhwa2004
ekamwadhwa2004 4 months ago

Nice