{"action":"opened","issue":{"url":"https://api.github.com/repos/synthetos/g2/issues/443","repository_url":"https://api.github.com/repos/synthetos/g2","labels_url":"https://api.github.com/repos/synthetos/g2/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/synthetos/g2/issues/443/comments","events_url":"https://api.github.com/repos/synthetos/g2/issues/443/events","html_url":"https://github.com/synthetos/g2/issues/443","id":547253256,"node_id":"MDU6SXNzdWU1NDcyNTMyNTY=","number":443,"title":"Few wrong motor direction happening at random ","user":{"login":"maroussel","id":13557360,"node_id":"MDQ6VXNlcjEzNTU3MzYw","avatar_url":"https://avatars0.githubusercontent.com/u/13557360?v=4","gravatar_id":"","url":"https://api.github.com/users/maroussel","html_url":"https://github.com/maroussel","followers_url":"https://api.github.com/users/maroussel/followers","following_url":"https://api.github.com/users/maroussel/following{/other_user}","gists_url":"https://api.github.com/users/maroussel/gists{/gist_id}","starred_url":"https://api.github.com/users/maroussel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maroussel/subscriptions","organizations_url":"https://api.github.com/users/maroussel/orgs","repos_url":"https://api.github.com/users/maroussel/repos","events_url":"https://api.github.com/users/maroussel/events{/privacy}","received_events_url":"https://api.github.com/users/maroussel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2020-01-09T05:08:35Z","updated_at":"2020-01-09T05:08:35Z","closed_at":null,"author_association":"NONE","body":"Context:\r\nI built an OpenBuild Workbee type Machine\r\nI use an Arduino Due + g2Core to directly (without any shield)\r\nit drive four(4) external stepper motor Drivers (DQ542MA)\r\nI'm using the latest g2Core from Edge branch freshly rebuilt from yesterday\r\n\r\nWorkflow\r\n-I'm using Fusion 360 to design and generate the G-code\r\n-Using CNCJS(latest stable) on a raspberry Pi hooked to the Arduino Due that run g2Core\r\n\r\nMade my own config for the workbee (I will share it as soon as the machine is stable)\r\n\r\nEverything is working really nicely except for one major issue that is driving me crazy.\r\nWhile moving the motors, they would sometime go in the wrong direction! (g2Core think they go in the good direction but they don't physically)\r\n\r\nThis happen completely at random from what I can see.\r\n\r\nI can reproduce it by jogging the machine manually if I have a lot of patience, or better, when I engrave something, it happen sooner or later(within a minute or two), when the head moving during engraving and then I can \"debug\"\r\nLet say I see the machine is not going in the proper direction, I stop it there and I send \"G0 X1 Y1\"(go in a given direction), what the machine actually do is the equivalent of \"G0 X-1 Y-1\"(opposite direction) as long as I do \"G0 X1 Y1\", \"G0 X1\" or \"G0 Y1\" it will go in the wrong direction \"physically\", g2Core think everything is going well, even if I wait for a very long time... but as soon as I send this \"G0 X-1 Y-1\"(Go in the opposite direction) then try again \"G0 X1 Y1\"(to in the original direction) , it will now go in the proper direction again and the bug is not there anymore (but the tool is not were the machine think he is and the engraving is completely wrong)\r\n\r\nToday I was able to reproduce on 2 axis at the same time (x and y) and I had a tester for the directions pins. It was reading \"High\" when it was supposed to read \"low\". It didn't changed until I asked him to actually go in te direction it was really supposed to go on \"High\" then \"low\" again was fine.\r\n\r\nLook like it's sometime not doing the change of direction on the output directly on the board, but mark it as changed in the variables.\r\n\r\nI cannot say if the opposite happen yet where it read \"low\" when it should read \"high\".\r\n\r\nI don't understand that I seem to be the only one with this issue either.\r\n\r\nMy next step will probably to dive into the code, but it will most likely be a long and slow process so any help or idea from more experienced people is welcome :)"}}
{"actor":{"display_login":"maroussel"}}