based on GcodeCNCDemo by Dan Royer at MarginallyClever (to find on Github and/or https://www.marginallyclever.com) i have expanded his Interpreter.
I think it is in a state someone else can work with it.
You can view/fork/whatever you want my code on Github.
What i have done:
- Remove the compatibility with Adafruids Motor Shield Version 1
- Split the functions into files.
- Add a new G-Command (G28 - do homing)
- Add support for limit switches (X-Home, X-End, Y-Home, Y-End)
- steps/[mm | in] translator
- remove support for relative mode (G91) for simplification the stepps/[mm | in] translation
- send actual position to PC-Software (VB.Net [the only language i can code GUIs ;)] - has to be coded)
- Soft limit switch (don't leave your defined working space)
Thats the main reason i post it to public ... to learn.
Maybe someone will point me to function whatever() which i could solve better.
Unfortunately I do not have mechanical construction yet. Have to wait for some part to assamble my plotter.
So my testing was limited to a minimum (of watching turning motor shafts)
I hope someone can do something with it!
Thanks for your attention!