Lesson 38--Microduino Stepper Motor Drive

来自Microduino Wikipedia
Jasonsheng讨论 | 贡献2014年3月28日 (五) 07:22的版本 (Created page with "{{Language|第三十八课--Microduino 步进电机驱动}} {| style="width: 800px;" |- | ==Objective== This lesson will show you how to control the stepper motor by Microduin...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
Language English

Objective

This lesson will show you how to control the stepper motor by Microduino A4982 module, and welding the step motor control board.

Equipment

Stepper motor

  • Connection method for stepper motor:

Connect the stepper motor to Microduino A4982 module:

    • Four wire two phase stepper motor has two sets of coil A and B, each group coil's resistance is very small, only a few ohm. A and B group is absolutely insulation and disconnected. Measured with a multimeter, connected is a set;
    • After measured group A and B, connect one group coil to OUT1A and OUT1B, the other group coil connects to OUT2A and OUT2B;
    • By changing the MS1 & MS2 to change the stepping mode (Microduino A4982 default uses 1/16 step mode).
  • Angle calculation:

Stepper motor parameters:1.8deg/slep, that is stepper motor moves one step turned every 1.8°.

    • Step number=360/1.8*16=3200 step

Multiplied by 16 because Microduino A4982 default use 1/16 step mode.

Stepper motor deg.jpg

Schematic

Stepper motor.jpg

Debug

  • Step 1:Crop the pegboard as specified size;
  • Step 2:Determine the Microduino's base position, then welding the circuit according to the schematics:
洞洞板焊法
正面
反面
  • Set up circuit
ok

Program

  • Used library:【AccelStepper librarygithub下载
  • Downlaod test program:文件:Program Test A4982.zip
  • Compile it and select the correct board type to download.
  • Test
    • Connect power (6-25V), the motor won't move in initial state;
    • Press the button, the stepper motor will rotate as setted pace, and LED indicator lights, reverse rotation after a few laps, the cycle repeated;
    • Press the button again, close the drive, LED indicator turn off.

Result

We can control the four wire two phase stepper motor successfully by Microduino A4982 module.

Video

http://v.youku.com/v_show/id_XNjg5MTcwOTA0.html