Trouble with LCD 2x8 and sequential display of values


Closed Thread
Results 1 to 31 of 31

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    How about just throw away values that are outside of expected ranges? Like take a running average, and if the temp is way off, disregard it. That way, it can still be 0 deg C, but only if its close to the average temp.
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Thank you all for support !
    Since the "timming" it's not so important , I made this change :
    Code:
        ' Start temp.conv.Sensor1      
    OWOut DQ1, 1, [$CC, $44]       
    OWOut DQ1, 1, [$CC, $BE]      
    OWIn  DQ1, 2, [temperature1.byte0, temperature1.byte1]        
    Pause 800 ; because DS18B20 need 750 ms for conversion         
    If Temperature1.15 then                      
    Temperature1= ~Temperature1 +1               
    Twist1 = 1         
    Endif
    ...
    ...and the display works fine now...despite the decrease of speed in display the changes of temperatures.

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    I rushed... still have, from time to time, "0.0 'c" on display, ONLY for sensor on DQ2 (out sensor) .... ....

  4. #4
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Quote Originally Posted by fratello View Post
    I rushed... still have, from time to time, "0.0 'c" on display, ONLY for sensor on DQ2 (out sensor) .... ....
    Why not you poll the busy bit, instead of the Pause 800 statment?

    I don't know your application, but you can also disable interrupts before the 1-wire stuff, and then enable them again.
    Thanks and Regards;
    Gadelhas

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Quote Originally Posted by gadelhas View Post
    I don't know your application, but you can also disable interrupts before the 1-wire stuff, and then enable them again.
    Thanks for help ! How can I make this ? The most part of code it's in post #1...

  6. #6
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Quote Originally Posted by fratello View Post
    Thanks for help ! How can I make this ? The most part of code it's in post #1...
    Can you put the code of your interrupts stuff, because i don't see it in the code of the post #1
    Thanks and Regards;
    Gadelhas

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    I use just :
    "Include "Elapsed.bas"" ; for counting seconds
    without other interrupts...

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    fratello,

    Try this hex file.
    It uses elapsed.bas, adds CRC checking and error correction, while only using 1375 WORDs.
    Yours was 1871 WORDs, so it also saves ~500 WORDs (~1/4 of total memory.)

    It should run on your .dsn, but the voltage will be off because I changed the circuit a little.



    I didn't have your code, so the battery icon is different.
    Attached Files Attached Files
    DT

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


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Thank You so much ! I will try soon Your hardware ... I must (re) build the PCB.
    In Proteus I have some messages ... It's something wrong ?
    ...and the temperature on display don't follow the variation of sensor(s)-the new temperature is on display NEXT time when the temperature is show !
    Attached Images Attached Images  
    Last edited by fratello; - 23rd February 2012 at 06:34.

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