Nokia LCD, Nunchuck, And MSP430 Join Forces

[JB’s] driving a Nokia 6100 LCD using an MSP430 with input from a Wii Nunchuck. He’s using the G2211 microprocessor that came with the Launchpad, and developing his code with MSP-GCC. As you can see in the video after the break, this works but there’s some room for improvement. That’s being said, he is bumping up against the code memory limit, with just around 500 bytes left to work with. The LCD screen is SPI and currently it’s hogging the pins that are used for the hardware i2c. Since he needs an i2c bus to talk to the nunchuck he had to go with software i2c which explains part of his program memory troubles.

We’re in no way experts on this, but it seems like he could save space (and improve the input responsiveness) by rewriting his LCD drivers in order to remap the pins. Then again, it might just be better to move up to a larger MSP430. If you’ve got some advice, make sure to share it by leaving a comment.

[youtube=http://www.youtube.com/watch?v=HtVn17k08fk&w=470]

11 thoughts on “Nokia LCD, Nunchuck, And MSP430 Join Forces

  1. It should be possible to drive multiple i2c devices with one micro. i2c is a master slave setup.

    I peeked at the code and I think there should be plenty of speed left.

    Looking forward to seeing more of this.

  2. @uC
    Correct. That was its intended purpose. TI sells a second source of a Phillips/NXP device that breaks out the I2C output into an eight bit I/O point.

    I looked at the guy’s pages and it seems he’s got an idea there but I wonder….

    Now how can we drive just the Nokia screen? I have a screen here, but have had no luck with it at all.

  3. I don’t see why you’d use a weak µC. I started with microcontrollers earlier last year and my first one was a stm32 with 72mhz, 64kb ram and 512kb flash. They’re just a few bucks and they have enough power for about anything :) (And pins ofc!)

  4. How fast can this LCD flash dark to clear to dark? Would it be possible to make open hardware active shutter glasses for the price of parts ($24) rather than what nVidia wants for a pair? ($170)

  5. The biggest issue with the Launchpad chips is the lack of memory. If you are comfortable with soldering TSSOP or QFP chips (its not as difficult as you might think) then get yourself some better MSP chips. Texas offers free samples for most of their gear. Just make sure you get chips with spy-bi-wire, msp430f5xxx are pretty beefy and would be a nice chip to start with.

    You can buy QFP breakout boards from ebay for a few dollars.

  6. The new Valueline Chips with 20pins and more memory are already out.

    And he could pull dual purpose on the USI, since spi uses a Chip Enable to make it active, and i2c uses a start/stop sequence and addressing.

  7. @Dekar

    I feel like using a weak uC is part of the fun and definitely more impressive. Personally, I get a lot of satisfaction out of squeezing every last drop of performance out of a chip. It’s nice to be able to surprise yourself. Also, employers will be happy if you can trim a few cents off the BOM by coding efficiently.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.