Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: DEV_DISPLAY_128X64 with I2C I/O Expander: Has anyone done this?

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Location
    Johnson City, TN
    Posts
    11

    DEV_DISPLAY_128X64 with I2C I/O Expander: Has anyone done this?

    Dear folks,

    I am considering getting a LCD Graphics unit (DEV_DISPLAY_128X64) but was wondering if anyone has ever attempted to use it with an I2C I/O port expander like the MCP23017?

    It would be an interesting challenge to figure this out, but before I proceed, can you think of any issues that might get in the way?

    I am a big fan of the Teensy 2.0 and 3.0, and I would like to make this work in order to free up I/O pins for other tasks.

    Many thanks!

  2. #2
    Senior Member sumotoy's Avatar
    Join Date
    Nov 2012
    Location
    Venezia, Italia
    Posts
    421
    Have you read the Nick Gammon article? He uses MCP23S17 (for SPI) and MCP23017 (for I2C) for driving a graphical LCD on duino's. Pay attention that several old graphical LCDs works only at 5V (you will have to use a level converter).Consider that a graphical LCD can be slow used with I2C so prolly better use MCP23Sxx series that uses a special addressing feature on CS pin that it's extremely useful when you need several port expanders on same wires, in this way you just use one wire more than I2C but faster and you can still add several other GPIOs. Gammon's code should work as is, maybe some minor modifications to avoid avr/pgmspace.h, I don't remember well but maybe not works with T3.

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Location
    Johnson City, TN
    Posts
    11
    Many thanks, sumotoy!

    Yes, I am aware that the I2C approach can be a little pokey, but I will try the MCP23S17 approach. BTW, that chip is perfectly happy at 3.3V, so I will do that and avoid level-shifters. On to the article...

  4. #4
    Senior Member ZTiK.nl's Avatar
    Join Date
    Dec 2012
    Location
    Amsterdam
    Posts
    179
    Quote Originally Posted by sumotoy View Post
    I don't remember well but maybe not works with T3.
    Do you mean that the MCP23017 might not work on a Teensy 3, or that the combination of display/expander/T3 might not work?

    The reason I'm asking is because I have a MCP23017 here, and am planning to use this to connect some sensors.

    I could simply try and find out when I get to it, but it would be a shame if I destroy it on first use.
    Although, as far as I can find out, it can operate from 2.7-5.5V so that shouldn't be a problem...

    (sorry for reviving a 'closed' topic, seemed like the best place to ask)

  5. #5
    Senior Member sumotoy's Avatar
    Join Date
    Nov 2012
    Location
    Venezia, Italia
    Posts
    421
    I have a lot of experiences with MCP23xxx GPIO expanders, even on Teensy3, and works at 5v or 3.3v with no problems!

  6. #6
    Senior Member ZTiK.nl's Avatar
    Join Date
    Dec 2012
    Location
    Amsterdam
    Posts
    179
    Quote Originally Posted by sumotoy View Post
    I have a lot of experiences with MCP23xxx GPIO expanders, even on Teensy3, and works at 5v or 3.3v with no problems!
    Excellent
    Thank you for verifying!

Posting Permissions

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