Lesson 39--Microduino Stepper Motor Control steps

From Microduino Wiki
Revision as of 08:54, 12 September 2016 by Fengfeng (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文

Objective

This lesson will use potentiometer or serial port to control stepper motor's step, that is angle.

Equipment

Schematic

Stepper motor pot.jpg

Debug

  • Set up circuit, as follows:
ok

Experiment one

  • Step 1: Open the test program;
  • Step 2: Compile it and select the board to download
  • Step 3: Test
    • Connect the power (6-25V);
    • Rotate the potentiometer, stepper motor will rotate as the same angle.

Experiment two

  • Step 1: Open the test program;
  • Step 2: Compile it and select the board to download
  • Step 3: Test
    • Connect the power (6-25V);
    • Open the serial monitor;
    • Input a angle value, then the stepper motor will rotate as input angle value.

Result

Based on Microduino A4982, we can use the potentiometer or serial port to control stepper motor successfully.

Video