Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Great! More Nokia LCD applications are always welcome
    I have plenty of Nokia color LCD. Maybe that is next step... , but not soon...

    BR,
    -Gusse-

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Hi to all !
    Based on the code from here : http://www.picbasic.co.uk/forum/show...7&postcount=35, I intend to use the Nokia-LCD for the thermostat; I attach the schematic. Please, help with TRISB,TRISA,PORTB,PORTA,OPTION_REG setting, because, even I read the datasheet, I don't understand why Mr.GioppY say :
    TRISB = %11000010
    TRISA= % 10100010
    In the schematic I see : RB6,RB7 not used - why "1" ?
    RA7 not used - why "1" ?


    Can someone explain me ? Thanks in advance !
    Attached Images Attached Images  

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    May be he used it for some tasks and forgot to make it Output (0).

    So if you do not intent to use them, make it output. If you still want to keep it Input suggest to tie pull up or pull down resistors. Do not let any pin float.

    Ioannis

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Here is an include file that has been modified from many peoples code in this thread, and Darrel's PrintStr function, for the nokia-3310. It allows for very simple printing to the LCD.

    You can also print different things on the same line, by using the x, and y, positions.

    example:
    Code:
    DEFINE OSC 48
    
    include "modedefs.bas"
    include "LCD_3310.pbp"
    start:
    
    @ PrintStr  0,0, "I love being"
    @ PrintStr  0,1, "able to print "
    @ PrintStr  0,2, "so easily!"
    Attached Files Attached Files

  5. #5
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Very nice! Now printing to Nokia LCD is definitely easier.
    Thank You and Darrel!

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Hi again !
    Based on the schematic from post #119 I wrote the code from the thermostat ; but nothing happening when I push button on pin 7, or 8, or 9. I know that something is wrong, but I need help...Thanks in advance for every reply !
    Attached Files Attached Files

  7. #7
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Hello fratello,

    Can you tell us if there are any parts that do work? It is always easier to trouble shoot if you know where to start.

    Like:
    Can it blink an LED, or are we unsure if it is even starting up?
    Does it print to the LCD, and just not give you the temperature, or is the LCD blank?

  8. #8


    Did you find this post helpful? Yes | No

    Default speedoometer+code lock with 3310 lcd

    I want make digital code lock + speedometer with pic and 3310 lcd
    Plz help me for code in picbasic
    On the meter then first code lock on if code don then speedometer on
    And distance save in pic internal eeprom


    Tahir maqsood

  9. #9
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default ?

    Based on code that I post at #155, it is possible to use BIG fonts like in this example : http://users.picbasic.org/Howto/PPRI...t%20update.pdf ? Of course, just display the temperature, with big font, without others graphical elements... The commands are in Proton+ ,but it's possible to use with PBP ? What are You thinking ? Thanks in advance for every repply !

  10. #10
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default bitmap fonts

    It looks possible. You would have to create custom characters for the 3310. Some helper bitmap font editors are available, like http://www.crystalfontz.com/forum/showthread.php?t=3619 to help you write the code for each character. How big are you wanting to go?. The link I showed goes to 10 x 14. But a font like this 10x14 (just look at fonts on this link) is bolder http://www.ageta.hu/pdf/gw64x16C-K610a-03.pdf. But perhaps you want even larger?
    Last edited by ScaleRobotics; - 5th April 2010 at 16:56.

  11. #11
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Please take a look at this ideea :
    -in picture I figure how increase the size of characters ;
    -in the code I try to explain how I see the problem.
    Suggestions ? Thanks !
    Code:
    ' So I define the normal characters : 
                       DATA @10,$3E,$51,$49,$45,$3E,_       ';// 0                
                                $00,$42,$7F,$40,$00,_       ';// 1    
                                $42,$61,$51,$49,$46,_       ';// 2    
                                $21,$41,$45,$4B,$31,_       ';// 3    
                                $18,$14,$12,$7F,$10,_       ';// 4    
                                $27,$45,$45,$45,$39,_       ';// 5    
                                $3C,$4A,$49,$49,$30,_       ';// 6    
                                $01,$71,$09,$05,$03,_       ';// 7    
                                $36,$49,$49,$49,$36,_       ';// 8    
                                $06,$49,$49,$29,$1E,_       ';// 9    
                                $08,$08,$3E,$08,$08,_       ';// +    
                                $08,$08,$08,$08,$08,_       ';// -    
    ' and display the temperature :
    '================= setting cursor for display the temperature 
                    LcdReg  =  %10100000 + 22       ' cursor  X
                    call    PrintCtrlLcd
                    LcdReg  =  %01000010            ' cursor  Y
                    call    PrintCtrlLcd
    '================= now display temperature                  
                    Char = (temperature dig 3)            
                    call    PrintChar
                    Char = (temperature dig 2)           
                    call    PrintChar
                    Char = 14                       ' this is decimal point           
                    call    PrintChar
                    Char = (temperature dig 1)      
                    Call    PrintChar 
    '
    'here I try to display with BIG font :
    '===============================================
    ' try to define BIG zero :
                       DATA @10,$1F,$1F,$66,$66,$61,_       ';// the 1/4 left-down  part of zero
                                $7C,$7C,$03,$03,$43,_       ';// the 1/4 left-up    part of zero
                                $43,$33,$33,$7C,$7C,_       ';// the 1/4 right-up   part of zero
                                $61,$60,$60,$1F,$1F,_       ';// the 1/4 right-down part of zero
                                
    ' and display the temperature :
    '================= setting cursor for display the temperature 
                    LcdReg  =  %10100000 + 22       ' cursor  X
                    call    PrintCtrlLcd
                    LcdReg  =  %01000010            ' cursor  Y
                    call    PrintCtrlLcd
    '================= now display temperature                    
                    Char = ??????????           
                    call    PrintChar
                    Char = ??????????       
                    call    PrintChar
                    Char = ??????????                       ' redefine of decimal point           
                    call    PrintChar
                    Char = ??????????    
                    Call    PrintChar
    Attached Images Attached Images  

  12. #12
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Hey Bill,

    I think this might be a version issue for Mpasm, or PBP, but really not sure. I get a nicely compiled result at 2312 words for your version of include file.

    I can fit 96 more bytes in RAM, so there is a bit more left, but as you can see, my program is small.

    Name:  3310-size.PNG
Views: 7121
Size:  62.7 KB
    Last edited by ScaleRobotics; - 12th July 2010 at 06:39.

  13. #13


    Did you find this post helpful? Yes | No

    Default 3310_lcd_code_lock

    i am new in pbp i want this schematic code in pbp
    and step by step detail this code for learning purpose
    plz any body help me

    Thanks
    Attached Images Attached Images  

Similar Threads

  1. Nokia COLOR LCD PicBasicPro 2.50a example code
    By skimask in forum Code Examples
    Replies: 49
    Last Post: - 28th September 2011, 01:43
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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