18F4420 and 1-Wire


Results 1 to 13 of 13

Threaded View

  1. #6
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: 18F4420 and 1-Wire

    Yes, of course.

    I forgot the pull-up resistor (4K7) when designing the board. I had intended to add it at the "plug" end of the cable, then forgot that as well; without this pull-up the "Waitloop" never exits. Once the hardware was correct, the temperature readings were suspiciously low (I suspect for the reasons Alain suggests). "Room temperature" reading was 62F, but my analog thermometer read closer to 70F; placing the sensor under my arm should have demonstrated somewhere near 98F, but the measured value was only 85F. Bruce's (Reynold's Electronics) conversion routine gives more accurate results:

    Dummy = Raw_Temperature * 1125
    Raw_Temperature = DIV32 100
    Raw_Temperature = Raw_Temperature +3200
    Temp_in_F = Raw_Temperature

    While I cannot verify that this formula yields precise results, room temperature reading of 69.14 was much closer to thermometer reading 0f 70; and under arm reading rose to 97+.
    Last edited by Amoque; - 22nd March 2015 at 12:50.

Similar Threads

  1. Migrating to 18F4420
    By Amoque in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th February 2015, 14:58
  2. Please help with 1-wire DS1820
    By hatuan291 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th March 2010, 13:51
  3. one wire
    By karenhornby in forum General
    Replies: 7
    Last Post: - 18th June 2008, 20:24
  4. 1-Wire
    By WarPony in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 11th May 2008, 22:14
  5. 1-wire emulator
    By johnyman34 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 10th March 2006, 12:17

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