Wish
DX  » Community » Forums
«See all threads (in Product Forum)
Product Forum

How to connect to arduino

  • Veda88 Sunday, May 27, 2012 9:09 AM Reply
    Hello,

    I am trying this display to an arduino.
    I tried these wiring instructions:
    http://www.arduino.cc/playground/uploads/Code/GLCD_Documentation.pdf
    http://www.arduino.cc/playground/Code/GLCDks0108
    with display type B.
    I used this library:
    http://code.google.com/p/glcd-arduino/downloads/list
    glcd-20111205.zip

    does anyone know how to do it?

    Thanks
    Posts(5) | Reviews | Tip post

  • AndrewWD Monday, June 11, 2012 10:54 PM Reply
    This display uses a ST7920 controller and I don't think the GLCD library supports it.

    I've used the display with the U8glib (Universal 8bit Graphics Library for LCD) using SPI (very low number of pins required).

    My pin config:
    LCD->Ardunio -> Used as
    Gnd -> Gnd -> Ground
    VCC -> 5V -> Power
    RS -> Pin 8 -> Chip Select (CS)
    R/W -> Pin 9 -> Serial Input (MOSI)
    E -> Pin 3 -> Serial Clock (SCK)
    PSB Gnd Pull low to enable SPI mode

    *And don’t forget about the black light pins. Join jumper "JP3" on the back to use the pot/varesister for contrast.

    Code to Make it Work
    #include "U8glib.h"
    U8GLIB_ST7920_128X64 u8g(3, 9, 8, U8G_PIN_NONE);
    // SPI Com: SCK = en = 3, MOSI = rw = 9, CS = di = 8

    And some pictures- http://www.flickr.com/photos/andrew-d/7162560453/in/photostream/

    Posts(31) | Reviews | Tip post

    post edited by AndrewWD on 6/11/2012 at 10:55 PM
  • ppsieradzki Wednesday, November 14, 2012 10:28 PM Reply
    Does anyone know how to do this in Arduino Mega 2560? What pins are CS, Serial Input (MOSI) and SCK on the 2560?

    Also how does one do the backlight pins? Joining jumper JP3? I see the spot to potentially solder something on JP3 but what is that connected to?


    Thank you in advance for your help!
    Posts(9) | Reviews | Tip post

  • ppsieradzki Wednesday, November 14, 2012 10:32 PM Reply
    I actually found the pins for the Arduino:

    http://2.bp.blogspot.com/-LY-d26Ay3AY/TylgWatW7xI/AAAAAAAAAc4/Zm0VIu7LHCo/s1600/icsp_pinout.png

    I still need help on the backlight, however :)
    Posts(9) | Reviews | Tip post

  • RichieDuke Friday, January 25, 2013 6:31 PM Reply
    AndrewWD have you tried the 8 bit interfase? I wired everything (and triple check) but all i get is a corrupted image (starts "wright" but as it redraws it gets corrupted), on al examples of the library. If you did, could you tell me how did you wired it? Thanks. P/D: Tried SPI, everything works, but is slow, in 8 bit is corrupted but fps are high.
    Forgot to add, im using arduino nano (the one sold here on dx)
    Posts(18) | Reviews | Tip post

    post edited by RichieDuke on 1/25/2013 at 6:34 PM
  • AndrewWD Friday, January 25, 2013 7:17 PM Reply
    Sorry RichieDuke I have no experience using this module in parallel mode. If you are sure your wiring is correct (sounds like it is because you are getting something from it) I'd talk to the creator of U8Glib over at this forum http://arduino.cc/forum/index.php?PHPSESSID=0b2c4a2000a757aa101843eea2636c2c&topic=91395.105

    He helped me out with another LCD module and is keen to help others.
    Posts(31) | Reviews | Tip post

  • RichieDuke Monday, January 28, 2013 2:08 PM Reply
    Thanks for the links, everythings working now. Oliver (the u8glib creator) is very quick to respond any questions and to upload new versions of his library.
    Posts(18) | Reviews | Tip post

  • elric91 Friday, February 15, 2013 4:29 PM Reply
    On new models (20120214), JP2 is soldered on parallel (default)
    You have to desolder it to be able to enable SPI by grounding PSB as described in Andrew's post
    Posts(2) | Reviews | Tip post

  • pkholm Thursday, May 30, 2013 5:51 AM Reply

    To turn on backlight.
    Pin 19 BLA -connect to +5V via 10K or less resistor.
    Pin 20 BLK - GND for back light.
    Posts(2) | Reviews | Tip post

«Reply to this thread (in Product Forum)
Product Forum

Reply

Subject:

* 50 characters max

Message:

Please note: HTML codes are not allowed anywhere on this page (otherwise you will see an error).

Please note that DealExtreme Forums are not a sales or product support board. While we do constantly participate in this forum, please contact us via support ticket for a guaranteed fast response. We make every effort to make the quickest replies.

DX Everywhere