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.