Machine.computePPU_Belt()

[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.

zero_size

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 calculation formula for pulses_per_revolution is steps_per_revolution * micro_stepping.

The parameters need to measure the belt pitch and the number of teeth of the gears, as follows.

zero_size

語法

machine.computePPU_Belt(pulses_per_revolution, belt_pitch, pulley_tooth_count);

參數

  • 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.
  • blet_pitch: The belt pitch in millimeters.
  • pulley_tooth_count: The number of teeth of the gears that rotate synchronously with the stepper motor.

回傳

double: The PPU (Pulse per Unit) after the return calculation.

參考


函式庫參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール