Skip to main content

Motors and Drivetrains

In this training module, we will explore the various motors and drivetrains commonly used in FRC robots. We will also cover how to control these motors through programming in Java using WPILib.


Presentation


Exercises

Motors

  • Spin a brushed motor using a motor controller and a joystick from your own code.

Drivetrains

  • Set up a leader and a follower motor controller configuration in code.
  • Move motors on both sides of a tank drive drivetrain to drive forward, backward, and turn.
    • For an extra challenge, try to implement arcade drive controls!

Hardware

Hardware Interfacing

Software Tools

  • VSCode: Our primary Integrated Development Environment (IDE) for programming.
  • Driver Station: Software used to control and monitor the robot during competitions.