{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/235","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/235/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/235/events","html_url":"https://github.com/rwaldron/johnny-five/issues/235","id":20213362,"number":235,"title":"Sonar 4pin moudule","user":{"login":"cetchells","id":745721,"avatar_url":"https://avatars.githubusercontent.com/u/745721?v=3","gravatar_id":"","url":"https://api.github.com/users/cetchells","html_url":"https://github.com/cetchells","followers_url":"https://api.github.com/users/cetchells/followers","following_url":"https://api.github.com/users/cetchells/following{/other_user}","gists_url":"https://api.github.com/users/cetchells/gists{/gist_id}","starred_url":"https://api.github.com/users/cetchells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cetchells/subscriptions","organizations_url":"https://api.github.com/users/cetchells/orgs","repos_url":"https://api.github.com/users/cetchells/repos","events_url":"https://api.github.com/users/cetchells/events{/privacy}","received_events_url":"https://api.github.com/users/cetchells/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rwaldron/johnny-five/labels/DOCS","name":"DOCS","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2013-09-28T15:11:35Z","updated_at":"2015-02-18T17:19:21Z","closed_at":"2013-09-30T07:22:16Z","body":"I have a 4pin sonic module - hc-sr04. The pins are marked vcc,trig,echo,grd.\r\nI get a signal on echo, but its constant 0.5 inches. I guess I need the trig wired up. Any ideas, or can we add support for this module?"},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/74905604","html_url":"https://github.com/rwaldron/johnny-five/issues/235#issuecomment-74905604","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/235","id":74905604,"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":"2015-02-18T17:19:21Z","updated_at":"2015-02-18T17:19:21Z","body":"Run this and paste the output: \r\n\r\n```js\r\nvar five = require(\"johnny-five\");\r\nvar board = new five.Board({port:\"COM4\"});\r\n\r\nboard.on(\"ready\", function() {\r\n\r\n  var ping = new five.Ping(7);\r\n\r\n  console.log(ping.inches);\r\n\r\n  ping.on(\"change\", function(err, value) {\r\n    console.log(\"Object is \" + this.in + \"inches away\");\r\n  });\r\n\r\n});\r\n```"}}