Arduino Stepper Motor Control

About: Been into technology and electronics since the time of vacuum tubes to Raspberry Pi. Love it all.

Here and the associated links we explore Arduino controlling stepper motors.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: About the Video

The Arduino sketch below replaces the Stepper library which I found useless. It also includes I2C display as shown in the video. I consist of the command forward(int steps, int step_delay) and reverse(int steps, int step_delay). It also a motor off command.

A potentiometer is connected to ADC0 can can be used to control the step delay. On my particular stepper motor a step delay less than 5 mSec. will stall the motor. The motor is 1.8 degrees per step or 200 steps for 360 degrees rotation. Each winding is 5.1 volts at 1 amp. The color code is based on a motor from an earlier program. Have fun.

http://www.bristolwatch.com/L298N/stepper.htm

http://www.bristolwatch.com/arduino/arduino_unipolar_stepper.htm

Arduino All The Things! Contest

Participated in the
Arduino All The Things! Contest

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    Discussions

    0
    None
    Javi Roces

    3 months ago

    Very interesting!