{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1475","repository_url":"https://api.github.com/repos/rwaldron/johnny-five","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1475/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1475/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1475/events","html_url":"https://github.com/rwaldron/johnny-five/issues/1475","id":330708439,"node_id":"MDU6SXNzdWUzMzA3MDg0Mzk=","number":1475,"title":"SI7021 does not capture a proper temperature or update","user":{"login":"jc78","id":27864662,"node_id":"MDQ6VXNlcjI3ODY0NjYy","avatar_url":"https://avatars3.githubusercontent.com/u/27864662?v=4","gravatar_id":"","url":"https://api.github.com/users/jc78","html_url":"https://github.com/jc78","followers_url":"https://api.github.com/users/jc78/followers","following_url":"https://api.github.com/users/jc78/following{/other_user}","gists_url":"https://api.github.com/users/jc78/gists{/gist_id}","starred_url":"https://api.github.com/users/jc78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jc78/subscriptions","organizations_url":"https://api.github.com/users/jc78/orgs","repos_url":"https://api.github.com/users/jc78/repos","events_url":"https://api.github.com/users/jc78/events{/privacy}","received_events_url":"https://api.github.com/users/jc78/received_events","type":"User","site_admin":false},"labels":[{"id":348366109,"node_id":"MDU6TGFiZWwzNDgzNjYxMDk=","url":"https://api.github.com/repos/rwaldron/johnny-five/labels/Class:IMU","name":"Class:IMU","color":"fbca04","default":false},{"id":315598443,"node_id":"MDU6TGFiZWwzMTU1OTg0NDM=","url":"https://api.github.com/repos/rwaldron/johnny-five/labels/Class:Proximity","name":"Class:Proximity","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T15:40:55Z","updated_at":"2018-06-08T16:05:46Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use the [Sparkfun Si7021](https://www.sparkfun.com/products/13763) temp\\humidity sensor, but it never seems to register a proper temp. It's always at -52.42. Additionally, when using this in combination with a [Sharp IR sensor](https://www.sparkfun.com/products/12728), the IR sensor no longer functions. Both are plugged into the analog inputs of my Arduino Uno. If I comment out the creation of the Hygrometer in my JS code, the IR sensor works again.\r\n\r\n```\r\n// Create the Temp sensor\r\nvar tempSensor = new five.Multi({\r\n  controller: \"SI7021\"\r\n});\r\ntempSensor.on(\"data\", function() {\r\n    console.log(\"Current Temp: \", tempSensor.thermometer.fahrenheit};\r\n));\r\n\r\n// Create an IR sensor to measure distance values\r\nvar proximity = new five.Proximity({\r\n  controller: \"GP2Y0A41SK0F\",\r\n  pin: \"A0\",\r\n  freq: 20\r\n});\r\nproximity.on(\"data\", function() {\r\n    console.log(\"Current Distance: \", proximity.cm);\r\n});\r\n```\r\n\r\n- Are two analog devices permitted at the same time? \r\n- Are these two incompatible with each other?\r\n\r\nIt appears as if the Si7021 is never capturing a changed temp from when it is first initialized. I may end up switching to a DHT22 with a backpack if this doesn't work out. But that seems like more work to manage and I'd like to keep things as simple as possible.\r\n\r\nThanks for any help."},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/395808742","html_url":"https://github.com/rwaldron/johnny-five/issues/1475#issuecomment-395808742","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1475","id":395808742,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTgwODc0Mg==","user":{"login":"dtex","id":854911,"node_id":"MDQ6VXNlcjg1NDkxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/854911?v=4","gravatar_id":"","url":"https://api.github.com/users/dtex","html_url":"https://github.com/dtex","followers_url":"https://api.github.com/users/dtex/followers","following_url":"https://api.github.com/users/dtex/following{/other_user}","gists_url":"https://api.github.com/users/dtex/gists{/gist_id}","starred_url":"https://api.github.com/users/dtex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtex/subscriptions","organizations_url":"https://api.github.com/users/dtex/orgs","repos_url":"https://api.github.com/users/dtex/repos","events_url":"https://api.github.com/users/dtex/events{/privacy}","received_events_url":"https://api.github.com/users/dtex/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T16:05:46Z","updated_at":"2018-06-08T16:05:46Z","author_association":"COLLABORATOR","body":"@jc78 This should work and it's fine to use these two devices together (one is simply an analog input and the other is i2c). Can you send a picture (or pictures) of your wiring?\r\n"}}
{"actor":{"display_login":"dtex"}}