Dummy needs LCD tutorial,


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Formating

    Hi Melanie and Luciano,

    Nor good brakes or wall, simply wanting to display wind speed coming from an anemometer.
    I understand that i have to format the data so it overwrites the previous one.
    Melanie, no difference in your code if kmh<100 or kmh<10 ?

    What about displaying a moving cursor about half the wide of a full black character (ASCII 255 as you mentionend)

    I want to display the wind speed in full character in km/h and/or a sliding narrow cursor one the second line under a scale on the 1st one.

    Melanie, is there a tutorial or an good explanation about the LCD display ?

    Thanks for your help.
    Last edited by TK5EP; - 28th September 2005 at 12:40.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    No tutorial - just program, play and learn from doing.

    Assuming you'll never exceed 255 km/h wind speed (byte variable) and you don't live in Louisianna...

    My example right-justified... so the maximum you can display is three characters (100-255 km/h).

    If your spped is less than 100 km/h, then you prefix with one blank... this covers 10-99 km/h.

    If your speed is less than 10km/h, then you need to prefix with two blanks (0-9 km/h).

    Using this method, you get a stationary "km/h" label with the digits moving to the left. A lot neater than digits moving to the right with the "km/h" label flapping about behind them.

  3. #3
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Ok

    Well, in Louisinia my anemometer would be broken. It's limited to 180 km/h !

    OK, i understand it now. My 2nd question was because i saw no difference between both lines, i think you forgot a space between " " in the line for kmh<10. Do i have it right ?

    Thanks for your help, appreciated it.
    Patrick.

    Quote Originally Posted by Melanie
    No tutorial - just program, play and learn from doing.

    Assuming you'll never exceed 255 km/h wind speed (byte variable) and you don't live in Louisianna...

    My example right-justified... so the maximum you can display is three characters (100-255 km/h).

    If your spped is less than 100 km/h, then you prefix with one blank... this covers 10-99 km/h.

    If your speed is less than 10km/h, then you need to prefix with two blanks (0-9 km/h).

    Using this method, you get a stationary "km/h" label with the digits moving to the left. A lot neater than digits moving to the right with the "km/h" label flapping about behind them.

  4. #4
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Tréport, trop foooort !

    Merci Alain

    I'm starting with PICs and it's my first project. I have some good experience in BASIC but have to adapt my knowledges to Picbasic.

    I use a demo version (PROTON lite) but i'm thinking to change to Melabs, the forum and support seems to be much better !
    Unfortunately, the Melabs demo allows only 35 lines... and the registered version is a bit expensive for an occasional project !
    With 35 lines you have to be a bit tricky....

    Greetings from sunny Corsica,

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    > the (MeLabs) forum and support seems to be much better

    Now why do you say that? Just curiosity (though it did bring a smile when I read that). At a glance, they have ten-times the amount of activity that this forum has for roughly the same number of members...

  6. #6
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Forum

    Well, i got an answer quickly on this one, and found more infos in the archives for my level than on the other one.
    I saw more posts here since one week i'm interested in PICs.

    Maybe a bad guess ? But keep smiling !



    Quote Originally Posted by Melanie
    > the (MeLabs) forum and support seems to be much better

    Now why do you say that? Just curiosity (though it did bring a smile when I read that). At a glance, they have ten-times the amount of activity that this forum has for roughly the same number of members...

  7. #7
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    * * *
    Custom Characters tutorial:
    http://www.parallax.com/dl/docs/cols...1/col/nv32.pdf

    LCD Character Generator: (Freeware)
    http://www.parallax.com/dl/sw/lcdcc.zip

    * * *

    Writing custom characters to LCD display:
    http://www.picbasic.co.uk/forum/showthread.php?t=242


    Luciano

  8. #8
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Talking Bingo !

    Ciao Luciano,

    Grazie mille !

    That was exactly what i was looking for !
    This forum seems to be the right place for me... ;-)

    Thanks a million to all of you for your kindness.

    Quote Originally Posted by Luciano
    * * *
    Custom Characters tutorial:
    http://www.parallax.com/dl/docs/cols...1/col/nv32.pdf

    LCD Character Generator: (Freeware)
    http://www.parallax.com/dl/sw/lcdcc.zip

    * * *

    Writing custom characters to LCD display:
    http://www.picbasic.co.uk/forum/showthread.php?t=242


    Luciano

  9. #9


    Did you find this post helpful? Yes | No

    Default

    Hi Darrell,

    I love the bar graph display. Can it be set up to do the following:

    1. A text line showing the current temperature in deg C with 0.1 deg resolution. (Temperature data from a thermistor via a PIC a/d data channel.)

    2. Several bar graph lines showing (a.) the current temp. and (b.) the temp. as recorded in the preceeding 30 second intervals; with as many bars as is practical.

    3. As a new data bar is entered the oldest bar drops off.

    Possible?
    Last edited by Dick Ivers; - 29th September 2005 at 00:00.

  10. #10
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie
    > the (MeLabs) forum and support seems to be much better

    Now why do you say that? Just curiosity (though it did bring a smile when I read that). At a glance, they have ten-times the amount of activity that this forum has for roughly the same number of members...
    Me as well had a smile on my face...


    I don't want to start yet another "heated debate",
    but to be fair,
    I'm sure if Patrick had provided a bit more of information about his Project on "the other" Forum
    he would have got some better response.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  11. #11
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you can't imagine MY smile... period!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  12. #12
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default Sorry !

    Sorry if i bothered someone, it was not my intention... :-(
    My apologies if i did !
    Some of you are on both forums and answered me on both.

    Anyway, i will survey both forums and post on both. ANY help is welcome.

    Patrick,

    Quote Originally Posted by NavMicroSystems
    Me as well had a smile on my face...
    I don't want to start yet another "heated debate",
    but to be fair,
    I'm sure if Patrick had provided a bit more of information about his Project on "the other" Forum
    he would have got some better response.

  13. #13
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by TK5EP
    Sorry if i bothered someone, it was not my intention... :-(
    Oh no you didn't. You just raise an interesting fact wich make some people here laugh and some other cry. No harm at all.

    Quote Originally Posted by Melanie
    You see, there are reasons why you should be using the MeLabs compiler... Darrel's magic code is one of them...
    only one of them
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  14. #14
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    already posted a question about it, but did not get any answer
    Sorry about that! &nbsp; I was purposely ignoring it.

    Some other guy came in here and said that "The Other compiler" did everything that PicBasic Pro didn't. &nbsp; So, I didn't think you needed it.

    "I picked a bad day to stop sniffing glue" - Airplane.

    But seriously folks, &nbsp;R2 is a PicBasic Pro system variable that holds the modulas remainder after a 31x15 divide with the DIV32 command. &nbsp;I don't use "The Other compiler", so I really don't know how you would do that.
    <br>
    DT

  15. #15
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Cooorsicaaaaaaa ....

    I just forgot it was written for a 16F84 ...

    But, in Mel's answer, I didn't see something like :

    LCDOUT $FE, $80, ... to place cursor at the beginning of the 1st line, to be sure to overwrite old text ...



    Alain

    PS: si ça t'intéresse, j'ai les typons pour une petite plaque de démo Kivabien avec un buzzer, trois Leds, 3 E/S , un cavalier de reset ou config et un afficheur LED 2x16...

    ça aide ...beaucoup !!!
    Last edited by Acetronics2; - 28th September 2005 at 14:11.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  16. #16
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    > think you forgot a space between " " in the line for kmh<10. Do i have it right ?

    Partially. My example is however correct.

    The first IF statement adds one blank (space).
    The second IF statement adds one blank.

    If the value is < 10 km/h, then BOTH 'if' statements will be excuted adding a total of two blanks. If the value is > 9 and < 100, then only the FIRST 'if' statement is excuted adding only one blank.

  17. #17
    TK5EP's Avatar
    TK5EP Guest


    Did you find this post helpful? Yes | No

    Default ;-)

    Oupssss !
    Next time, i will turn my keyboard 7 times before writing a post !
    Sorry... :-(

    Quote Originally Posted by Melanie
    > think you forgot a space between " " in the line for kmh<10. Do i have it right ?

    Partially. My example is however correct.

    The first IF statement adds one blank (space).
    The second IF statement adds one blank.

    If the value is < 10 km/h, then BOTH 'if' statements will be excuted adding a total of two blanks. If the value is > 9 and < 100, then only the FIRST 'if' statement is excuted adding only one blank.
    Last edited by TK5EP; - 28th September 2005 at 14:28.

  18. #18


    Did you find this post helpful? Yes | No

    Default

    For a bar graph go to http://www.picbasic.co.uk/forum/show...LCDbar_INC.bas. Darrel wrote an include file that dones an amazing job using a bar graph.

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  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. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14:44

Members who have read this thread : 0

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