1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Nokia 6100 Library

Discussion in 'Microcontrollers' started by AtomSoft, Oct 27, 2009.

  1. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    New update.. i recently came across the need to have the text on the LCD oriented to a specific position so i create the following code:
    Code (text):

    #define LEFT 0
    #define RIGHT 1
    #define CENTER 2
     
    Code (text):

        mylen = strlen((const char*)pString);

        switch(orientation){
            case LEFT:
                y = 0;
                break;
            case RIGHT:
                y = 131 - (mylen*width);
                break;
            case CENTER:
                y = ((131 - (mylen*width)) / 2);
                break;
        }
     
    strlen is in strings.h in C18 and is very useful.

    Example Code:
    Code (text):

    void LCDPutStr2(const unsigned char *pString, int x, char orientation, int Size, int fColor, int bColor) {
        unsigned char oldY, width;
        unsigned char y, mylen;

        mylen = strlen((const char*)pString);

        if(Size == 0)
            width = 6;
        else
            width = 8;

        switch(orientation){
            case LEFT:
                y = 0;
                break;
            case RIGHT:
                y = 131 - (mylen*width);
                break;
            case CENTER:
                y = ((131 - (mylen*width)) / 2);
                break;
        }
        oldY = y;

        while (*pString) {                                          // loop until 0 is found
            LCDPutChar(*pString++, x, y, Size, fColor, bColor);     // draw the character

            y += width;                                             // Depending on Font width add to y(left)
       
            if(y > 131 - width){                // If y > 131 max res then goto new line and resume
                y = oldY;                       // Reset y from the start.
                x+=9;                           // Add 9 pixels to hight
            }
        }
    }
     
     
    Last edited: Dec 22, 2009
  2. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    AtomSoft you really like working with displays :D

    I see that you have made a lovely library for 6100 display. Was just wondering if moving towards n95 display will be same or much more complex?

    Also i think your website have some issue (not opening up).
     
  3. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Not sure need to try it to see...
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0

    AtomSoft, did you ever find Proteus model for the screen of Nokia 6100 ?
     
  6. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    I have the nokia 6100 LCD but it doesn't have the board on which i can mount it :(

    Any advice how to use this. It has a very small connector.
     
  7. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Yeah buy the other connect part and make a board... Im doing it now really...
    I never found that proteus model... well i did but it didnt work... i mean wouldnt even load
     

    Attached Files:

    • 6100.jpg
      6100.jpg
      File size:
      376.8 KB
      Views:
      638
  8. DirtyLude

    DirtyLude Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    1,904
    Likes:
    56
    Location:
    Toronto, Canada
    Watch out when disconnecting the LCD from the connector. The connectors lock together fairly tight and I ended up ripping the male connector right off the FPC it's connected to.
     
  9. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    damn, i am not sure i will be able to handle such delicate soldering. Is there a name for the connector?
     
  10. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    Last edited: May 5, 2010
  11. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    AtomSoft, is LD117AS25TR some kind of regulator from 5 to 3 volts ?
     
  12. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    After all day of work i made the PCB but the screen didnt work :(

    I think i made inverted PCB or something. Is there a way to check if my Screen is alive or dead now ?
     
  13. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Hey sorry was away for a while ill try to answer all above in 1 post.. THIS ONE... with EDITS

    Ill POST my BOARD AND SCHEMATIC.. IT WORKS 100%

    The below ZIP FILE contains the EAGLE FILES

    6100 SCHEMATIC
    6100 BOARD
    6100 Library
    MY CUSTOM LIBRARY... HAS STUFF I USE AND MADE AND IS TESTED
     

    Attached Files:

    • 6100.zip
      File size:
      47.6 KB
      Views:
      263
    Last edited: May 8, 2010
  14. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    Thanks Atom, i actually do not use Eagle software, just use Proteus ARES for PCB designing. Its easier to bring schemetic from ISIS to ARES directly.

    If i connect pin 10 with 3.6V and pin 9 with GND, should an LED glow (backlight maybe) ?

    Did you solder the LCD connector your self, its very hard to get it right.
     
  15. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Check it out: Atomsoft's Blog

    The newest post... Yes i did solder by hand... was a little issue but then remembered to use more LIGHT in the room and soldered it good! i can remove the LCD and replace it with another without the connector breaking. I recommend some glue tho heh... like thermal glue or something heh...

    PIN 10 to 5v and 9 to GND.... Not sure of power requirements. I guess i should read up on that...
     
    Last edited: May 8, 2010
  16. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    after wasting 6 pcb's and 5 LCD connector jacks i give up. The problem is with the PCB's. Its very hard to get neat and clean lines for such small connector. Two or three lines get short :(

    How do you make such neat PCB's, whats the secret ?
     
  17. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    Nothing really. Just print iron/laminate and etch. I can make you a pcb with parts for 4 lcd connectors. 1 For ur board and 3 for me :D ill do complete pcb and part including. ams1117 aka 3.3v reg and smd resistors for 5v usage on pics
     
  18. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    Can you make me a few as well. :D

    The thing is i do not have a lamination machine (got burnt). For this reason the traces get a little messy specially the delicate ones.

    How much cost for each board ? :)
     
    Last edited: May 11, 2010
  19. AtomSoft

    AtomSoft Well-Known Member

    Joined:
    Feb 7, 2008
    Messages:
    5,670
    Likes:
    41
    Location:
    Brooklyn, NY US
    If you can supply a LCD Connector for each then ill do you up to 4 for $8 thats $2 each... that includes the Regulators and resistors... If you can supple me with 3x the connectors then free!

    Like if you want 3 boards done. If you send me 9 connectors ill do you the 3 for free...

    If you want PCB alone $1.50 each (no parts on board.) but will test each connection (trace)
     
  20. haxan

    haxan New Member

    Joined:
    Nov 17, 2009
    Messages:
    387
    Likes:
    0
    Ok i am going to contact you via PM :)
     
  21. Sceadwian

    Sceadwian Banned

    Joined:
    Oct 27, 2006
    Messages:
    14,047
    Likes:
    141
    Location:
    Rochester, US
    The real secret to making PCB's is simply taking your time, not rushing and doing it right the first time =)
     

Share This Page