Skip to content

Wire intake encoder to Spark Max #432

@auscompgeek

Description

@auscompgeek

self.arm_motor = SparkMax(SparkId.INTAKE_ARM, SparkMax.MotorType.kBrushless)
self.encoder = DutyCycleEncoder(DioChannel.INTAKE_ENCODER, math.tau, 0)
configure_through_bore_encoder(self.encoder)

We have a bunch of breakout boards in the REV order, so this hopefully won't be too hard.

https://docs.revrobotics.com/brushless/spark-max/encoders#absolute-encoders

Things needed:

  • 1x data port breakout board
  • 1x JST-PH 6-pin cable (of appropriate size)
  • code (duh)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions