This is a library dedicated to stepper motors for Arduino and microcontrollers.
Since it is written in C language, it can be used with PIC microcontrollers such as 16F1827.
Arduinoやマイコン用のステッピングモータ専用ライブラリです。
C言語で記述されているので16F1827などのPICマイコン等でも使用可能です。
The excitation system of multiple stepper motors can be easily changed even during operation, and the direction of rotation of each can also be adjusted.
複数のステッピングモーターの励磁方式を動作中であっても簡単に変更することができ、また、それぞれの回転方向も調整することができます。
I, yuki-miyakoshi, publish the youkey series to improve my own technical skills.
It is released under the MIT license, so please use it within the scope of your own responsibility.
youkeyシリーズは私yuki-miyakoshiが、あると便利なライブラリを自身の技術力向上のために公開しているものです。MITライセンスで公開しているので、自己責任の範囲内でご利用いただけると幸いです。
Function to get information whether the stepper motor should rotate or not.
ステッピングモータが回転するべきかどうかの情報を取得する関数。
Arguments: int motorPinNumber
(number the motors, e.g., 0 for motor 1, 1 for motor 2, 2 for motor 3)
Note: Up to 3 motors can run at the same time.
引数:int motorPinNumber モータの番号。(モータに番号をつけてください。1番モータは0,2番モータは1,3番モータは2のように)
注意:同時に動かせるモータは3個までです。
The four bool values totaling whether the motor should rotate or not.
Example: If motor #0 is {true,false,false,fals}, then 8 (0b1000 in binary) Refer to examples/stepper/stepper.ino for details.
返り値:
モータが回転するべきかどうかのbool値が4つ合計された状態で出てきます。
例:0番のモータが{true,false,false,fals}であれば、8(2進数で0b1000)。
詳しくはexamples/stepper/stepper.inoを参照してください。
Function to rotate a stepper motor.
ステッピングモーターを回転させる関数。
引数:int excitation 励磁方式
0, no-rotation 無回転
1, 1-1 phase excitation 1-1相励磁
2, 2-2 phase excitation 2-2相励磁
3, 1-2 phase excitation 1-2相励磁
引数:bool isForward 正転か逆転かどうか
true, 正転
false, 逆転
引数:motorPinNumber ステッピングモータの番号。
None
返り値:なし