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

    Hi Ioannis,

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

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

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

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


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    May we ALSO see your FULL code ???

    ...

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

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    Yes sure, i will upload the code soon, and i will also make a small video if you want.

    On the output, i have done the following configurations.

    1) only an LED
    2) light the LED through resistor.
    3) light the LED through a transistor.

    In case number 1. the 3MM LED does not go ON but it flashes very low with some pulses, it is not noticeable. (the 5 mm goes on)
    In case number 2. the LED works just fine
    In case number 3. the LED works just fine

    My question is, if anyone understands why it does not light up straight from the PIC (pin) output with no transistor or resistor.

    thanks a lot and sorry for the trouble

  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

    I can only assume an overload with some kind of interference with something else around...

    I would never load directly PIC output pins.

    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

    My opinion : MUST connect the LED trough resistor (R=U/I ; where U=5V and I depend on LED colour) ...

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