16F877A and Sensirion SHT21


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2014
    Posts
    2

    Default 16F877A and Sensirion SHT21

    Hi,

    does anyone here have a picbasic code for reading the SHT21 using 16F877A.

    i tried I2CREAD and I2CWRITE commands and it does not work.

  2. #2
    katelara's Avatar
    katelara Guest


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    The first issue, obviously, is memory. There's no 16F or 18F PIC available with >256kB memory, I think the most memory you can get in the 8bit ones is 128kB - so you're going to need an external memory of some sort.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    I also want to use this sensor, but how it is related to available memory?

  4. #4
    Join Date
    Jan 2014
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    it worked fine now. My mistake was to use SHT21 in hold master mode.

    the built in I2CREAD and I2CWRITE on Picbasic works perfectly on SHT21 but in No-Hold Master Master mode only . It took me several days to make it work.

  5. #5
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    Can you please share the code how to work with SHT21 ?

  6. #6
    Join Date
    Mar 2009
    Location
    FLA
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    Maybe if we ask nicely? Please ....or at least point us in the right direction....

    Hold Master mode or No Hold Master
    mode. In the first case the SCL line is blocked (controlled
    by sensor) during measurement process while in the latter
    case the SCL line remains open for other communication
    while the sensor is processing the measurement.

    Quote Originally Posted by CuriousOne View Post
    Can you please share the code how to work with SHT21 ?

  7. #7
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    Could anyone share the code for reading the sht21 or the si7021 please ?
    Thanks
    Ambro

  8. #8
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    If you don't need the precision of the SHT21, then use any of the DHT11, DHT21, DHT22, AM2302 sensors and the library file here http://www.picbasic.co.uk/forum/showthread.php?t=19975

  9. #9
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: 16F877A and Sensirion SHT21

    thanks ,
    I do really need the si7021 .
    Ambro

Similar Threads

  1. Sensirion SHT11 with a PIC16F628-20
    By gbm_designs in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 16th June 2011, 16:36
  2. Sensirion humidity sensor
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 7th October 2008, 16:48
  3. Sensirion CRC
    By Tom Estes in forum Code Examples
    Replies: 3
    Last Post: - 9th November 2007, 16:09
  4. Need help with 16F877A
    By valerij in forum General
    Replies: 0
    Last Post: - 13th November 2006, 17:26
  5. Device Compatibility: Sensirion Parallax sensor
    By embdfreak in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th April 2006, 19:15

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