LCD BARgraphs


Closed Thread
Results 1 to 40 of 233

Thread: LCD BARgraphs

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Another example

    This is just like the previous example except that it places both the Value and the BAR on the same line.


    Code:
    ; Initialize your hardware and LCD first.
    
    DEFINE ADC_BITS 8               ' Number of bits in ADCIN result
    ADCON1.7 = 1                    ' Right Justify AD result
    
    INCLUDE "LCDbar_INC.bas"        ' Include the BARgraph routines
    
    Value  VAR  WORD                ' Must be a WORD even though AD is 8bit
    
    LCDOUT $FE, 1  ' Clear Screen
    
    Loop1:
        ADCIN  0, Value
        LCDOUT $FE,2,DEC Value," "
        ; syntax- BARgraph   Value, Row, Col, Width, Range, Style
        @         BARgraph  _Value,   1,   4,    12,   255,  lines
    GOTO Loop1
    
    Last edited by mackrackit; - 15th September 2011 at 09:25.
    DT

  2. #2
    Join Date
    May 2004
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Very good job, Darrel ! I like very much ! But you forget the "vertical bargraph" !

    Don Mario

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


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by Don Mario
    Very good job, Darrel ! I like very much ! But you forget the "vertical bargraph" !

    Don Mario
    Hi, DON

    Just turn your LCD 90° cckw !!!

    hi,hi,hi ...

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  4. #4
    Join Date
    May 2004
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Thanks ! It's a very good advice ! But I'm seriuos ! Don't forget the vertical bar !

    Don Mario

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


    Did you find this post helpful? Yes | No

    Wink Seriously ...

    Here, a Graphic LCD might be necessary ... ( I've tried a 4x20 : result is not so good due to space between the lines )

    And do not forget the processor to drive the graphic LCD, to have a simple handling like LINE x1,y1,x2,y2 ... BOX x1,y1,x2,y2 CIRCLE x,y,r .... etc,etc

    not so easy ... even with 8k memory , 20 Mhz and Assembler !!!

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  6. #6
    ta1dr's Avatar
    ta1dr Guest


    Did you find this post helpful? Yes | No

    Default convert code to PDS (proton development suit)

    hi Darrel
    thanks for very nice projects
    I want to use but I use Proton Suit (crownhill I am registered user) I can convert it but I didn't understand this row how can I convert PDS

    BARtemp = BAR_value * BAR_width is ok
    BARtemp = DIV32 BAR_range is ok
    '*************************************************
    Remainder = R2 but not ok how can I calculate
    remender from div32 command

    regards
    ahmet/TURKEY

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


    Did you find this post helpful? Yes | No

    Default

    ta1dr

    Read this thread.
    http://www.picbasic.co.uk/forum/showthread.php?p=13214

    Don Mario

    Attaboys followed by wantittodo's cancel each other out.
    And, this is the Code Examples forum. Not the Please make your program do what I want forum.

    I hate being rude, but come on, use the brain a little. I've given everything you need to be able to easily create your own vertical bargraph's. All you need to do is think and apply.
    <br>
    DT

  8. #8
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Quote Originally Posted by Acetronics View Post
    Hi, DON
    Just turn your LCD 90° cckw !!!
    Alain
    Did a vertical graphing tachometer over time with a single custom char (far right in the video).



    Just got to matrix rotate the byte and shift every byte in the custom char every frame to make room for the next vertical byte.
    (this one has odometer effect on the elapsed timer as well

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


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Hi Art. It is awesome! Really nice effect.

    Ioannis

  10. #10
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Hi Art !

    nice idea for the tachometer.

    I have an old project, where I´m already using 8 custom chars to show darrel´s bargraph, and other "compressed characters, like "Km/l" , "L/h".

    Is it possible to re-use the custom char to show the odometer efect and this nice tachometer or this is not possible ?

    Is your code for the tachometer complicated ?

    Thank you.

    Sérgio

  11. #11
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Hi,
    I'll post it go in it's own thread in a little bit.
    The tach is interrupt driven, display is PBP.
    I'm close to finishing something much nicer

  12. #12
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: LCD BARgraphs

    Hi Art,

    Thank you very much for your reply !

    I Will wait for your post.

    My best regards.

    Sérgio

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. 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 : 2

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