{"action":"created","issue":{"url":"https://api.github.com/repos/mjmeans/Adafruit.IoT/issues/2","repository_url":"https://api.github.com/repos/mjmeans/Adafruit.IoT","labels_url":"https://api.github.com/repos/mjmeans/Adafruit.IoT/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mjmeans/Adafruit.IoT/issues/2/comments","events_url":"https://api.github.com/repos/mjmeans/Adafruit.IoT/issues/2/events","html_url":"https://github.com/mjmeans/Adafruit.IoT/issues/2","id":178551463,"number":2,"title":"DC Motor not working","user":{"login":"Foggie200","id":22365855,"avatar_url":"https://avatars.githubusercontent.com/u/22365855?v=3","gravatar_id":"","url":"https://api.github.com/users/Foggie200","html_url":"https://github.com/Foggie200","followers_url":"https://api.github.com/users/Foggie200/followers","following_url":"https://api.github.com/users/Foggie200/following{/other_user}","gists_url":"https://api.github.com/users/Foggie200/gists{/gist_id}","starred_url":"https://api.github.com/users/Foggie200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foggie200/subscriptions","organizations_url":"https://api.github.com/users/Foggie200/orgs","repos_url":"https://api.github.com/users/Foggie200/repos","events_url":"https://api.github.com/users/Foggie200/events{/privacy}","received_events_url":"https://api.github.com/users/Foggie200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2016-09-22T08:34:58Z","updated_at":"2016-11-03T08:38:33Z","closed_at":null,"body":"Hi,\n\nI tried to connect a DC motor to the shield and tried to run it using:\n\n`.....\n MotorHat2348 mh = null;\n       BackgroundTaskDeferral deferral;\n         PwmDCMotor dc = null;\n\n```\n    public async void Run(IBackgroundTaskInstance taskInstance)\n    {\n\n\n        deferral = taskInstance.GetDeferral();\n\n // Create a driver object for the HAT at address 0x60\n        mh = new MotorHat2348(0x60);\n\n        dc = mh.CreateDCMotor(3);\n\n        dc.SetSpeed(1); //tried 0 and 1\n        dc.Run(Direction.Forward);\n\n    }\n```\n\n......\n`\n\nunfortunately nothing works. perhaps you can help me.\n\nBest regards\nFlorian\n"},"comment":{"url":"https://api.github.com/repos/mjmeans/Adafruit.IoT/issues/comments/258087149","html_url":"https://github.com/mjmeans/Adafruit.IoT/issues/2#issuecomment-258087149","issue_url":"https://api.github.com/repos/mjmeans/Adafruit.IoT/issues/2","id":258087149,"user":{"login":"PhilipNelson350","id":5389922,"avatar_url":"https://avatars.githubusercontent.com/u/5389922?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilipNelson350","html_url":"https://github.com/PhilipNelson350","followers_url":"https://api.github.com/users/PhilipNelson350/followers","following_url":"https://api.github.com/users/PhilipNelson350/following{/other_user}","gists_url":"https://api.github.com/users/PhilipNelson350/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilipNelson350/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilipNelson350/subscriptions","organizations_url":"https://api.github.com/users/PhilipNelson350/orgs","repos_url":"https://api.github.com/users/PhilipNelson350/repos","events_url":"https://api.github.com/users/PhilipNelson350/events{/privacy}","received_events_url":"https://api.github.com/users/PhilipNelson350/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T08:38:33Z","updated_at":"2016-11-03T08:38:33Z","body":"Hi,\n\nAfter a little experimentation I have found that for Model Railway DC \nmotor control, setting the frequency to 100hz is a good starting point.\n\ne.g. mh = new MotorHat2348(0x60,100);\n\nThanks again,\n\nPhil\n\n\nOn 02/11/2016 08:13, mjmeans wrote:\n>\n> Ok. I've made a few changes and tested it with my own DC motor (1.5v \n> to 12v). I've added a new button to the sample app to verify that it \n> works. And I've updated the NuGet package. Development and Master \n> branches are now synchronized. And the online documentation is \n> rebuilt. Please give this a try and let me know if you have any other \n> problems.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub \n> <https://github.com/mjmeans/Adafruit.IoT/issues/2#issuecomment-257798715>, \n> or mute the thread \n> <https://github.com/notifications/unsubscribe-auth/AFI-YmMsadFEnwcJ60L-u0V9vAaSz4PTks5q6EYwgaJpZM4KDpWL>.\n>\n\n"}}
{"actor":{"display_login":"PhilipNelson350"}}