Editing PIC Stepper Motor 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 250: Line 250:
 
== Other Things to Try With the Tester ==
 
== Other Things to Try With the Tester ==
  
[[Stepper Motor Demonstration and Tester]] which covers both the PIC and Arduino Version.
+
* How fast can your stepper go?
 +
Run it faster and faster ( shorter time delay ) until it fails. You may want to turn it 400 turns to clockwise fast, then 400 counter clockwise slow. If it does not end up where it started then it skipped a step or more. If you know how many steps per rev then you need not reverse it just ask it to go a round number of revolutions.
 +
 
 +
* How many steps per revolution for your motor?
 +
Guess, try to make it turn 10 revolutions fairly slowly or at least slowly enough so that it is not skipping steps.. If you number is right it will end up at the same angle it started. If not try a new guess.
 +
 
 +
* Demo the motor with Special Commands x1 and x2: 
 +
** x1: spins the motor one way faster and faster, then reverses and returns to original position.
 +
** x2: motor vibrates faster and faster through smaller and smaller arc, then stops where it started.
  
 
== Additions/Changes ==
 
== Additions/Changes ==
  
[[Stepper Motor Demonstration and Tester]] which covers both the PIC and Arduino Version.
+
These are changes I may or may not make: ( or you may take them on )
 +
 
 +
* Add servo testing to the project ( actually fairly easy as I already have the servo tester, standalone, done.  Just need to merge in the code. ).
 +
 
 +
* Add selection for half step, full step or wave drive.
 +
 
 +
* Use low side switches ( normally darlington connected transistors, or logic level mosfets ) with higher current ( and perhaps voltage ) rating.  The current circuit is limited to about 500 ma.
 +
 
 +
* Move the rs232 level shifter into the cable and drop it from the circuit, then the level shifter can be used for many projects.
  
 
== Possibly useful links ==
 
== Possibly useful links ==
  
[[Stepper Motor Demonstration and Tester]] which covers both the PIC and Arduino Version.
+
This program uses my: [[Serial Communications Library -- BoostC and 16F877A]]
 +
 
 +
A closely related project with a lot of similar code: [[PIC based Stepper Motor Dancing Analog Clock]]
 +
 
 +
[RS232]  Discusses the sort of interface that is used by this project.
 +
 
 +
More information on serial communications with microcontrollers: [[Microcontroller Serial Communications Articles]]
 +
 
 +
Info on steppers:
 +
Stepper motors
 +
http://www.allaboutcircuits.com/vol_2/chpt_13/5.html
 +
 
 +
More info on steppers:
 +
Basic Stepping Motor Control Circuits
 +
http://www.cs.uiowa.edu/~jones/step/circuits.html
 +
 
 +
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:
 +
SourceBoost Technologies
 +
http://www.sourceboost.com/
 +
 
 +
Some may considered this project for just determining which stepper wire is which overly complicated: there are some simpler methods ( for example: http://www.doc.ic.ac.uk/~ih/doc/stepper/others/ ). However for one reason or another this has not always worked for me, this test is definitive and fun.
  
 
== Download ==
 
== Download ==

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)