tag:blogger.com,1999:blog-1638053300431497204.post1178888113985628664..comments2017-04-18T15:57:18.759-05:00Comments on Wayne's Raging Reality: Ardunio and the SHT15Waynehttp://www.blogger.com/profile/14538237042639624837noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-1638053300431497204.post-26897427275615628882014-05-29T10:14:15.424-05:002014-05-29T10:14:15.424-05:00I've moved the code to github so everyone can ...I've moved the code to github so everyone can contribute. Been a long time coming I know!Waynehttps://www.blogger.com/profile/14538237042639624837noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-50136094638330227072011-03-07T20:10:59.914-06:002011-03-07T20:10:59.914-06:00how can i modify it so it will work on lcd screen!...how can i modify it so it will work on lcd screen!Unknownhttps://www.blogger.com/profile/12158814605467596253noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-9421119821705110012010-04-24T11:00:47.201-05:002010-04-24T11:00:47.201-05:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/09157692595447517790noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-5438235126193647792010-01-23T13:56:44.309-06:002010-01-23T13:56:44.309-06:00This comment has been removed by the author.Dale Hawkinshttps://www.blogger.com/profile/16337148910925204231noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-14197946068198978262009-11-30T01:05:31.783-06:002009-11-30T01:05:31.783-06:00Cool, I'll try to figure it out and post a com...Cool, I'll try to figure it out and post a comment when some sensors and servos are up running.<br /><br />Thanks, <br />AndersAnders Krogdalhttps://www.blogger.com/profile/14390580126960646400noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-78494498073931008742009-11-29T19:41:30.812-06:002009-11-29T19:41:30.812-06:00Hi Anders,
The SHT15 is the only temp/humidity se...Hi Anders,<br /><br />The SHT15 is the only temp/humidity sensor I have experience with so I dont really know of one that would be less expensive. I do know that the SHT15 is a great little sensor and I have had no problems with it at all. You will have to modify my source code a little bit to accurately detect humidity as my code only uses the temperature readings. This should all be detailed in the SHT15 manual. If you do have any problems with it I could try and help you out.<br /><br />Good luck with your project. I'd be curious to hear how it goes.<br /><br />Take care,<br /><br />WayneWaynehttps://www.blogger.com/profile/14538237042639624837noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-27150146068941442592009-11-29T11:56:50.927-06:002009-11-29T11:56:50.927-06:00Hi Wayne.
Im pretty new to Arduino; actually I jus...Hi Wayne.<br />Im pretty new to Arduino; actually I just got my first Duemilanove yesterday...<br />The reason why I got it, is a project in which I want to connect a humidity censor to a servomotor. Tell the servo to be at to different positions at for instance 20% and 60% humidity. Do you yhink the SHT15 would be the right censor to buy, or do you know if there is another cheaper censor that only measures humidity and not temp.?<br /><br />Thanks, AndersAnders Krogdalhttps://www.blogger.com/profile/14390580126960646400noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-20826438833449375762009-01-10T11:36:00.000-06:002009-01-10T11:36:00.000-06:00There's quite a bug in this code and I'm not sure ...There's quite a bug in this code and I'm not sure why it works in the first place..... It reared its head when I used a longer wire to connect the SHT15 so it could be outside.<BR/><BR/>After every pinMode(dataPin,INPUT) line there needs to be a digitalWrite to turn on the pullup resistors on the input pin. Took me ages to figure that one out....<BR/><BR/>cant think why it works without them..!Unknownhttps://www.blogger.com/profile/17158784608279321425noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-83950610427522421662008-11-23T21:37:00.000-06:002008-11-23T21:37:00.000-06:00After leaving my SHT71 on for more than a few minu...After leaving my SHT71 on for more than a few minutes I find the temperature shoots up 18F/10C. Any idea whats happening here?Brianhttps://www.blogger.com/profile/05884014153070183656noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-28419833823482773762008-09-17T11:58:00.000-05:002008-09-17T11:58:00.000-05:00Hi wayne,had a go at debugging, but couldn't f...Hi wayne,<BR/>had a go at debugging, but couldn't find the issue. I wasn't getting the 8 LSB of temp. Since then have found some other code on the net that works for me, here:<BR/>http://www.glacialwanderer.com/hobbyrobotics<BR/><BR/>Amazingly, found this in his code. This is his reading function:<BR/>int shiftIn(int dataPin, int clockPin, int numBits)<BR/>{<BR/> int ret = 0;<BR/> int i;<BR/><BR/> for (i=0; i<numBits; ++i)<BR/> {<BR/> digitalWrite(clockPin, HIGH);<BR/> delay(10); // I don't know why I need this, but without it I don't get my 8 lsb of temp<BR/> ret = ret*2 + digitalRead(dataPin);<BR/> digitalWrite(clockPin, LOW);<BR/> }<BR/><BR/> return(ret);<BR/>}<BR/><BR/>So if you're still getting problems, try putting delays in there!Unknownhttps://www.blogger.com/profile/17158784608279321425noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-62554097838961187242008-09-12T10:42:00.000-05:002008-09-12T10:42:00.000-05:00Yeah that does seem odd. I'll have to try it on m...Yeah that does seem odd. I'll have to try it on my machine and see if I can reproduce your problem. I'll let you know what I find.Waynehttps://www.blogger.com/profile/14538237042639624837noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-5529862894548727162008-09-10T05:00:00.000-05:002008-09-10T05:00:00.000-05:00Hi wayne,thanks for this code! it's (hopefully) go...Hi wayne,<BR/>thanks for this code! it's (hopefully) going to save me a lot of work!<BR/><BR/>Anyway, I'm having a problem at the moment. I ran the sensor all night to get a night's worth of data to check it's working. Here's the graph I got:<BR/>http://img223.imageshack.us/my.php?image=picture1hx9.png<BR/><BR/>Doesn't look right, does it? It's almost as if a few of the least significant bits have disappeared.<BR/><BR/>Have you seen this before? Any ideas?<BR/><BR/>Thanks,<BR/>JoeUnknownhttps://www.blogger.com/profile/17158784608279321425noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-70870322888747445412008-09-08T13:01:00.000-05:002008-09-08T13:01:00.000-05:00Can you post a data plot over time (perhaps 24 ho...Can you post a data plot over time (perhaps 24 hours) that show a change in weather.<BR/>I am especially interested to see if a rain event can me measured using the SHT15, in terms of a)start time, b) stop time AND especially c) inches of rain.BigZweyhttps://www.blogger.com/profile/12231774665843970463noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-31698493591093453682008-08-12T05:41:00.000-05:002008-08-12T05:41:00.000-05:00Hi Wayne,Great stuff, I had been struggling with t...Hi Wayne,<BR/><BR/>Great stuff, I had been struggling with the code until I found this, beautiful!<BR/><BR/>In my case, the SHT15 needs to be very far from the Arduino, over 50 meters. Have you, or anyone else any experience or suggestions on how to do it? I suppose decoupling would be essential but one end? both ends? Or is the whole thing even possible?<BR/><BR/>Regards,<BR/><BR/>PaulPaulhttps://www.blogger.com/profile/07518333750723232575noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-85163560452495353482008-06-24T02:32:00.000-05:002008-06-24T02:32:00.000-05:00Thanks for the code, had it all up and running in ...Thanks for the code, had it all up and running in a few minutes :)<BR/><BR/>I've made some changes to print the values in human readable form for both Temperature (DegC) and Temperature Compensated Humidity.<BR/><BR/>// SHT15 Sensor Coefficients<BR/>const float C1=-4.0; // for 12 Bit<BR/>const float C2= 0.0405; // for 12 Bit<BR/>const float C3=-0.0000028; // for 12 Bit<BR/>const float D1=-40.0; // for 14 Bit @ 5V<BR/>const float D2=0.01; // for 14 Bit DEGC<BR/>const float T1=0.01; // for 14 Bit @ 5V<BR/>const float T2=0.00008; // for 14 Bit @ 5V<BR/><BR/><BR/>void serialPrintFloat( float f){<BR/> Serial.print((int)f);<BR/> Serial.print(".");<BR/> int temp = (f - (int)f) * 100;<BR/> Serial.println( abs(temp) ); <BR/>} <BR/><BR/>void loop () {<BR/> delay(2000);<BR/> Serial.println("Starting Temperature/Humidity reading...");<BR/> <BR/> int temp_raw = getTempSHT(); // get raw temperature value<BR/> Serial.print("Temperature(DEGC): ");<BR/> float temp_degc = (temp_raw * D2) + D1; // Unit Conversion - See datasheet<BR/> serialPrintFloat(temp_degc);<BR/> <BR/> int rh_raw = getHumidSHT(); // get raw Humidity value<BR/> Serial.print("Humidity(%RH): ");<BR/> float rh_lin = C3 * rh_raw * rh_raw + C2 * rh_raw + C1; // Linear conversion<BR/> float rh_true = (temp_degc * (T1 + T2 * rh_raw) + rh_lin); // Temperature compensated RH<BR/> serialPrintFloat(rh_true);<BR/><BR/>}<BR/><BR/><BR/>Regards,<BR/><BR/>Stephen...Unknownhttps://www.blogger.com/profile/04095765422189571005noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-59880892381691009882008-06-22T21:19:00.000-05:002008-06-22T21:19:00.000-05:00Hello everyone. My webserver is now back up and r...Hello everyone. My webserver is now back up and running after a bit of a meltdown.Waynehttps://www.blogger.com/profile/14538237042639624837noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-52012600203016237792008-06-19T18:23:00.000-05:002008-06-19T18:23:00.000-05:00Nick,Unfortunately my server that hosts these file...Nick,<BR/><BR/>Unfortunately my server that hosts these files is down at the moment. I'll update the links and post another comment when I get a temporary server set up. Sorry for the inconvenience.<BR/><BR/>WayneWaynehttps://www.blogger.com/profile/14538237042639624837noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-74251386892927421352008-06-18T16:33:00.000-05:002008-06-18T16:33:00.000-05:00Hi Wayne - I've tried to download this code but it...Hi Wayne - I've tried to download this code but it keeps spinning and doesn't seem to think the server exists, or it doesn't want to give it to me. Is there another link (or does someone else have it).<BR/><BR/>Thanks!<BR/><BR/>Nick.Unknownhttps://www.blogger.com/profile/05729748396263387452noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-11708239188939373122008-03-15T15:46:00.000-05:002008-03-15T15:46:00.000-05:00Thank you for posting the code. You got me from de...Thank you for posting the code. You got me from developement to a working system in under 10 minutes.<BR/><BR/>Re:getting a constant instead of actual reading: I had the same problem and found that 1) the connections on my sht75 needed to be redone as the resistance was too high across the wire (also had to shorten wire.Unknownhttps://www.blogger.com/profile/13593599653632479107noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-44993660865269776062008-03-04T10:50:00.000-06:002008-03-04T10:50:00.000-06:00Sorry for the slow response. No news on this proj...Sorry for the slow response. No news on this project as of yet. I received a large shipment of LED's and have been playing with them!<BR/><BR/>Because the response time is 2550 it looks like the SHT isn't pulling the data line low before the loop times out. I would concentrate my debugging efforts in the writeByteSHT function for this reason.<BR/><BR/>Perhaps you are having some problems with interference. You could try decoupling the power supply pins (VDD, GND) with a 100 nF capacitor. Also make sure you are not using data pins 0 or 1 on the Arduino. I've had odd results with that myself.<BR/><BR/>Hope that helps!Waynehttps://www.blogger.com/profile/14538237042639624837noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-88993032320766675692008-02-24T18:20:00.000-06:002008-02-24T18:20:00.000-06:00Any new updates on this project?I'm working on a s...Any new updates on this project?<BR/><BR/>I'm working on a similar Arduino project using the SHT15 and thought I'd try your code before reinventing the same.. Unfortunately all I'm getting back on the serial line is this: <BR/><BR/>Starting Temperature/Humidity reading...<BR/>Response time = 2550<BR/>Temprature:254<BR/>Response time = 2550<BR/>Humidity:254<BR/><BR/>I've verified my circuit so now I'm looking in to adding debugging logging to the code. Any thoughts as to where I should start troubleshooting it?<BR/><BR/>Thanks for breaking the trail for me, good to know its been done before!Unknownhttps://www.blogger.com/profile/17529564944167455239noreply@blogger.comtag:blogger.com,1999:blog-1638053300431497204.post-36108965551462847422008-01-18T08:30:00.000-06:002008-01-18T08:30:00.000-06:00Many thanks to you, WayneSince you posted this won...Many thanks to you, Wayne<BR/><BR/>Since you posted this wonderful instruction, I finally have success in my SHT15 and Arduino setup for humidity measurement.<BR/><BR/>Thank you again,<BR/>Bryan.Unknownhttps://www.blogger.com/profile/03352136827834339631noreply@blogger.com