Hi there,
I have a project at university that uses a velleman k8200 printer but not as a printer as such.
I want to run a code to run 2 stepper motors with a const acceleration from a sketch in the arduino software. Does anyone have any tips on how to do that?
Thanks in advance!!
Matt
[quote=“mrgood1991”]Hi there,
I have a project at university that uses a velleman k8200 printer but not as a printer as such.
I want to run a code to run 2 stepper motors with a const acceleration from a sketch in the arduino software. Does anyone have any tips on how to do that?
Thanks in advance!!
Matt[/quote]
constant speed, or accelleration?
What for?
Cont acceleration.
Basically I’ve replace the y carriage, theres no heat bed etc, just a wooden ply board that has these 2 posts holding a stepper motor and bearing with an acrylic tube attached.
What I want to do is run an arduino code so that the tube accelerates with const acceleration, and then the y axis stepper also linearly accelerates (much slower) so that extruded plastic is wound round the acrylic tube faster and faster.
But I have no idea how to actually run an arduino sketch on the printer.
Thanks,
Matt
s214.photobucket.com/user/mgoody … sort=3&o=0
Thats a picture to help you visualise the acrylic tube setup.
Matt
[quote=“mrgood1991”]Cont acceleration.
Basically I’ve replace the y carriage, theres no heat bed etc, just a wooden ply board that has these 2 posts holding a stepper motor and bearing with an acrylic tube attached.
What I want to do is run an arduino code so that the tube accelerates with const acceleration, and then the y axis stepper also linearly accelerates (much slower) so that extruded plastic is wound round the acrylic tube faster and faster.
But I have no idea how to actually run an arduino sketch on the printer.
Thanks,
Matt[/quote]
Well, you can’t simply run an arduino sketch on it, as it would have to replace the firmware.
What you can do is generate a G-code file for sending it to the printer.
Or write a simple application, perhaps in proccessing (almostthe same as arduino ide)
and make it send g-code commands directly via usb serial connection to the printer.
cheers,
Christian
Hi Christian,
Thanks for the info, any helpful tips or links to show me how to generate a gcode file to do this?
Thanks,
Matt
[quote=“mrgood1991”]Hi Christian,
Thanks for the info, any helpful tips or links to show me how to generate a gcode file to do this?
Thanks,
Matt[/quote]
For a start you can have a look at the G-Code Wiki here : http://reprap.org/wiki/G-code
A simple start could be :
G0 F100 X10
G0 F150 X20
G0 F200 X30
G0 F250 X40
G0 F300 X50
Which would turn the x motor in steps of 10 “mm” starting with 100mm/min increating to 300mm/min
Is that what you looked for?