{"action":"created","issue":{"url":"https://api.github.com/repos/google/aiyprojects-raspbian/issues/331","repository_url":"https://api.github.com/repos/google/aiyprojects-raspbian","labels_url":"https://api.github.com/repos/google/aiyprojects-raspbian/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/google/aiyprojects-raspbian/issues/331/comments","events_url":"https://api.github.com/repos/google/aiyprojects-raspbian/issues/331/events","html_url":"https://github.com/google/aiyprojects-raspbian/issues/331","id":315309983,"node_id":"MDU6SXNzdWUzMTUzMDk5ODM=","number":331,"title":"Documentation for Voice Bonnet pinouts","user":{"login":"htruong","id":146489,"node_id":"MDQ6VXNlcjE0NjQ4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/146489?v=4","gravatar_id":"","url":"https://api.github.com/users/htruong","html_url":"https://github.com/htruong","followers_url":"https://api.github.com/users/htruong/followers","following_url":"https://api.github.com/users/htruong/following{/other_user}","gists_url":"https://api.github.com/users/htruong/gists{/gist_id}","starred_url":"https://api.github.com/users/htruong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htruong/subscriptions","organizations_url":"https://api.github.com/users/htruong/orgs","repos_url":"https://api.github.com/users/htruong/repos","events_url":"https://api.github.com/users/htruong/events{/privacy}","received_events_url":"https://api.github.com/users/htruong/received_events","type":"User","site_admin":false},"labels":[{"id":958155342,"node_id":"MDU6TGFiZWw5NTgxNTUzNDI=","url":"https://api.github.com/repos/google/aiyprojects-raspbian/labels/Voice","name":"Voice","color":"0e8a16","default":false},{"id":588227896,"node_id":"MDU6TGFiZWw1ODgyMjc4OTY=","url":"https://api.github.com/repos/google/aiyprojects-raspbian/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-04-18T02:45:26Z","updated_at":"2018-07-19T23:18:35Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have the Voice AIY kit v2 on hand, but I have found no documentation for the pinouts for the Voice Bonnet anywhere. I have found the v1 hardware image, though, but that gives no hints for where the v2 docs should be.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/google/aiyprojects-raspbian/issues/comments/406442598","html_url":"https://github.com/google/aiyprojects-raspbian/issues/331#issuecomment-406442598","issue_url":"https://api.github.com/repos/google/aiyprojects-raspbian/issues/331","id":406442598,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjQ0MjU5OA==","user":{"login":"SK-Github","id":15329161,"node_id":"MDQ6VXNlcjE1MzI5MTYx","avatar_url":"https://avatars2.githubusercontent.com/u/15329161?v=4","gravatar_id":"","url":"https://api.github.com/users/SK-Github","html_url":"https://github.com/SK-Github","followers_url":"https://api.github.com/users/SK-Github/followers","following_url":"https://api.github.com/users/SK-Github/following{/other_user}","gists_url":"https://api.github.com/users/SK-Github/gists{/gist_id}","starred_url":"https://api.github.com/users/SK-Github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SK-Github/subscriptions","organizations_url":"https://api.github.com/users/SK-Github/orgs","repos_url":"https://api.github.com/users/SK-Github/repos","events_url":"https://api.github.com/users/SK-Github/events{/privacy}","received_events_url":"https://api.github.com/users/SK-Github/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T23:18:34Z","updated_at":"2018-07-19T23:18:34Z","author_association":"NONE","body":"@dmitriykovalev \r\nI am hoping to control a micro servo using the GPIO header pins on AIY voice kit V2 and the code here (https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/examples/vision/gpiozero/servo_example.py) based on your comment on this thread on May 14. I get the following errors when I run it in Python3 from dev terminal on the Pi desktop. Can you please let me know what needs to be fixed to interface with a servo? Thank you for your help!\r\n\r\npi@raspberrypi:~/AIY-voice-kit-python/src/examples/voice/gpiozero_sk $ python3 AIY15_ctrl_1_servo.py\r\nTraceback (most recent call last):\r\n  File \"/opt/aiy/projects-python/src/aiy/pins.py\", line 120, in export\r\n    with open(self.root_path('export'), 'w') as export:\r\nPermissionError: [Errno 13] Permission denied: '/sys/class/pwm/pwmchip0/export'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"AIY15_ctrl_1_servo.py\", line 13, in <module>\r\n    simple_servo = Servo(PIN_A)\r\n  File \"/usr/lib/python3/dist-packages/gpiozero/devices.py\", line 95, in __call__\r\n    self = super(GPIOMeta, cls).__call__(*args, **kwargs)\r\n  File \"/usr/lib/python3/dist-packages/gpiozero/output_devices.py\", line 1012, in __init__\r\n    pin, frequency=int(1 / frame_width), pin_factory=pin_factory\r\n  File \"/usr/lib/python3/dist-packages/gpiozero/devices.py\", line 95, in __call__\r\n    self = super(GPIOMeta, cls).__call__(*args, **kwargs)\r\n  File \"/usr/lib/python3/dist-packages/gpiozero/output_devices.py\", line 331, in __init__\r\n    self.pin.frequency = frequency\r\n  File \"/usr/lib/python3/dist-packages/gpiozero/pins/__init__.py\", line 300, in <lambda>\r\n    lambda self, value: self._set_frequency(value),\r\n  File \"/opt/aiy/projects-python/src/aiy/pins.py\", line 573, in _set_frequency\r\n    self._enable_pwm()\r\n  File \"/opt/aiy/projects-python/src/aiy/pins.py\", line 502, in _enable_pwm\r\n    self.pwm_pin.open()\r\n  File \"/opt/aiy/projects-python/src/aiy/pins.py\", line 343, in open\r\n    super(SysFsPwmPin, self).open()\r\n  File \"/opt/aiy/projects-python/src/aiy/pins.py\", line 130, in open\r\n    self.export()\r\n  File \"/opt/aiy/projects-python/src/aiy/pins.py\", line 123, in export\r\n    raise GPIOPinInUse('Pin already in use')\r\ngpiozero.exc.GPIOPinInUse: Pin already in use"}}
{"actor":{"display_login":"SK-Github"}}