Me again, but need REAL help now


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Excellent help guys. Compiled with the && so I learned something new today....... but now I just get 16 on Humidity and Temp. I have a 10K pull up resistor on the DATA pin of the SHT71, and the leads are about 5cm long. I found that the program stops here:

    ReadSensor: gosub TransferStart : gosub WaitSensor
    shiftout dpin,cpin,0,[Sensorcmd\8]
    input dpin : cpin = 0
    while dpin = 1 : wend
    cpin = 1 : pause 1 : cpin = 0
    while dpin = 0 : wend '<-----------------program stops here
    so obviously the Data pin is not doing what its told to. Any more ideas out there???

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by gringobomba14 View Post
    I found that the program stops here:
    ReadSensor: gosub TransferStart : gosub WaitSensor
    shiftout dpin,cpin,0,[Sensorcmd\8]
    input dpin : cpin = 0
    while dpin = 1 : wend
    cpin = 1 : pause 1 : cpin = 0
    while dpin = 0 : wend '<-----------------program stops here
    so obviously the Data pin is not doing what its told to. Any more ideas out there???
    How do you know the data pin isn't doing what it's told to do?
    How do you know that the sensor received the Sensorcmd correctly in the first place to trigger it to kick back some data at you? Do you even have to wait for the dpin to go low and/or high? How about just pausing for a bit longer and see what happens?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    All good questions............let me stick some LED's in there and see whats going on then

  4. #4


    Did you find this post helpful? Yes | No

    Default

    This is now officially doing my head in.....pause 10 in place of WEND gives a temp of 4000 and a humidity of 65071. methinks this is not working for me, and my sanity quotient has dramatically decreased these last few days.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by gringobomba14 View Post
    This is now officially doing my head in.....pause 10 in place of WEND gives a temp of 4000 and a humidity of 65071. methinks this is not working for me, and my sanity quotient has dramatically decreased these last few days.
    Well, then get rid of all that crazy math (ok, it's really not that crazy, but it does increase the chance of a logical error of some sort) you've got going on, read raw values and see if anything at all makes sense.

    Put the sensor in ice water, run the program, read the value.

    Put the sensor in really hot water, run the program, read the value, see if the temp rises by something that's reasonable, like say you went from ice to boiling, the temp sensor might rise by 100 (or 212 depending on your units). And the humidity would surely rise a bunch too. Then maybe put the sensor in a bunch of dessicant, to dry it out really good and see what the humidity output reads.

    That 4000 you've got might be 40.00C (doubt it, but anything's possible), that 65071 might be 65.071%RH (again, doubt it, but, you know...).

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Careful Ski, people might start accusing you of knowing things!!!!!! I think what the problem is, is the SHT is either not understanding the commands, or the program isn't complete (I got it off the forum). I wonder is there anyone out there who has experience at this sensor?

    I have tried reading the raw data, and got, well, nothing. Or maybe less.
    Last edited by gringobomba14; - 19th June 2008 at 18:57. Reason: bad spelling again

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by gringobomba14 View Post
    Careful Ski, people might start accusing you of knowing things!!!!!!
    That's the last thing I want...and/or need...

    I think what the problem is, is the SHT is either not understanding the commands, or the program isn't complete (I got it off the forum). I wonder is there anyone out there who has experience at this sensor?
    That post I saw looked pretty complete to me.

    I have tried reading the raw data, and got, well, nothing. Or maybe less.
    Maybe you let all the smoke out of it?

    I'd put it down, go out and mow the lawn or something, come back to it later.
    But that's just me...and that's what I do when crap ain't working.

Similar Threads

  1. real time clock
    By maria in forum Code Examples
    Replies: 44
    Last Post: - 1st March 2022, 12:13
  2. real time clock - PCF8583
    By maria in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th April 2010, 15:41
  3. Real time clock ICs
    By Eng4444 in forum mel PIC BASIC Pro
    Replies: 66
    Last Post: - 20th October 2008, 16:05
  4. Real time clock... what a headache!
    By Eng4444 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 8th June 2006, 21:56
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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