{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/3196","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/3196/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/3196/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/3196/events","html_url":"https://github.com/arduino/Arduino/issues/3196","id":78613315,"number":3196,"title":"Suggestion: make MIN_PULSE_WIDTH and MAX_PULSE_WIDTH editable by user","user":{"login":"bpinhosilva","id":1862913,"avatar_url":"https://avatars.githubusercontent.com/u/1862913?v=3","gravatar_id":"","url":"https://api.github.com/users/bpinhosilva","html_url":"https://github.com/bpinhosilva","followers_url":"https://api.github.com/users/bpinhosilva/followers","following_url":"https://api.github.com/users/bpinhosilva/following{/other_user}","gists_url":"https://api.github.com/users/bpinhosilva/gists{/gist_id}","starred_url":"https://api.github.com/users/bpinhosilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpinhosilva/subscriptions","organizations_url":"https://api.github.com/users/bpinhosilva/orgs","repos_url":"https://api.github.com/users/bpinhosilva/repos","events_url":"https://api.github.com/users/bpinhosilva/events{/privacy}","received_events_url":"https://api.github.com/users/bpinhosilva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-20T17:17:11Z","updated_at":"2015-05-26T16:56:27Z","closed_at":"2015-05-26T16:56:27Z","body":"Recently, I discovered that my servo motor works a little bit different in terms of the pulse I should send to it in order to move from 0 to 180 degrees. I did a test by changing the pulse width and noticed that it works from 600 to 2100 (min and max respectively). \r\n\r\nI was not able to use it with Arduino's Servo library, but when I went through the source code I saw these lines:\r\n\r\n#define MIN_PULSE_WIDTH       544     // the shortest pulse sent to a servo  \r\n#define MAX_PULSE_WIDTH      2400     // the longest pulse sent to a servo \r\n\r\nThen I changed it to my values and now my servo works good.\r\n\r\nI would like to make a suggestion to include two member functions: setMinPulseWidth() and setMaxPulseWidth() so the user could address the servos properly.\r\n\r\nThis way, someone could use writeMicroseconds() to detect the correct interval for max and min angles and set them by the functions listed above."},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/105601534","html_url":"https://github.com/arduino/Arduino/issues/3196#issuecomment-105601534","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/3196","id":105601534,"user":{"login":"bpinhosilva","id":1862913,"avatar_url":"https://avatars.githubusercontent.com/u/1862913?v=3","gravatar_id":"","url":"https://api.github.com/users/bpinhosilva","html_url":"https://github.com/bpinhosilva","followers_url":"https://api.github.com/users/bpinhosilva/followers","following_url":"https://api.github.com/users/bpinhosilva/following{/other_user}","gists_url":"https://api.github.com/users/bpinhosilva/gists{/gist_id}","starred_url":"https://api.github.com/users/bpinhosilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpinhosilva/subscriptions","organizations_url":"https://api.github.com/users/bpinhosilva/orgs","repos_url":"https://api.github.com/users/bpinhosilva/repos","events_url":"https://api.github.com/users/bpinhosilva/events{/privacy}","received_events_url":"https://api.github.com/users/bpinhosilva/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T16:56:27Z","updated_at":"2015-05-26T16:56:27Z","body":"Yes, that's right! I checked the new version and it is working properly. Thanks"}}