GCode-Interpreter for Motor Shield v2

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
hirnwunde
 
Posts: 12
Joined: Thu Nov 15, 2012 2:39 pm

GCode-Interpreter for Motor Shield v2

Post by hirnwunde »

Hi folks,

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)
Maybe there are some failures in my code.
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!
Last edited by hirnwunde on Wed May 27, 2015 4:25 am, edited 2 times in total.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: GCode-Interpreter for Motor Shield v2

Post by adafruit_support_bill »

Nice work! Thanks for posting.

User avatar
affarsk
 
Posts: 1
Joined: Tue May 26, 2015 9:19 am

Re: GCode-Interpreter for Motor Shield v2

Post by affarsk »

Your github page cannot be found. Have you posted this elsewhere?

regards to earlier post, I found you on github through google, link in your earlier post is not working. Thanks though. Really saves me a lot of work :)

User avatar
hirnwunde
 
Posts: 12
Joined: Thu Nov 15, 2012 2:39 pm

Re: GCode-Interpreter for Motor Shield v2

Post by hirnwunde »

Thank you for the notification of the wrong link.

It was simply mispelled. I've it corrected.

User avatar
bramper
 
Posts: 10
Joined: Sat Apr 07, 2012 9:46 am

Re: GCode-Interpreter for Motor Shield v2

Post by bramper »

@hirnwunde: do you have already an update / more functions to this Code-Interpreter ?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”