XRP
  • Experiential Robotics Platform (XRP)
    • Building the XRP Robo
    • Programming Raspberry Pi Pico W
    • Programming with XRPCode IDE
    • Programming with wpilib
      • Hardware
      • Imaging and Setup
      • Creating an XRP Program
    • Programming with ROS
  • Hardware Components
    • Different Types of Motors
      • Brushed DC Motors
      • Brushless Motor
      • Stepper Motor
      • Servo Motors
    • Key Characteristics of DC Motors
    • Encoders
  • Motor Control Theory
    • What use in FRC
    • PID control (Proportional-Integral-Derivative control)
    • Field Oriented Control (FOV)
  • Use XRP to practice
    • Plotting Fix
    • Reading from the Encoder
    • Measure position
    • Control the motor
    • Tuning PID
  • Use XRP with Micropython
    • Setup Envirrment
    • Use the Shell
    • XRP library
  • Connect with Wifi
Powered by GitBook
On this page
  1. Motor Control Theory

What use in FRC

In the FIRST Robotics Competition (FRC), several motor control techniques are commonly used, depending on the application and the precision required. The most prominent motor control methods employed in FRC include:

1. Closed-Loop Control

FRC robots frequently use closed-loop control systems, where feedback from sensors like encoders or gyros is used to adjust the motor's speed or position. This is essential for tasks requiring precise control, such as moving arms, controlling drivetrain speed, or positioning mechanisms.

  • Applications in FRC: Drivetrains, manipulators, lift mechanisms, and autonomous movement.

2. Proportional-Integral-Derivative (PID) Control

PID control is highly popular in FRC, particularly for controlling speed, position, and other dynamic parameters. PID loops allow for smooth and accurate control by minimizing the error between the target and actual performance.

  • Applications in FRC: Autonomous driving, arm positioning, turret control, and other precise movement tasks.

3. Pulse Width Modulation (PWM) Control

PWM is widely used to control the speed of DC motors by varying the average voltage supplied to the motor. Most FRC motor controllers, such as the Talon SRX, Victor SPX, or Spark Max, use PWM to manage motor speeds smoothly.

  • Applications in FRC: Speed control of motors for drivetrains, intake systems, and flywheels.

4. Field-Oriented Control (FOC)

While not used as frequently as PID or PWM in basic systems, Field-Oriented Control is employed in advanced FRC designs, particularly for brushless motors like the Kraken and Falcon 500. These motors, which use FOC for efficient and smooth operation, are gaining popularity due to their high torque and efficiency.

  • Applications in FRC: Drivetrains, shooting mechanisms (like flywheels), and any system using brushless motors.

5. Sensorless Control

Sensorless control, which estimates motor position without physical sensors, is sometimes used with brushless motors in FRC. However, most FRC teams prefer to use feedback sensors like encoders for better accuracy.

  • Applications in FRC: Brushless motor systems where simplicity and cost are important.

6. Open-Loop Control

Open-loop control is occasionally used in FRC for simple systems where feedback isn’t critical. This approach is typically reserved for tasks where precision isn’t as important, such as controlling simple fans or basic systems with fixed movement.

  • Applications in FRC: Simple mechanisms like conveyor belts or simple shooters.

Common FRC Motor Controllers:

  • Talon SRX and Victor SPX: Support PWM and can be configured for closed-loop control with external sensors like encoders.

  • Spark MAX: Designed for brushless NEO motors.

  • Falcon 500/Kraken x60: An integrated brushless motor with a built-in controller that uses FOC.

Here’s a comparison table of motor control techniques commonly used in FRC, based on key factors like accuracy, response time, complexity, adaptability, and cost:

Control Method

Accuracy

Response Time

Complexity

Cost

Closed-Loop Control

High

Moderate

Moderate

Moderate

PID Control

Very High

High

High

Moderate to High

PWM Control

Moderate

Moderate

Low

Low

Field-Oriented Control (FOC)

Very High

Very High

Very High

High

PreviousMotor Control TheoryNextPID control (Proportional-Integral-Derivative control)

Last updated 8 months ago