Program Stepper Motor Plc
Amatrol is the worlds leader in skillsbased, interactive technical learning. Our interactivity, both in equipment and computerbased learning solutions, integrated. Description. The STseries high performance stepper drives incorporate advanced features that will derive the highest performance from todays stepper motors. Control DC and Stepper Motors With L2. N Dual Motor Controller Modules and Arduino 3 Steps. Block%20Diagram%20for%20Stepper%20Motor%20System.png' alt='Program Stepper Motor Plc' title='Program Stepper Motor Plc' />Stepper motors may appear to be complex, but nothing could be further than the truth. In this example we control a typical NEMA 1. It has 2. 00 steps per revolution, and can operate at at 6. RPM. If you dont already have the step and speed value for your motor, find out now and you will need it for the sketch. The key to successful stepper motor control is identifying the wires that is which one is which. You will need to determine the A, A, B and B wires. With our example motor these are red, green, yellow and blue. Now lets get the wiring done. Connect the A, A, B and B wires from the stepper motor to the module connections 1, 2, 1. Install Windows Media Player Visualizations Windows. Place the jumpers included with the L2. N module over the pairs at module points 7 and 1. Then connect the power supply as required to points 4 positive and 5 negativeGND. Once again if your stepper motors power supply is less than 1. V, fit the jumper to the module at point 3 which gives you a neat 5. V power supply for your Arduino. Next, connect L2. N module pins IN1, IN2, IN3 and IN4 to Arduino digital pins D8, D9, D1. D1. 1 respectively. Finally, connect Arduino GND to point 5 on the module, and Arduino 5. V to point 6 if sourcing 5. V from the module. Controlling the stepper motor from your sketches is very simple, thanks to the Stepper Arduino library included with the Arduino IDE as standard. To demonstrate your motor, simply load the stepperone. Revolution sketch that is included with the Stepper library. To find this, click the File Examples Stepper menu in the Arduino IDE. Finally, check the value forconst int steps. Per. Revolution 2. RPM in the following line my. Stepper. set. Speed6. Now you can save and upload the sketch, which will send your stepper motor around one revolution, then back again. This is achieved with the functionlt p my. Stepper. stepsteps. Per. Revolution for clockwise lt p lt pmy. Stepper. step steps. Per. Revolution for anti clockwise. Finally, a quick demonstration of our test hardware is shown in the video on this step. So there you have it, an easy an inexpensive way to control motors with your Arduino or compatible board. And if you enjoyed this article, or want to introduce someone else to the interesting world of Arduino check out my book now in a fourth printing Arduino Workshop.