16 bit conversion - AM2302


Results 1 to 13 of 13

Threaded View

  1. #4
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: 16 bit conversion - AM2302

    tabsoft,

    Using your code and the line
    Code:
    LCDOut $FE,$80+9,"RH ",dec hum
    The LCD is displaying 6473, 6730, 6729, 6473, 6729 so I would assume that there is the odd misread now and again.

    What divider should I use of the variable hum to get a realistic figure, and is there any tweaks to the values in the for/next loop to clearly define the 1's and 0's to make the reading of the sensor more stable. I'm using an 18F4580 running at 40 Mhz (10mhz crystal with the HS_ppl option enabled)

    EDIT:

    For info using
    Code:
    LCDOut $FE,$80+9,"RH ",#hum
    the values jump around 18714, 18970,18970,18714,
    Last edited by Scampy; - 10th April 2015 at 17:12.

Similar Threads

  1. DHT22, AM2302 and pic18F2320
    By bitmaniac in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 15th November 2015, 00:42
  2. Replies: 10
    Last Post: - 8th March 2015, 19:26
  3. Replies: 17
    Last Post: - 22nd May 2014, 19:58
  4. Bit conversion
    By lerameur in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 5th November 2006, 11:11
  5. Conversion of 10-bit word into ASCII
    By Barry Johnson in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th January 2005, 14:26

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