{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/node-chip-io/issues/20","repository_url":"https://api.github.com/repos/sandeepmistry/node-chip-io","labels_url":"https://api.github.com/repos/sandeepmistry/node-chip-io/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/node-chip-io/issues/20/comments","events_url":"https://api.github.com/repos/sandeepmistry/node-chip-io/issues/20/events","html_url":"https://github.com/sandeepmistry/node-chip-io/issues/20","id":179114556,"number":20,"title":"PCA9685 not working","user":{"login":"ericterpstra","id":605018,"avatar_url":"https://avatars.githubusercontent.com/u/605018?v=3","gravatar_id":"","url":"https://api.github.com/users/ericterpstra","html_url":"https://github.com/ericterpstra","followers_url":"https://api.github.com/users/ericterpstra/followers","following_url":"https://api.github.com/users/ericterpstra/following{/other_user}","gists_url":"https://api.github.com/users/ericterpstra/gists{/gist_id}","starred_url":"https://api.github.com/users/ericterpstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericterpstra/subscriptions","organizations_url":"https://api.github.com/users/ericterpstra/orgs","repos_url":"https://api.github.com/users/ericterpstra/repos","events_url":"https://api.github.com/users/ericterpstra/events{/privacy}","received_events_url":"https://api.github.com/users/ericterpstra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-09-25T23:01:22Z","updated_at":"2016-12-05T01:08:54Z","closed_at":"2016-12-02T02:47:11Z","body":"Continued discussion from #8 ...\n\nCan't get PCA9685 board with 2 small servos working.\n\nWiring:\n\nCHIP => PCA9685\nTWI2-SDA => SDA\nTWI2-SCK => SCK\nVCC 3v3 => VCC\nGNC => GND\n\nPCA9685 (no bridged jumpers - 0x40)\n4.8V Battery => post\nFitech FS90R continuous servos on pins 7 & 8\n\nCode\n\n```\nvar five = require('johnny-five');\nvar chipio = require('chip-io');\n\nvar board = new five.Board({\n  io: new chipio()\n});\n\nboard.on('ready', function() {\n  var statusLed = new chipio.StatusLed();\n\n  var left = new five.Servo.Continuous({\n    bus: 2,\n    controller: \"PCA9685\",\n    address: 0x40,\n    pin: 8,\n    specs: { speed: five.Servo.Continuous.speeds[\"@4.8V\"] }\n  });\n\n  var right = new five.Servo.Continuous({\n    bus: 2,\n    controller: \"PCA9685\",\n    address: 0x40,\n    pin: 7,\n    specs: { speed: five.Servo.Continuous.speeds[\"@4.8V\"] }\n  });\n\n  left.sweep();\n  right.sweep();\n  statusLed.blink(500);\n  this.repl.inject({ left:left, right:right});\n});\n```\n\nOutput from `i2cdetect -r 2`\n\n```\n     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\n00:          -- -- -- -- -- -- -- -- -- -- -- -- --\n10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n30: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --\n40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n70: 70 -- -- -- -- -- -- --\n```\n\nConsole output from running above code:\n\n```\n1474844239932 Device(s) C.H.I.P.\n1474844239969 Connected C.H.I.P.\n1474844240047 Repl Initialized\n>> fs.js:786\n    return binding.writeBuffer(fd, buffer, offset, length, position);\n                   ^\n\nError: ENXIO: no such device or address, write\n    at Error (native)\n    at Object.fs.writeSync (fs.js:786:20)\n    at I2C.write (/home/chip/servotest/node_modules/chip-io/lib/i2c.js:21:6)\n    at ChipIO.i2cWrite (/home/chip/servotest/node_modules/chip-io/lib/chip-io.js:210:9)\n    at ChipIO.i2cWriteReg (/home/chip/servotest/node_modules/chip-io/lib/chip-io.js:221:8)\n    at Expander.value (/home/chip/servotest/node_modules/johnny-five/lib/expander.js:632:17)\n    at new Expander (/home/chip/servotest/node_modules/johnny-five/lib/expander.js:1868:10)\n    at Function.Expander.get (/home/chip/servotest/node_modules/johnny-five/lib/expander.js:1907:10)\n    at Servo.value (/home/chip/servotest/node_modules/johnny-five/lib/servo.js:24:35)\n    at new Servo (/home/chip/servotest/node_modules/johnny-five/lib/servo.js:189:8)\n```\n\nLogic analyzer result when running the above code (had a friend collect this for me)\n\n[i2c decode.csv.txt](https://github.com/sandeepmistry/node-chip-io/files/491952/i2c.decode.csv.txt)\n[raw.csv.txt](https://github.com/sandeepmistry/node-chip-io/files/491953/raw.csv.txt)\n"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/node-chip-io/issues/comments/264747145","html_url":"https://github.com/sandeepmistry/node-chip-io/issues/20#issuecomment-264747145","issue_url":"https://api.github.com/repos/sandeepmistry/node-chip-io/issues/20","id":264747145,"user":{"login":"sandeepmistry","id":1163840,"avatar_url":"https://avatars.githubusercontent.com/u/1163840?v=3","gravatar_id":"","url":"https://api.github.com/users/sandeepmistry","html_url":"https://github.com/sandeepmistry","followers_url":"https://api.github.com/users/sandeepmistry/followers","following_url":"https://api.github.com/users/sandeepmistry/following{/other_user}","gists_url":"https://api.github.com/users/sandeepmistry/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeepmistry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeepmistry/subscriptions","organizations_url":"https://api.github.com/users/sandeepmistry/orgs","repos_url":"https://api.github.com/users/sandeepmistry/repos","events_url":"https://api.github.com/users/sandeepmistry/events{/privacy}","received_events_url":"https://api.github.com/users/sandeepmistry/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T01:08:54Z","updated_at":"2016-12-05T01:08:54Z","body":"@bbx10 ok, sorry for the confusion.\r\n\r\nI'll publish a new version later today."}}
{"actor":{"display_login":"sandeepmistry"}}