Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

A swerve drive module is a robotic wheel assembly that can both spin the wheel and rotate the wheel's steering angle. This lets a robot move forward, sideways, diagonally, or rotate without needing to turn its chassis first. Swerve drives are common in advanced competition robots because they combine speed, agility, and precise control.

Understanding the module helps students connect motors, gears, vectors, and feedback control in one real mechanical system.

Inside a typical swerve module, one motor drives the wheel while a second motor turns the wheel pod to set its direction. Gears, belts, or bevel gear sets route power through compact paths so the wheel can be driven while the module steers. With four independent modules, the robot controller calculates a desired drive speed and steering angle for each wheel from the robot's desired motion.

The key idea is that each wheel produces a drive vector, and the combined vectors determine the robot's translation and rotation.

Understanding Robotics: Swerve Drive Module

Each wheel must respond to more than the robot's overall travel command. When the robot rotates, every module needs a velocity caused by that rotation. This velocity points along a circle centered on the robot.

A module farther from the center must move faster during the same turn. The control program combines this turning velocity with the requested straight-line velocity. The result gives one direction and one speed for that module.

During a pure spin, all wheels point tangent to their circular paths. During a curved path, some wheels may need much higher speeds than others. This is why the physical location of each module must be measured carefully in the robot coordinate system.

A useful control trick reduces unnecessary steering motion. A wheel aimed at one direction can produce the same ground motion when pointed one hundred eighty degrees away if its drive motor reverses. Software normally chooses whichever target angle requires the smaller turn.

This makes the robot react faster and lowers wear on steering parts. Steering angle is measured with an encoder. An absolute encoder reports the pod position even after power is turned off and back on.

It needs a correct zero offset, meaning its reading must match the real straight-ahead direction. A small offset error on one module can make the robot drift, spin unexpectedly, or fight its own motion.

Feedback control keeps the measured wheel speed and steering position close to their targets. The controller repeatedly compares the target with sensor readings, then adjusts motor power. A steering system that is too aggressive may shake back and forth around its target.

One that is too gentle may lag behind during rapid direction changes. Drive control has similar tradeoffs. Wheel speed can fall when the battery voltage drops, the robot pushes an object, or a wheel crosses a rough surface.

Good software uses limits for acceleration and steering rate so the commands remain possible for the motors and mechanisms to follow. Motor current is worth watching because high current can signal binding, a stalled wheel, or a collision.

The mechanical design matters as much as the code. Steering gears need low backlash, which is the small free movement between teeth before force transfers. Too much backlash makes precise aiming difficult.

The wheel needs enough grip to transmit force, yet high-grip tires can scrub against the floor when the robot changes direction. Module bearings, belt tension, gear alignment, and wire routing all affect reliability. Students often meet these ideas in competition robots, mobile factory carts, camera platforms, and research vehicles.

A strong learning process starts with testing one module on blocks, checking its encoder direction, then testing slow robot motion. Mark the wheel's true forward direction, log sensor values, and verify that a positive command produces the expected motion before attempting fast autonomous paths.

Key Facts

  • Wheel linear speed is v = rω, where r is wheel radius and ω is wheel angular speed in rad/s.
  • For a gear pair, gear ratio = driven gear teeth / driving gear teeth.
  • If a motor drives through reduction G, wheel angular speed is ωwheel = ωmotor / G and wheel torque is approximately τwheel = τmotor G, ignoring losses.
  • A swerve module has two controlled motions: drive speed of the wheel and steering angle of the wheel pod.
  • For robot velocity components vx and vy, the desired travel direction angle can be found with θ = atan2(vy, vx).
  • Holonomic control means the robot can command independent motion in the x direction, y direction, and rotation about its center.

Vocabulary

Swerve drive module
A wheel assembly that independently controls wheel rotation speed and wheel steering direction.
Drive motor
The motor that supplies torque to spin the wheel and move the robot across the floor.
Steering motor
The motor that rotates the wheel pod so the wheel points in the commanded direction.
Coaxial gears
Gears arranged around the same axis so motion or torque can be transmitted through a compact shared centerline.
Holonomic drive
A drive system that can move in multiple independent directions without first rotating the whole robot body.

Common Mistakes to Avoid

  • Confusing wheel heading with robot heading is wrong because the wheel can point in a different direction from the robot chassis.
  • Ignoring gear ratio is wrong because motor speed and wheel speed are usually very different after reduction.
  • Treating all four modules as always parallel is wrong because rotation of the robot requires different wheel directions and speeds at different corners.
  • Using degrees in a calculation that expects radians is wrong because equations such as v = rω require angular speed in rad/s.

Practice Questions

  1. 1 A swerve module uses a wheel with radius 0.050 m. If the wheel spins at 40 rad/s, what is the robot's wheel surface speed in m/s?
  2. 2 A drive motor turns at 6000 rpm and drives the wheel through a 6:1 reduction. What is the wheel speed in rpm, ignoring losses?
  3. 3 A robot needs to move straight to its right while keeping its chassis facing forward. Describe the steering direction and relative drive speed each of the four swerve modules should use.