Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

3D TicTacToe - Comments on Schematic
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

3D TicTacToe - Comments on Schematic

by M@ttia on Tue Aug 31, 2010 10:17 am

Hi,
I'm quite a newbie in electronics in general (I'm a mathematician, so you can imagine my level of abstraction :lol:) and after a couple of months playing with the Arduino I'm now trying to build up a full standalone project on my own.

The game is 3DTicTacToe, which is basically the classical TicTacToe (Tris) game, played on a 3x3x3 (RGB)LEDs Cube. Before starting soldering stuffs etc. (I'm also still waiting for some parts to arrive) I've started drawing the schematics of the project, but since I'm a newbie I would ask you an opinion on this schematic (I'm sure a lot of components could be added in some intelligent locations (e.g. diodes and capacitors), as well as some other ones are probably unnecessary...).

To explain the project in words, the game will be built in a small wooden box, where the 3x3x3 led cube comes out (maybe under a glass sphere, recycling some empty Nutella jar :wink:).

  • The power can be drawn either from a USB port (only for power, no data transmission) or from a 2.1mm jack (e.g. 9V battery, wall adapter, etc.). A slider switch allows to choose the source (I suppose that with some special transistors/IC the automatic selection could be possible, but I'm not gonna complicate my life further...).
    -
  • The user interface consists in a 3D Joystick with button (like the ones which are on the PlayStation Controller) to choose which LEDs to light up), a button to reset the game (empty the grid) and two 7-segment displays to show the actual score of the 2 players.
    -
  • The controller part is done with an ATMEGA168 (programmed with an Arduino Duemilanove, then plugging out the chip and using it in my circuit), as well as two MAX7219 drivers for the LEDs/7Segment Displays (I'm only using two of the three colors of the RGB LEDs).


Would someone be so kind to have a look at the schematics and tell me if I'm doing some trivial errors (especially in the power supply part, but in general components could be missing everywhere: this is just what I could put down after some reasoning...).

Thank you very much! :wink:

Image



P.S. If the circuit will turn up to work well, future modifications could be to add a servo-motor to allow a 180° rotation of the cube (e.g. using a lateral 3D joystick); one joystick and 2 points-counters to each side to allow two players to sit in front of eachother, some music output with a buzzer, etc.).
User avatar
M@ttia
 
Posts: 12
Joined: Tue Aug 31, 2010 10:07 am
Location: Switzerland

Re: 3D TicTacToe - Comments on Schematic

by zener on Tue Aug 31, 2010 2:30 pm

I don't have time to ponder this much right now, but in life you have to make a decision: Do you want to have money, or do you want to use Maxim parts? I like money, so I don't use Maxim parts. I would find a way to do it without the Maxim parts. Maybe just use a shift register and some ULN2003's, something like that...

zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: 3D TicTacToe - Comments on Schematic

by M@ttia on Tue Aug 31, 2010 6:37 pm

Zener wrote:but in life you have to make a decision: Do you want to have money, or do you want to use Maxim parts? I like money, so I don't use Maxim parts. I would find a way to do it without the Maxim parts. Maybe just use a shift register and some ULN2003's, something like that...
Hi, eheh thanks for the hint :D Actually I already played a bit with shift registers so I wanted to try once with this max IC: actually I bought 5 pieces for 1.45$ (i.e. 29 cents each), so I think that at this moment I can still survive using one of those :lol: .

(P.S. I also ordered some shift registers, 10 pieces for 2.98$, so actually the MAX chip is even cheaper than a single shift register...)
User avatar
M@ttia
 
Posts: 12
Joined: Tue Aug 31, 2010 10:07 am
Location: Switzerland

Re: 3D TicTacToe - Comments on Schematic

by zener on Tue Aug 31, 2010 10:35 pm

For .29 I will use them...

zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Please be positive and constructive with your questions and comments.