Results 1 to 4 of 4

Thread: Minimize Arduino Outputs - 4x4 Two Color

  1. #1
    Code Monkey NightrainSrt4's Avatar
    Join Date
    Jun 2007
    Location
    Your cookie jar
    Posts
    2,679

    Default Minimize Arduino Outputs - 4x4 Two Color

    Just to make sure I am heading in the right direction:

    To have enough outputs on an Arduino Duemilanove to drive a 4x4 Matrix of LED's independently I would need an LED Driver such as a Maxim MAX7219 correct?

    I want to make an electronic 4x4 Reversi/Othello game, which means I would need the 4x4 to be able to drive 2 different colors (and off), and 4x4 matrix of switches. The switches are pretty simple as only one gets accessed at a time so I don't have to worry about ghosting inputs.

    But to get the LEDs to light correctly without lighting up ones I do not want lit, and without a slow blinking / pulsing as it goes through the columns, I'd have to use something similar to that kind of driver?

    All 16 LED's need to be controlled independently in 3 states: color1, color2, and off. Without a driver (which I would need something similar to address the power issue) I don't see how I could do all this with the Duemilanove's number of outputs.

    Just want to make sure I am heading in the right direction. Thoughts?

    EDIT: Half my hassle would be relieved by just going with the mega it seems . . . To bad.

  2. #2
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: Minimize Arduino Outputs - 4x4 Two Color

    Present a wiring diagram.
    Antec Sonata II | Pioneer DVR-212
    Good news! You can follow my website or follow me on twitter!

  3. #3
    If you can't hack it, you don't own it! Oneslowz28's Avatar
    Join Date
    Mar 2007
    Location
    Aiken, Sc
    Posts
    5,084
    Last edited by Oneslowz28; 08-04-2010 at 12:50 AM.

  4. #4
    Code Monkey NightrainSrt4's Avatar
    Join Date
    Jun 2007
    Location
    Your cookie jar
    Posts
    2,679

    Default Re: Minimize Arduino Outputs - 4x4 Two Color

    Quote Originally Posted by crenn View Post
    Present a wiring diagram.
    I hadn't gotten that far, as it was purely conceptual. I was just trying to work out how to tackle it. It was kind of "Hmmm, that would be interesting. I like reversi. How would I go about this". Maybe I should write a software game version first so I can focus on the basic logic, then figure out a physical implementation, as I doubt I am going to come up with the best/least use of code on the first attempt.

    I looked at the Arduino link but only for a bit as I saw the wiring diagram and that would need only one row or column lit up at a time, otherwise it would ghost outputs onto the wrong leds.

    Using the interrupt they use seems like that would help alleviate issues, but if the code gets too complex / uses too many cycles then it seems the interrupt would either cause issues or the delay before the display routine gets called could be too high and cause visible blinking / the leds would be blank for a short period between each light up. Didn't look at it for long enough to figure out which of those two would occur.

    In the end I should probably just start working on it and figure it out as I go. I tend to have an epiphany when doing these kinds of things sometime during the cooldown period after the inner rage following initial failure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •