Editing Stepper Motor Demonstration and Tester

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
= Stepper Motor Demonstration and Test Projects =
+
= Stepper Motor Demonstration and Test Project =
  
This page is draft will superceed much of the info on [[PIC Stepper Motor Tester]] which is for the PIC and a new page [[Stepper Motor Tester for the Arduino]] which is for the arduino  
+
This page is draft will super ceed much of the info on [[Stepper Motor Tester]] which is for the PIC and a new page [[Stepper Motor Tester for the Arduino]] which is for the arduino  
  
 
*Name: Stepper Motor Demonstration and Test Project
 
*Name: Stepper Motor Demonstration and Test Project
Line 10: Line 10:
 
*Last revision Dec  20 2010
 
*Last revision Dec  20 2010
 
*Downloads are available see download section on the sub page for each project   
 
*Downloads are available see download section on the sub page for each project   
Archive zip file see individual pages for each sub project, [[PIC Stepper Motor Tester]] which is for the PIC and [[Stepper Motor Tester for the Arduino]] for the Arduino or email me [[russ_hensel]] for the most up to date info.
+
Archive zip file see individual pages for each sub project, [[Stepper Motor Tester]] which is for the PIC and [[Stepper Motor Tester for the Arduino]] or email me [[russ_hensel]] for the most up to date info.
  
 
This project has several potential uses:
 
This project has several potential uses:
Line 73: Line 73:
  
 
See the individual pages, in general the ucontroller does all the logic and the drive is done by low side darlington transistors see:  [[Stepper Motor Tester]] which is for the PIC and [[Stepper Motor Tester for the Arduino]].
 
See the individual pages, in general the ucontroller does all the logic and the drive is done by low side darlington transistors see:  [[Stepper Motor Tester]] which is for the PIC and [[Stepper Motor Tester for the Arduino]].
 
 
== Command Interface ==
 
== Command Interface ==
  
Line 84: Line 83:
 
! Code
 
! Code
 
! Notes, Program Response
 
! Notes, Program Response
<!------------------------------->
 
|-valign="top"
 
|Report on all parameters
 
|r
 
|Begins with version then other parameters something like:
 
dn  -> Dir +1,
 
pn  ->Permutation 1,
 
Stepper Pos = 80,
 
Step Delay Us = 300 .....
 
 
<!------------------------------->
 
<!------------------------------->
 
|-valign="top"
 
|-valign="top"
Line 112: Line 102:
 
|Steps taken since power on or reset.
 
|Steps taken since power on or reset.
 
Signed int.
 
Signed int.
 +
<!------------------------------->
 +
|-valign="top"
 +
|Report on all parameters
 +
|r
 +
|Delimited by commas something like:
 +
Dir +1, Permutation 1, Stepper Pos 80, Step Delay Us = 300 .....
 
<!------------------------------->
 
<!------------------------------->
 
|-valign="top"
 
|-valign="top"
 
|Go for a number of steps
 
|Go for a number of steps
 
|gnnn
 
|gnnn
|go for a number of steps ( max. about 30,000 ) Direction set with d. use g0 or just g to repeat last number of steps
+
|go for a number of steps ( max. about 30,000 ) Direction set with d.  
 
Responds with "g starting<cr>" when rotation begins, then with "g done<cr>" when done.  May be stopped early with stop command.
 
Responds with "g starting<cr>" when rotation begins, then with "g done<cr>" when done.  May be stopped early with stop command.
 
<!------------------------------->
 
<!------------------------------->
Line 133: Line 129:
 
|pn
 
|pn
 
|Set the permutation, find the value that works for your motor. ( n = 0 to 5 ) Responds with the permutation set.
 
|Set the permutation, find the value that works for your motor. ( n = 0 to 5 ) Responds with the permutation set.
<!------------------------------->
 
|-valign="top"
 
|Try the next permutation of the motor wires.
 
|n
 
|Set the permutation up by one, wraps to 0, and goes for the last number of steps, quick way to find the value that works for your motor.  Responds with ??.
 
<!------------------------------->
 
|-valign="top"
 
|Speed test
 
|ann
 
|Run a speed test gradually accelerating the motor up to speed, then down, and finally reversing -- should end up at the same place it started.  The higher the value of nn ( about 30 max ) the faster the test.  Use the report command to find the step delay for the max speed.  You can also do a speed test setting the step time, but moder has sudden, not gradual acceleration. Responds with ??.
 
 
<!------------------------------->
 
<!------------------------------->
 
|-valign="top"
 
|-valign="top"
Line 157: Line 143:
 
|Stop  
 
|Stop  
 
|!
 
|!
|Should almost immediately stop long running commands like Go or x1 or x2. Responds with  Stopped<cr> when stopped ( which should be pretty quick ).
+
|Should almost immediately stop long running commands like Go or x1 or x2. Responds with  Stopped<cr> when stoped ( wich should be quick ).
 
<!------------------------------->
 
<!------------------------------->
 
|-valign="top"
 
|-valign="top"
Line 376: Line 362:
 
http://www.cs.uiowa.edu/~jones/step/circuits.html
 
http://www.cs.uiowa.edu/~jones/step/circuits.html
  
*[[PC-Microcontroller Communications]] discusses free terminal programs, most much better than hyperterminal.
+
A free terminal program, I like this much better than hyperterminal:
 +
Welcome to our Free Download/New Products Page!
 +
http://www.rs485.com/psoftware.html
  
 
BoostC – I think the free version is enough to compile the program:
 
BoostC – I think the free version is enough to compile the program:
Line 386: Line 374:
 
== Download ==
 
== Download ==
  
Archive zip file see individual pages for each sub project, [[PIC Stepper Motor Tester]] which is for the PIC and [[Stepper Motor Tester for the Arduino]] for the Arduino or email me [[russ_hensel]] for the most up to date info.
+
[http://home.comcast.net/~russ_hensel/OC/StepperTest_v1.zip Version 1 zip file: StepperTest_v1.zip] If you want the most up to date version, email me to see if there have been some unposted revisions.  [[russ_hensel]]
  
 
== Comment, Questions, Contributions? ==
 
== Comment, Questions, Contributions? ==
Line 392: Line 380:
 
Email me [[russ_hensel]], or use the talk page for this topic.  All feedback is welcome.
 
Email me [[russ_hensel]], or use the talk page for this topic.  All feedback is welcome.
  
[[category:projects]][[Category:Test Equipment]][[category:Serial Communications]][[category:Microcontroller]][[category:PIC]][[category:BoostC]][[category:Arduino]]
+
[[category:projects]][[Category:Test Equipment]][[category:Serial Communications]][[category:Microcontroller]][[category:PIC]][[category:BoostC]]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)