axis - ebolzMagy/EMCFFBV2 GitHub Wiki

Axis Configuration

UtilityAxis

Sensor Source

The Sensor Source defines the type of sensor used to detect the position or movement of an axis. The available sensor options depend on the pin configuration set in the hardware setup.


Angle

  • Used to set the angle if the sensor is not an ADC.
  • If the sensor is an ADC, the angle will always be 360 degrees.

Enable

  • This option must be checked to activate the axis input and make it usable.

Invert

  • Reverses the direction of the sensor input.

Sensor Offset

  • The offset applied to the sensor when the center button is pressed.

Sensor Ratio

  • Used when the sensor is not directly attached to the axis shaft. For example, if the sensor is attached to a motor and uses a gear ratio.
  • Formula to calculate the Sensor Ratio: Sensor Ratio = Small Gear Teeth / Big Gear Teeth Example: 20T / 100T Sensor Ratio = 0.2

CPR (Counts Per Revolution)

  • The resolution of the sensor.
  • For encoders, CPR = 4 x PPR (Pulses Per Revolution).

Minimum, Center, and Maximum

  • Minimum: The calibrated minimum value of the sensor.
  • Center: The calibrated center value of the sensor.
  • Maximum: The calibrated maximum value of the sensor.

Curve Preset

Available Curve Modes:

  1. Linear: The sensor response follows a linear scale.
  2. InQuad: Movement is smoother at the start and sharper at the end.
  3. InCubic: Movement is smoother at the start and increases exponentially.
  4. OutCubic: Movement is faster at the start and slows down at the end.
  5. OutInCubic: A combination of InCubic and OutCubic.
  6. Custom: The curve can be customized to suit your needs.

Additional Notes

  • If ENCODER1_A and ENCODER1_B are configured on specific pins, the ENCODER1 option will be available for all axes.
  • ADC sensors can only be used if the axis is not an FFB axis.
  • Calibration: Ensure proper calibration of the sensor for accurate axis input. Use the Minimum, Center, and Maximum values to fine-tune the sensor response.
  • Testing: After configuring the axis, test the input using the EMCFFBV2 Utility to ensure it behaves as expected.

Next Steps

➡️ Continue to Buttons Configuration for setting up buttons parameters.


Need Help?

If you have any questions or need assistance, visit the Discussions section.


Happy building! 🚀