Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring GcodeCNCDemo2Axis.ino to work and scaling #21

Open
rudi48 opened this issue Jan 15, 2017 · 0 comments
Open

Bring GcodeCNCDemo2Axis.ino to work and scaling #21

rudi48 opened this issue Jan 15, 2017 · 0 comments

Comments

@rudi48
Copy link

rudi48 commented Jan 15, 2017

Hello,
I am trying to use your program GcodeCNCDemo2Axis.ino for a stepper motor drive of a DVD sled. Thank you very much for the informative web page and the programs.

In order to make the program work I needed to make a modification:
line 185 must read: ptr=strchr(ptr,' ')+1;
A compiler warning can be avoided, when you write in line 181
while((int)ptr>1 && *ptr && ptr<buffer+sofar) { // cast to int

One question about scaling. The stepper motor in use needs 20 steps for one turn,
and moves the head on the spindel 3 mm (from datasheet).
When in config.h I adopt: #define STEPS_PER_TURN (20)
I get with the command: G01 F10 X30; (30 mm?) a movement of about 5 mm.
When I try to scale with the parameter STEPS_PER_TURN (xx) it behaves strange.
How can I scale Xmm to the actual movement?

Another question is MICROSTEP. The actual movement with module AMS1
(adafruit motor control V1 with 74HCT595) sounds like SINGLE stepping.
I have used from adafruit the program "steppertest.pde" which goes endless forth
and back 100 steps in different step modes.

Regards, Rudolf

p.s. I wrote an issue, because the "Reply" function on the web page
https://www.marginallyclever.com/2013/08/how-to-build-an-2-axis-arduino-cnc-gcode-interpreter/
does not work. The "Post Comment" button overlaps the captcha field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant