I'm interested. I have enough to do withought debugging even more code. Anything you could send would be greatly appreciated. If you want to send off-forum, I'll send you a private post with info.
I'm interested. I have enough to do withought debugging even more code. Anything you could send would be greatly appreciated. If you want to send off-forum, I'll send you a private post with info.
Charles Linquist
Charles, you have perked my interest with you claims. I am definitely interested in hearing about your approach.
I have made many claims, but not about the Sensirion! I think you are requesting the code that CocaColaKid is talking about.
Charles Linquist
The code was too long to post so I just attached it in a TXT file instead. I also included the data information that corresponds to the data output from the sensor. I used this information to verify my code math was correct. Hope this helps you guys out. If you have any questions please feel free to ask.
Last edited by CocaColaKid; - 14th January 2008 at 15:42.
Thank you CocaColaKid. Your code works fine. But it takes 3 seconds to refresh data. Is there a way to reduce this time to a second? (with pic16f628a)
3 seconds sounds like an awful long time. I seem to read my sensor and once a second or so as I recall. There are only minimal pauses in the code and those add about 48 ms total. If it's taking longer than that I have no idea why.
Thanks for posting this code, Im just playing around with it now trying to get it to work. Can you tell me what chip this code will run on as is? Ive tried compiling it with MicroCode but it is giving me errors, most likely because i may need to change the way the fuse config is written.
Tony
Thanks Skimask for that, workin fine now.
Cheser cheers for you reply also. I was looking at the SHT11 data sheet the other day and if I remember it mentioned limiting the amount of queries sent to it over a second to reduce the self heating effect of the associated current.
Also in the code it says that PORTB.6 is the DS18B20 data line. This is a different type of temp sensor altogether and im a bit baffled as to why its there and I have no idea what the temp slider on PORTB.7 is used for. The rest i think i can figure out. Im going to set it all up in the next week and see how it goes.
Oh and a tip for anyone who is interested, the SHT11 Sensirion sensor is currently on sale on ebay.co.uk for £4 a pop and £.90 Postage. Compared to almost £20 with farnell.
Best Regards
Tony
Bookmarks