Recommend me a microcontroller...

starhawk

[H]F Junkie
Joined
Oct 4, 2004
Messages
8,908
Hey folks... I actually PMed someone about this but they didn't know enough to point me in a specific direction. I've already been to HackADay, they weren't too helpful to me either.

I want to build a game of Reversi (aka Othello if it's the trademarked model) with a handheld electronic controller (or two) that outputs composite video + simple sounds to a TV. I would prefer to have a three-color display (blue background, yellow and green 'sprites' for game pieces, and yellow text indicating score and who's turn it is). "Sound" would be limited to a beep when a move is complete. The turns will not be timed, although I'm thinking of going with a more "Othello" style ruleset (the players' first pieces automatically placed in the center of the play field). Screen resolution would be QuarterVGA -- 320x240.

As an aside, I *might* be persuaded to go in the direction of a serial graphic LCD for this, but those are mondo expensive compared to an R-2R ladder DAC and a couple chips, so I'd like to avoid that.

Player controls (consisting of four directional buttons and a 'select' button, per player) can be handled one of four ways. One controller (and the players swap it between turns) or two. Shift registers or no shift registers. Here's how that lays out...
(1) Two controllers w/o shift registers. Needs 10 GPIOs, one for each button.
(2) One controller w/o shift register. Needs 5 GPIOs, one for each button.
(3) Two controllers with shift registers. Needs 5 GPIOs (2x chip enable, 2x serout, 1x clk [shared]).
(4) One controller with a shift register. Needs 3 GPIOs (chip enable, serout, clk).

Video would be handled with a separate PWM output for each color (R/G/B) plus a conversion IC (something that's a socketable DIP would be nice!) to make it composite.

I've been informed on the relevant forum that PICAXE chips are far, far too weak for this... so that's why I'm asking what /would/ work.
 
Scrolled through the page, didn't see anything useful. The "data types for Arduino" picture made me chuckle, tho.

...also, congratulations on being the first non-me poster in this thread. It's been a lonely three weeks here, glad to have some company :p
 
Scrolled through the page, didn't see anything useful. The "data types for Arduino" picture made me chuckle, tho.

...also, congratulations on being the first non-me poster in this thread. It's been a lonely three weeks here, glad to have some company :p
Your color video output requirement is the difficult part. Most uc's are designed more for using a display to provide status and other real time info. Much less so as an interface. The rendering of graphics requires a decent amount of processing capability. You are getting into arm range uC power.

I think your best bet would be something like the rasberry pi. It would definitely be the cheapest. You could then use a RTOS (haven't looked to see which RTOS's support the rasberry pi, if any, because I'm on my phone) to provide the background stuff like interrupt handling etc. Then program your game.

Also, Renesas has some highly capable uC and they are very open to giving free demo boards. Just see which one they are giving away for free at this point. You could then design your code on the demo kit then build your board as small as you want with only the features you want. Http://am.renesas.com/products/tools/introductory_evaluation_tools/renesas_demo_kits/yrdkrx62n/index.jsp
Just click the red button at the top.

Lastly, i'm not sure if it's powerful enough but TI had their ARM Cortex M4 Launch Pad coming out soon. It's just $5.
 
Stellaris Launchpad is on the way (that's one deal I'm not stupid enough to pass on!), but I was hoping to use something a little less sophisticated for this.

Oh well.
 
Back
Top