I have made many claims, but not about the Sensirion! I think you are requesting the code that CocaColaKid is talking about.
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 14: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
Hi
I think ive got most of the fuses converted so MCS can read them. The onlyone thats not working for me is the fuse for the Oscillator switchover. I have the following
@ DEVICE IESO_OFF
The code compiles fine with this but when i check the fuse settings in the programmer software I see that it is not setting this one. Do I have the define correct or is this just a glitch? It is showingas enabled with above code.
Cheers
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
The temp slider and the DS18B20 are components that I also use with this particular project. This is just the reading part for the SHT71, I just never took the other unused declarations out of code that's all.
Bookmarks