[Motion86]
説明
When setting the PPU (Pulse per Unit) using config_PPU, you can use the help calculation function to find the set parameters.
The relationship of PPU (Pulse per Unit) is shown in the following figure.
86Duino sends pulse to the stepper motor driver board, which sends step to rotate the stepper motor.
micro_stepping
- The number of pulses received from the 86Duino to type a step on the stepper motor driver board.
steps_per_revolution
- The parameter on the stepper motor, the number of steps to be received from the stepper motor driver board for one revolution.
The formula for calculating pulses_per_revolution is steps_per_revolution * micro_stepping.
The parameters need to be measured in the ratio of the guide screw pitch to the gearbox gears, as follows.
構文
machine.computePPU_LeadScrew(pulses_per_revolution, leadscrew_pitch, gear_ratio);
媒介変数
machine
: for Machine objects.pulses_per_revolution
: The number of pulses that the 86Duino needs to hit to make one revolution of the stepper motor.leadscrew_pitch
: The pitch of the leadscrew.gear_ratio
: Gear ratio of the gearbox. The value of gear_ratio is the number of output gear teeth / number of input gear teeth, i.e., gear_ratio = Toutput / Tinput.
戻り値
double: The PPU (Pulse per Unit) after the return calculation.
See also
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。