{"action":"created","issue":{"url":"https://api.github.com/repos/edorfaus/TEMPered/issues/20","labels_url":"https://api.github.com/repos/edorfaus/TEMPered/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/edorfaus/TEMPered/issues/20/comments","events_url":"https://api.github.com/repos/edorfaus/TEMPered/issues/20/events","html_url":"https://github.com/edorfaus/TEMPered/issues/20","id":14940849,"number":20,"title":"TEMPerHUM measurement calibration","user":{"login":"ourmoonfalls","id":4570718,"avatar_url":"https://avatars.githubusercontent.com/u/4570718?v=3","gravatar_id":"","url":"https://api.github.com/users/ourmoonfalls","html_url":"https://github.com/ourmoonfalls","followers_url":"https://api.github.com/users/ourmoonfalls/followers","following_url":"https://api.github.com/users/ourmoonfalls/following{/other_user}","gists_url":"https://api.github.com/users/ourmoonfalls/gists{/gist_id}","starred_url":"https://api.github.com/users/ourmoonfalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ourmoonfalls/subscriptions","organizations_url":"https://api.github.com/users/ourmoonfalls/orgs","repos_url":"https://api.github.com/users/ourmoonfalls/repos","events_url":"https://api.github.com/users/ourmoonfalls/events{/privacy}","received_events_url":"https://api.github.com/users/ourmoonfalls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2013-05-30T13:42:44Z","updated_at":"2015-04-30T15:25:07Z","closed_at":null,"body":"First at all: the driver is running fine on a Raspberry Pi with raspian and two TEMPerHUM attached (0C45:7402 Microdia). However, the measurements appear a bit strange. E.g. in normal conditions (around 25° room temperature) the output is:\r\n./tempered\r\n0001:0004:01 0: temperature -15.85 °C, relative humidity 34.4%, dew point -26.8 °C\r\n0001:0005:01 0: temperature -15.99 °C, relative humidity 34.8%, dew point -26.9 °C\r\n\r\n./tempered -e gives:\r\n0001:0004:01 : TEMPer2HumiV1.x (USB IDs 0C45:7402)\r\n0001:0005:01 : TEMPer2HumiV1.x (USB IDs 0C45:7402)\r\n\r\nSo, here the thermometers are both off by about 40 degrees. I do not know much about current relative humidity, but the values are reasonable. Looking into the code I see that temperature is calculates as\r\n\r\ntemp = -39.7 + 0.01*rawmeasure\r\n\r\nfollowing the sensirion SHTx1 data sheet. Well, now I am not sure if the SHTx1 is actually used on this TEMPerHUM chip. Or maybe there is an onboard calibration so that is suffices to do:\r\n\r\ntemp = 0.01*rawmeasure\r\n\r\nWhen running the pcsensor software for windows, I get correct values of +25°C and humidity about 33%. So there must be some issue with the calculation in the TEMPered driver. To my surprise the windows driver also gave -16°C yesterday directly after starting the software, but the measurements afterwards were again correct.\r\n\r\nMaybe someone can help with this? My first guess was that the TEMPerHUM has a different sensor, needing different calculation, but on second thought I would rather tend to say this might be more a problem of reading the raw data. I read somewhere that a sleep command between sending the measurement signal and reading the data would be required in order to give the sensor enough time for measuring. I am wondering if this is considerd in TEMPered and if not, where to put a hard coded sleep.\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/edorfaus/TEMPered/issues/comments/97837841","html_url":"https://github.com/edorfaus/TEMPered/issues/20#issuecomment-97837841","issue_url":"https://api.github.com/repos/edorfaus/TEMPered/issues/20","id":97837841,"user":{"login":"JuanKman94","id":9020659,"avatar_url":"https://avatars.githubusercontent.com/u/9020659?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanKman94","html_url":"https://github.com/JuanKman94","followers_url":"https://api.github.com/users/JuanKman94/followers","following_url":"https://api.github.com/users/JuanKman94/following{/other_user}","gists_url":"https://api.github.com/users/JuanKman94/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanKman94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanKman94/subscriptions","organizations_url":"https://api.github.com/users/JuanKman94/orgs","repos_url":"https://api.github.com/users/JuanKman94/repos","events_url":"https://api.github.com/users/JuanKman94/events{/privacy}","received_events_url":"https://api.github.com/users/JuanKman94/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T15:25:07Z","updated_at":"2015-04-30T15:25:07Z","body":"@CyBer-T I have a branch that works with TEMPerHum1V1.2. I would suggest that you clone it use grep to substitute EVERY instance of \"TEMPerHum1V1.2\" for \"TEMPerHumM12V1.2\" then compile it and see if works.\r\n\r\nNote that I added si7006.{c,h} to libtempered/type_hid/ - I don't remember how but I got the ID of the sensor I had. Although I don't get why it isn't working for you, since \"TEMPerHumM12V1.2\" is listed in libtempered/temper_type.c"}}