Skip to content

Spectrum 3847 Challenge: How a Competition Robot Sees & Controls Itself

Spectrum 3847 is a high-school robotics team in Houston, Texas that builds 120-pound competition robots for the FIRST Robotics Competition (FRC) — and shares all of their real code openly on GitHub.

Before you take the 8-question challenge below, spend 2 minutes learning the 3 parts that make their robot work!


Every Spectrum 3847 robot works just like a human athlete catching a ball:

👀 EYES (Vision) 🧠 BRAIN (Control Loop) 💪 MUSCLES (Motors)
┌──────────────────────┐ ┌──────────────────────────┐ ┌──────────────────────────┐
│ Limelight & Jetson │ ──▶ │ WPILib Java (50× / sec) │ ──▶ │ Kraken X60 Motors │
│ cameras spot black- │ │ 1. Calculate error │ │ Spin wheels smoothly & │
│ and-white AprilTags │ │ 2. Push + Brake (P & D) │ │ lock onto the target! │
└──────────────────────┘ └──────────────────────────┘ └──────────────────────────┘
  1. 👀 Eyes — AprilTag Vision (Limelight & Jetson): Black-and-white square codes called AprilTags are taped around the arena. Because each tag has a unique ID and exact size, Spectrum’s cameras use them like indoor GPS to measure exact distance and position. Cool real-world trick from Spectrum’s 2026 code: if the robot drives over a bump and tilts more than 5 degrees, their code ignores flat-ground camera guesses (MegaTag2) so the robot never thinks it randomly teleported!
  2. 🧠 Brain — The 50 Hz Feedback Loop (WPILib): 50 times every second, the robot checks error = distance - target.
    • If you just slam full speed forward/backward (Bang-Bang), the robot shoots past the target and shakes forever.
    • Instead, it pushes harder when far away and gentler when close (Proportional Push, Kp) and adds early braking against high speed (Brake, Kd) so it glides to a crisp stop without bouncing.
  3. 💪 Muscles — Smart Brushless Motors (Kraken X60 / CTRE Phoenix 6): The brain sends speed commands over a fast cable (CAN FD) to smart motors that spin the wheels accurately even when another robot bumps them.

Answer Questions 1–7, park the rover in Question 8, and click Submit Quiz to see your score and explanations right away!

Answered 0 / 8
Q1

A Spectrum 3847 competition robot needs to spot a target on the field, decide how fast to move, and spin its wheels. Which part acts as the robot's "Eyes"?

Q2

Around the competition arena, teams tape big black-and-white square codes called AprilTags on the walls. Why does Spectrum's camera look for AprilTags instead of plain painted walls?

Q3

Spectrum's main robot program (WPILib) runs its control loop 50 times every second (0.02 s). Why check sensors so often instead of once every 2 seconds?

Q4

The Spectrum robot wants to stop 20 cm from the scoring wall (target = 20). Right now its sensor reads 35 cm (distance = 35). Using error = distance - target, what is error and which way should it drive?

0 cm (Wall)TARGET 20 cm20 cmROBOT35 cm
Q5

Watch what happens when a rookie writes: "If distance > 20, drive FULL speed forward; if distance < 20, drive FULL speed backward." Why does this rule fail?

Q6

To drive smoothly, Spectrum uses proportional push (power = Kp * error) — push harder when far, softer when close. On a slick floor, if Kp is set too high, the robot still zooms past 20 cm and bounces. What fixes that bounce without making it crawl?

Q7

In Spectrum 3847's real 2026 robot code, when the robot drives over a bump and tilts more than 5 degrees, the code temporarily ignores flat-ground camera guesses (MegaTag2). Why is that smart?

Bump (> 5° tilt!)Camera aims too high!
Q8

Hands-On Mission — Park the Spectrum Rover! Adjust Push (Kp) and Brake (Kd), then hit Test Drive. Stop smoothly inside the green zone (18–22 cm) for 1 second without entering the red danger zone!

Distance: 45.0 cmSpeed: 0.0 cm/sAdjust sliders & press Test Drive