{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/309","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/309/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/309/events","html_url":"https://github.com/rwaldron/johnny-five/issues/309","id":28593718,"number":309,"title":"DC motor and Servo","user":{"login":"leyenda","id":394050,"avatar_url":"https://avatars.githubusercontent.com/u/394050?v=3","gravatar_id":"","url":"https://api.github.com/users/leyenda","html_url":"https://github.com/leyenda","followers_url":"https://api.github.com/users/leyenda/followers","following_url":"https://api.github.com/users/leyenda/following{/other_user}","gists_url":"https://api.github.com/users/leyenda/gists{/gist_id}","starred_url":"https://api.github.com/users/leyenda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leyenda/subscriptions","organizations_url":"https://api.github.com/users/leyenda/orgs","repos_url":"https://api.github.com/users/leyenda/repos","events_url":"https://api.github.com/users/leyenda/events{/privacy}","received_events_url":"https://api.github.com/users/leyenda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2014-03-03T01:08:47Z","updated_at":"2015-03-18T17:05:58Z","closed_at":"2014-03-08T17:38:31Z","body":"Hello everyone, Im using an L298n to control one dc-motor and Im setting the arduino UNO pin 9 as PWM just how the documentation indicates. \r\n```\r\nthis.pinMode(9, five.Pin.PWM);\r\n```\r\nEverything works great until I declare a servo \r\n```\r\nservo = new five.Servo(11);\r\n```\r\nAfter that the pin9 doesnt seems to be working as PWM and only enable the motor at 255 value.\r\n\r\nAny help would be apreciate.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/83059008","html_url":"https://github.com/rwaldron/johnny-five/issues/309#issuecomment-83059008","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/309","id":83059008,"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-03-18T17:05:58Z","updated_at":"2015-03-18T17:05:58Z","body":"@markwest1972 This project has become my albatross...\r\n\r\n- When using wall power, the board and code work perfectly. Once I switched to LiPo power, strange things started happening.\r\n- With a 4C, 2.25A LiPo, regulated by a 12V 3A (max) BEC: \r\n- The board failed to initialize the GPIOs necessary for the compiled bindings lib to detect which kind of breakout it was attached to: Arduino or Mini? It was detecting Mini, so therefore had all the pin capabilities wrong. \r\n- While refactoring the power source to use a BEC that regulated to 2A (max), I accidentally plugged in the power source backwards... So that Edison was toast. \r\n- Once I got my second Edison mounted to the board, I had to reflash, update and all that.\r\n- I installed all the camera drivers, just as I had before, but this time, they simply would not detect the camera. This lasted for two days, at which point I gave up and started from scratch. \r\n- I learned that the drivers come installed on the latest edison image, so I re-flashed following the directions given by Intel. \r\n- Oddly, this re-flash did not delete all of my own files in the home dir on the board (it should've). \r\n- BUT! The camera started detecting. \r\n- So then I spent time tooling around with the frame rate and kb/s of the video feed. For some reason, the code that worked on the previous Edison would just crash the new one. \r\n- Every change I make has a 50/50 chance of crashing the board, which means I have to reboot and all that shit and it's time consuming :(\r\n\r\nAnd that's where I'm at so far. "}}