Please help with code for DS18B20


Closed Thread
Results 1 to 40 of 110

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    Ok after all i found out that it was the sensor problem.

    According to the outputs on the ports for high and low indication, the problem exists.

    Once i place a low current 10mA it does not light but flashing very low.

    If i place an led more that 20mA then it fully light up.

    I dont know if anyone has the same problem.

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

    The function on thermostat it's made with R (4k7 - from PIC port), transistor (BC547), relay (from collector to plus).

  3. #3
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    Thanks Fratello,

    i havent test with any transistor, because normally it works with an indication of LED. The ports can handle 100mA. I thought that would work like that.

    This week i will be in Vienna and then i will be in America for some Seminars. So i wont be able to test in my lab the code or a circuit.

    I will get 3 uLED 3,2 touch from Sparkfun and i will try to make and complete the circuit for RFID that i have started in addition to codelock circuit.

  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

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

    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


  6. #6
    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.

  7. #7
    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

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