Skip to content
Hive Vision

Limelight 3A Tuning Guide

Learn how to optimize camera height, pitch angle, sensor gain, exposure, and confidence thresholds on your Limelight 3A dashboard.

Tuning your Limelight 3A for Hive Vision involves two primary steps: physical camera calibration (height, pitch angle, forward offset) and dashboard camera controls (sensor gain, exposure, confidence cutoffs).

Optimal tuning ensures maximum neural detection accuracy across varying competition field lighting conditions and allows Hive Vision distance algorithms (CVConstants.java) to accurately map 2D camera detections into 3D robot space.


How you physically mount your Limelight 3A on the robot directly affects detection field-of-view (FOV) and distance calculation accuracy.

Suggested Height (H)

12.0” – 16.0” above the field floor.

Mounting at this height provides a broad FOV while preventing robot mechanisms (intakes, slides) from obstructing the camera lens.

Suggested Pitch Angle (θ)

20.0° – 30.0° downward pitch.

Angling the camera downward keeps game entities visible from close-range intake distance out to mid-field (~6–8 feet).

Below is a schematic diagram illustrating the camera height (H), downward pitch angle (θ), forward offset (D), and FOV projection onto the field floor:

Units

Drag a ball along the floor to see where it drops out of view. Distances are measured from the robot's center of rotation.

Mount
What the camera sees (640×480)
Coverage
Floor in view
Blind zone past bumper
Image center hits floor
Selected ball
Balls in view
Smallest ball in view
CVConstants.java
Limelight 3A Mounting Geometry & Target FOV. Drag a ball along the floor to see where it drops out of view; the blind zone is the stretch of floor between your bumper and the nearest point the camera can see.

Open your browser and navigate to http://limelight.local:5801 to access the Limelight Web Dashboard. Adjust these parameters to match your venue’s lighting environment.

1. Sensor Gain (Room Brightness Adjustment)

Section titled “1. Sensor Gain (Room Brightness Adjustment)”

Sensor Gain acts as digital signal amplification. Adjust this setting based on ambient room brightness:

  • Suggested Sensor Gain: 15 – 20
  • Scenario: Brightly lit competition arenas or venues with direct overhead spotlights.
  • Effect: Low gain keeps the image crisp and minimizes visual noise/artifacts.
Camera stream at sensor gain 20 with detection boxes around yellow, red, and blue balls
The stream at a gain of about 20. The boxes are the model’s detections.

2. Exposure Control (Preventing Motion Blur)

Section titled “2. Exposure Control (Preventing Motion Blur)”

Exposure dictates how long the camera sensor collects light for each frame:

  • Recommended Value: ~2200 µs (microseconds).
  • High-Speed Robot Driving: Lower exposure to 1500 – 1800 µs. Lower exposure reduces motion blur when the robot is strafing or turning rapidly.
  • Low Light Environments: Increase exposure slightly to 2500 – 3000 µs if objects appear too dark.
Limelight stream with detection boxes around red, blue, and yellow balls at an exposure of about 2200 microseconds
The stream at about 2200 µs, with the model’s detections drawn on. Start here, then shorten the exposure if fast driving smears the balls.

The Confidence Cutoff sets the minimum probability required for Hive Vision to report a bounding box detection:

  • Recommended Range: 0.30 – 0.40 (30% to 40% confidence).
  • If missing distant targets: Lower confidence to 0.25 – 0.30.
  • If detecting false positives (shadows, field perimeter): Raise confidence to 0.45 – 0.50.
Neural Detector stream with bounding boxes drawn around detected balls
Boxes drawn by the Neural Detector. Detections below the cutoff are not drawn.

Once physical height, pitch, and forward offset are measured, update your robot’s CVConstants.java file so Hive Vision pathing algorithms can accurately compute field targets:

public class CVConstants {
// Measured height from floor to camera lens (inches) minus 1.4" object calibration offset
public static double CAMERA_HEIGHT = 14.5;
// Measured downward angle (in radians). Convert degrees using Math.toRadians()
public static double CAMERA_PITCH = Math.toRadians(25.0);
// Distance forward from center of robot rotation to camera lens (inches)
public static double FORWARD_OFFSET = 6.0;
}