{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1196","repository_url":"https://api.github.com/repos/rwaldron/johnny-five","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1196/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1196/events","html_url":"https://github.com/rwaldron/johnny-five/issues/1196","id":169590927,"number":1196,"title":"No data when reading light from the TSL2561 (RPI 2g, Arduino Uno)","user":{"login":"larskaare","id":10708951,"avatar_url":"https://avatars.githubusercontent.com/u/10708951?v=3","gravatar_id":"","url":"https://api.github.com/users/larskaare","html_url":"https://github.com/larskaare","followers_url":"https://api.github.com/users/larskaare/followers","following_url":"https://api.github.com/users/larskaare/following{/other_user}","gists_url":"https://api.github.com/users/larskaare/gists{/gist_id}","starred_url":"https://api.github.com/users/larskaare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larskaare/subscriptions","organizations_url":"https://api.github.com/users/larskaare/orgs","repos_url":"https://api.github.com/users/larskaare/repos","events_url":"https://api.github.com/users/larskaare/events{/privacy}","received_events_url":"https://api.github.com/users/larskaare/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rwaldron/johnny-five/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/rwaldron/johnny-five/labels/Needs%20Info","name":"Needs Info","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-05T11:53:23Z","updated_at":"2016-08-31T13:32:29Z","closed_at":null,"body":"Greetings,\r\n\r\nI am experimenting with an Adafruit TSL2561 sensor but are not able to get any light values.\r\n\r\nI have the current setup; RPI with J5, and Arduino Uno connected using USB, running firmata on the Arduino, having the TSL2561 sensor wired with default settings all the way. The sensor i using i2c - default addresses. My experiment is based on the default example for the tsl2561 sensor.\r\n\r\nTesting that I have done:\r\n* I have tested the Arduino & the wiring accessing the sensor from the Arduino ide. This works fines. I am getting good readings.\r\n* I have tested the RPI->J5->Arduino->Firmata link by hooking some simle leds. This works fine, J5 talks to the Arduino and controls the leds.\r\n* I have followed the J5 code from the light.js-> into firmata.js and can see that the tsl2561 code for initializing is running and that i2c calls are made from firmata for setting up the sensor. This looks ok; the sensor respons on the default address as expected, timing and gain messages are sendt into the i2c bus and the code for read executed.  This where things are stopping now.\r\n\r\nIn the light.js code i have tried setting the frequency of the sensor and using the on(\"data\") event. The data that is returned is always [0,0,0,0]. The on(\"change\") event never triggers.\r\n\r\nPutting it briefly - I am not getting values back from the sensor - as far as I can see that is :)\r\n\r\nI have done some debugging, but it getting quite complex with callbacks on callbacks, events and emitters, i2C over firmata - so any guidance would be appreciated."},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/243764742","html_url":"https://github.com/rwaldron/johnny-five/issues/1196#issuecomment-243764742","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/1196","id":243764742,"user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T13:32:29Z","updated_at":"2016-08-31T13:32:29Z","body":"@larskaare perfect, this is very useful—I'm going to spend some time on this right now and will report back when I've learned something."}}
{"actor":{"display_login":"rwaldron"}}