Arduino Mega with uArm Swift Pro

Hi, with the uArm Swift Pro firmware 4.2 or higher it is now possible to use an Arduino or ESP 32 for the control without any problems.

ttt3

The Arduino Mega 2560 is particularly suitable. It has 54 digital I/O pins, 16 analog inputs and 4 UARTs. It can also be used to manage large, extensive robotics projects. And all this at a very reasonable price.

ttt1

Today I would like to present my Tic Tac Toe project for the Arduino.

The robot arm is controlled by the Arduino Mega 2560 and the input by the player ("X or “O” ") via a membrane keyboard.

I have used an existing GitHub Tic-Tac-Toe sketch (ArduinoTicTacToe/TicTacToe.ino at master · klauscam/ArduinoTicTacToe · GitHub) that uses the MinMax algorithm to determine what movement the computer should perform after each movement of the player.

I’ve added to this program the code to control the uArm position for player and computer, a membrane keyboard, and an Oled display.

ttt2

The player controls his input via the membrane keyboard, the computer via the Minimax algorithm. The display shows the respective game states. At the start of the game you can choose whether the computer or the player starts.

I hope you like it and I could give you an inspiration.
Best regards from cologne/germany
Klaus

My code can be found under: https://github.com/KlausKoeln/uArm-swift-pro
Watch the video here: https://www.youtube.com/watch?v=EtbgTBNQQTA&feature=youtu.be


UFACTORY Website
Official Store
uArm User Facebook Group

Feedback:
English
中文通道

1 Like

Awesome project! I have say though that is the wrong first move for tic-tak-toe.

Hello Klaus,

I am trying to control my Swift Pro with an ESP32.

Unfortunately your Github links are not working. Is there any chance to get your codes?

Best regars from Stralsund/Germany
Heiko

Hallo Heiko schick mir ne Mail an info()hdn.de, ich schicke dir dann die Daten.
Gruss aus Köln, Klaus

1 Like

Get to play best https://tictactoebeast.com/online-with-friends for enjoy with your friends.