Please help with code for DS18B20


Closed Thread
Results 1 to 40 of 110

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    Which display did you ordered? the 4D 3.2" touch screen?

    Ioannis

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20


  3. #3
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    i'm facing the same problem with the LED output pulses.

    Is there anyone has the same problem? I cannot fix it.

    Once the temp goes closer to the SET temp, the output seems to have pulses before it light the LED at its level.

    It looks like the PIC sends pulses at the very close set temp and once it comes to the action, lights the LED.

    To be more specific.

    Lets say we SET the TEMP at 22 C. and .10 C. the plus and minus from 22 C.

    If the display goes to 21.6 or 21.8 the indicator LED flashes very low with pulses.

    If the TEMP goes to 22.20 then the LED lights.

    Please let me know if anyone of you having the same problem. To program i use the PIC KIT 2.

    thanks a lot.

    I would like to say that i have test the circuit with Transistor also and Resistor 4,7K.

    But at the point close to the set TEMP the led keeps flashing, and once is reaching the (emaple 22.20 C) it goes stable active.
    Last edited by astanapane; - 8th December 2011 at 09:43.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    The comparisson is done with the program code in post #88?

    Ioannis

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    Hi Ioannis,

    Yes, i have added the lines Fratello told me in order to activate the outputs.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    It should not do this. The code has some kind of hysteresis which prevents the play at he output.

    What if you increase this hysteresis?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    I made tens of this thermostat, for all my friends, relatives....without troubles. Maybe it's time to show us Your schematic !

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

Members who have read this thread : 3

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