MechMate CNC Router Forum

Go Back   MechMate CNC Router Forum > Electrical & Electronic > 701. Motor Drives
Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old Sat 13 December 2014, 11:12
Richards
Just call me: Mike
 
South Jordan, UT
United States of America
Use Arduino Uno to test stepper drivers and stepper motors

I'm attaching an Arduino sketch (program) that you can use with an Arduino Uno to test your stepper drivers and stepper motors. This program requires that you have a power supply connected to the stepper driver and that the stepper driver is connected properly to the motor. The program supplies the step pulse signal and the direction signal for the stepper driver. You can change settings by changing values in the DEFINE section at the start of the program. The program uses an array to create acceleration and deceleration values. You can modify the values. The values in the array will start the motor at 100 RPM and then ramp up to 650 RPM, which are the values that I used with a PK268-02A motor that I had on the bench and the 48VDC power supply that was driving it. If your motor stalls, change the rampSteps from the default 57 to a lower number. Change/test as required until the motor works as expected.

In operation, the motor will turn one direction for the number of steps defined by "totalSteps", wait for the amount of milliseconds defined by "waitTime", and then reverse. It will operate as long as power is supplied to the Arduino and to the motor.

The Arduino Uno R3 is available worldwide. Here in America, most Radio Shack stores carry it. It is also available from sparkfun.com and adafruit.com. The price is $25 to $35, depending on where you buy it.

The Arduino programming language (required) can be downloaded from arduino.cc. There is no cost for the software. Versions are available for Linux, Windows, and for OS-X (apple).

Unzip the stepper_tester.zip file and open the step_pulse_2014_12_12.ino file.

If you have problems or questions, send me a private message.

-Mike Richards
Attached Files
File Type: zip stepper_tester.zip (1.6 KB, 23 views)
Reply With Quote
Reply

Register Options Profile Last 1 | 3 | 7 Days Search Today's Posts Mark Forums Read

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stepper Motors firechief 70. Control Systems 4 Sat 14 May 2011 06:32
stepper motors andrewuk Motors & their mountings 18 Sun 31 October 2010 09:48
Stepper motors for sale cbboatworks Archives 6 Wed 03 June 2009 18:20
Stepper motors giving trouble - Motors burnt while serving as ground for elec. fault Daya Troubleshooting 45 Mon 21 April 2008 01:05
Recommended stepper motor drivers - G202 (or G203V?) Gerald_D Archives 35 Thu 03 January 2008 15:36


All times are GMT -6. The time now is 04:40.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.