Cube when user can play 4x4x4 TicTacToe game vs computer which uses MinMax algorithm. Software runs on STM32F4DISCOVERY kit with high performance micro controller STM32F407VGT6. LEDS are control by TLC5940 chip.
Album - Pictures, Anim., end project
Runs on 3 TLC5940, which each one control one of three colors. TLC have 16 outputs where is connected LED cathode and it can be pushed to the ground. 4 layers (16 leds in one layer) in high, toggled by MOSFETS, one layer at the time. Game TicTacToe can be play on where user with 3 potentiometers add his own coordinates in. Computer uses [MinMax] logic to calculate his next move. First one to 4 in a row wins!
- STM32F4DISCOVERY - general inforamtion
- TLC5940 - manual
- Shematic - for Arduino
What things you need to install the software and how to install them
- IDE using are System Workbench for STM32, AC6 Tool and new TrueSTUDIO
- Exported project Download
- TM_Libraries - Dependency
- STM32 Standard Peripheral Libraries - Main lib
Test in terminal Console-Application. Play vs computer with 2 layer depth recursive function. Run ConsoleApp_main.c in terminal:
make ConsoleApp_main
Run it:
./ConsoleApp_main
Play by type number from 1 to 64. Imagine 2D board as 3D cube stuck layer on top of layer.
- Tine Bertoncelj - [email protected]