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 i will try later this afternoon to blink an led.

    Do i need capacitors for the ceramic 4 mhz resonator? I have also used a ceramic with 2 legs resonator at 4 mhz.

    In any case i will try to blink an led.

    As i mentioned on my previous posts, i have tried also the code from elektor, and works. (i just dont have the right sensor DS1820 which is very old and i dont get the right results. but i have something in the screen at least.

    With the code from Mr. Fratello, i dont have anything on the screen. That mean that there is something wrong, either with the hardware or software.

    Thank a lot again for your help.

  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 software it's ok !!! Remove the X-tal (leave pins 15 & 16 free), re-compile the code with added from post #73, check the RV1, check the connection to LCD., check the voltage (5 volts).
    Name:  termo.jpg
Views: 4354
Size:  143.3 KB
    Last edited by fratello; - 26th September 2011 at 07:09.

  3. #3
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    ok thanks a lot fratello,

    please give me some time to do it in the afternoon.

    I have done something else with a completed different thermostat.

    please check for my from an other thermostat with an old ds1621, a friend of mine gave it me i can upload the code if you like. (really sorry for my Greeks at the video, i upload it for the AVCLUB.gr there is a sub forum for flashlights)

    The reason i put the video is to see the menu for the thermostat configuration. It is nice to see the configured temp and the real time temp at the same time.

    Please check the video at 2:12 for the configuration menu.
    Last edited by astanapane; - 26th September 2011 at 08:42.

  4. #4
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    there is something on the display now.

    thanks a lot. The problem now is that i dont have the right value for the temp.

    It appears a minus value for both INT and EXT sensor.

    also the values for the SET POINTs are only in minus values. I think the minus symbol appears on both 75 and -25. I will upload pictures later on.

    The values now i have are

    INT: -0.06
    EXT: -0.06

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

    See post #42 !

  6. #6
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    ok,

    there is no problem with the DQ link.

    there is no bad component DS18B20. I have put two new DS18b20 that are working on a different circuit.

    How do i know the DS serial number? Do i need to get the serial number from my DS18b20 and place it to the code?

  7. #7
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Please help with code for DS18B20

    Sorry for asking so many things, i just be so close to make it work.

    So do i need to read the serial number for each sensor and place it inside the code?

    do i need to follow that http://www.picbasic.co.uk/forum/cont...r-nine-of-them?

    and then get the serial number from the DS?

Similar Threads

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

Members who have read this thread : 1

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