Rev NEO motor initialization

We are having trouble using the rev robotpy library to control a NEO motor with a Spark Max Controller. When running the Spark Max from the Rev hardware client, we are able to spin the NEO in both directions. However, when we initialize and run the following two lines (first in robotInit, second in teleopPeriodic), the NEO vibrates and attempts to spin.

self.rotateArm = rev.CANSparkMax(constants["rotateArm"], rev.CANSparkMaxLowLevel.MotorType.kBrushless)

self.rotateArm.set(.8)

The sparkmax is on the latest firmware (1.5.2). We are using the canbus. Here is a video displaying the observed behavior.

What else is your code doing (is it solely those two lines?). What version of robotpy-rev are you on? The following can tell you that:

py -m robotpy_installer list

Did you resolve your issue?

Yup, combination of hardware, software, and electrical issues, nothing to do with robotpy :slight_smile:

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.