Welcome! Log In Create A New Profile

Advanced

Testing Stepper Motors

Posted by GeorgePa 
Testing Stepper Motors
August 08, 2015 05:26AM
Hello. I'm trying to build a 3D printer from used printers and scanners. I have the Arduino Mega 2560, RAMPS 1.4 and the A4988 driver combo as the electronic part. I’m trying to test out the motors to see if they work but I don’t know what code to upload to the Arduino board to do that. Can anyone help me with a simple code that turns the motor in a direction a number of steps, and then in the other direction.
Re: Testing Stepper Motors
August 08, 2015 09:40AM
The reprap wiki has test code
[www.reprap.org]
Re: Testing Stepper Motors
August 08, 2015 02:03PM
Thank you for your replay. That was helpful.

Is there a diagrame with the RAMPS pin numbering (for example, on the Arduino the pin numbers are printed on the bord)?
Re: Testing Stepper Motors
August 08, 2015 08:27PM
The pin numbers are the pin numbers on the Arduino board not the numbers on the ramps board.
There are diagrams that show pins used for output of X Y Z and extruders.
Pin numbers for drivers would not normally be changed from standard so code should work as given.
Re: Testing Stepper Motors
August 09, 2015 03:51AM
Ok, but on my Arduino bord (i've added a picture o it) the biggest number is 53 and in the code, for example
#define Z_ENABLE_PIN       62
is this code for anater type of bord?
Attachments:
open | download - IMAG0509.jpg (491 KB)
Re: Testing Stepper Motors
August 09, 2015 08:00AM
pins 54 to 69 are Arduino pins A0 to 69
Re: Testing Stepper Motors
August 09, 2015 08:16AM
Ok, now I understand. Thank you very much for the clarifications ant the guidance.
Sorry, only registered users may post in this forum.

Click here to login