Stepper 函式库

Stepper 函式库提供控制单极和双极步进马达的功能。要控制步进马达除了 86Duino 还需要其他对应的电路,更多的细节可以看这个网页

电路

单极与双极步进马达的连接电路:

Unipolar Steppers
Bipolar Steppers

函式

Stepper(steps, pin1, pin2)
Stepper(steps, pin1, pin2, pin3, pin4)
setSpeed(rpms)
step(steps)

范例

参考 Arduino 提供的范例:

Motor Knob


函式库参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.