Displaying temperature Setpoints


Closed Thread
Results 1 to 40 of 59

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    there entire device has slowed down. temperature changes used to be instantaneous. going into the different menu's were instantaneous. for some odd reason every has slowed down.

    About the amplification, wouldnt it affect the resolution of the measurement?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kalind View Post
    there entire device has slowed down. temperature changes used to be instantaneous. going into the different menu's were instantaneous. for some odd reason every has slowed down.
    So when you press a button it takes a bit for anything to happen?

    I do not see anything obvious in you code other than it is doing a lot of things now that take time. Takes a little time to get back to the button. To make the buttons react faster you will want to explore interrupts.
    About the amplification, wouldnt it affect the resolution of the measurement?
    No.
    The resolution is controlled by the ADC, 8 or 10 bit, and the VREF (voltage reference)
    This link goes to a volt meter
    http://rentron.com/serial.htm
    but that is all a LM35 is (sort of)
    Bruce has a good explanation about how to read a voltage and display it.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2008
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    yeah it takes abit longer than before to do stuff. im really concerned as to why this is happening bcause it kinda defeats the purpose of intantaneous measurement. Is there anything you would recommend? Should i maybe try change the oscilator to fosc/32? would that help?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Still looking...And it is getting late

    What does this part do for you?
    Code:
    getkey:
    pause 50
    keyin = portc
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Oct 2008
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    provides debounce for buttons connected to portc

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Well, since those buttons seemed to work out so well (refer to post #20 and post #34), do you want to humour me a little bit more?
    Code:
    Define LCD_DREG PORTB
    Define LCD_DBIT 0
    Define LCD_RSREG PORTB
    Define LCD_RSBIT 5
    Define LCD_EREG PORTB
    Define LCD_EBIT 4
    DEFINE LCD_BITS 4
    DEFINE LCD_LINES 2
    keyin var byte : adval var word : tempc var word : trisa=1 : trisc=$1f
    highled var porta.1 : lowled var porta.2 : adcon1=$f2 : adcon0=$c1
    pause 1000 : lcdout $fe,1 : goto main
    main: adcon0.2=1 : pause 1
    checkadc: highled=1:if adcon0.2 = 1 then checkadc
    highled=0:adval.highbyte=adresh : adval.lowbyte=adresl : tempc=(50*adval)/100
    pause 50 : keyin = portc : temp = temp + 1 : lowled=temp.3
    lcdout $fe,1,"T=",DEC5 tempc,$DF,"C",$fe,$c0,BIN8 keyin : goto main
    end
    What happens?

  7. #7
    Join Date
    Oct 2008
    Posts
    47


    Did you find this post helpful? Yes | No

    Question

    hey guys. i just realised that everything is fine until the actual temperature reaches the respective setpoints. thats when the design starts to really slow down during its operation. i cant seem to understand why this is so.

    Refering to post #44

    looks like temperature being measured...
    keyin = portc : temp = temp + 1 : lowled=temp.3
    not sure about that though..

    on the lcd will be displayed temperature on the first line and i assuming the binary value of keypressed on line 2

Similar Threads

  1. Write Onewire data toa I2C memory / read ASCI
    By Eugeniu in forum mel PIC BASIC Pro
    Replies: 67
    Last Post: - 16th November 2008, 19:19
  2. Displaying temperature using a -40 to 185F??
    By jblackann in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th January 2008, 18:45
  3. Conversion problem
    By eva in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th March 2007, 18:21
  4. Help for decimal conversion
    By eva in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th March 2007, 18:20
  5. Serout "onewire.bas"
    By puru in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th July 2005, 00:14

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