// Section 05
CAD, Build Solutions & Competition Proofing
Design the mount before you cut. Competition-proof it before you ship.
CAD Best Practices (Onshape)
- Use a mate with a 90° constraint between the sensor face plane and the robot frame plane. The mate enforces squareness — geometry, not eyeballing.
- Model the beam as a sketch line extending 600 mm from the sensor face. Check that it clears every mechanism position in every configuration.
- Set a fixed height reference in the assembly. Create a reference plane at your chosen sensor height and mate the sensor to it. This keeps the height consistent if you redesign the bracket.
- Design the bracket with adjustment slots, not fixed holes. A slotted hole lets you fine-tune angle ±5° without rebuilding the bracket — useful for dialing in at competition.
- Export a 1:1 PDF of the bracket to verify real-world fit before cutting metal. Check it against your actual C-channel.
ℹ️
Document the mount in your notebook. A CAD screenshot of the sensor mount, annotated with the angle constraint and beam clearance check, is exactly the kind of design evidence the rubric rewards. It shows the decision was deliberate, not accidental.
Simple Mounting Solutions
OPTION A
C-Channel + Collar Screws
- Mount the sensor to the face of a 1×2 or 2×2 C-channel using M3 screws through the sensor's mounting holes
- Attach the C-channel to the robot frame at 90° using a corner gusset
- Cheapest, lightest, most common solution — works for most front-mount configurations
- Add Loctite Blue on the two mounting screws after final angle verification
OPTION B
Standoff + Flat Plate Bracket
- Attach a small flat plate (1×5 or custom cut) to the robot frame
- Use standoffs at two corners to hold the sensor at a fixed offset from the plate
- Good for situations where the sensor needs to be inset from the robot frame edge — protects it from collisions
- Two-point contact via standoffs is more resistant to twist than a single screw
OPTION C
Slotted Adjustment Bracket
- Cut or order a bracket with 5 mm slotted holes on one axis
- Allows ±5° angle adjustment after mounting — useful if you find a small alignment error at competition
- Tighten fully after final position is confirmed; mark the final position with a marker so you can reset it if bumped
- Slightly heavier but adds the ability to fine-tune without tools beyond a 3/32" hex key
Competition-Proofing
- Loctite Blue on all sensor mount screws. Not the robot everywhere — just the sensor mount. It only needs one good hit to shift 5°.
- Protect the sensor face. Add a thin polycarbonate shield 10–15 mm in front of the sensor at an angle that doesn't cross the beam. This deflects robots and game objects without blocking the reading.
- Keep a spare sensor in your pit. Distance sensors fail from direct hits. A 5-minute swap beats a 45-minute fabrication session between matches.
- Mark the cable routing. Use a cable tie anchor at the frame to prevent the cable from being pulled when the robot turns or collides. A cable that can move is a cable that will move.
- Verify before every competition round. Add "distance sensor reads correctly against wall" to your match pre-check list. Takes 15 seconds.
✅
Build two identical sensor mounts. After the first one is verified good, build a second identical one. Keep it with a spare sensor in the pit box. If the primary gets damaged, the replacement takes 3 minutes to install and is pre-aligned.
When a sensor beam hits a surface at an angle instead of perpendicular, the measured distance is longer than the true gap. The relationship follows cosine: measured = true ÷ cos(θ). At 10° off-square the error is 1.5%. At 20° it reaches 6%. At a 300 mm target, a 10° mount angle adds 5 mm to your reading. At 20°, 18 mm — enough to reliably miss a scoring position.
This can't be fixed in code. The mount is the only fix.
🎤 Interview line: "We verified the sensor mount with a right-angle reference because angle error follows cosine — even a 10-degree offset shifts our stopping position by 5 mm. That's the difference between scoring and missing, so we treated mount squareness as a build quality requirement."
📝
Notebook color guide for sensor work:
■ Orange — Mount position diagram or CAD screenshot with sensor location annotated. Include your measured target distance.
■ Cyan — Consistency test data: target distance, measured stop positions, pass/fail results across n≥10 runs.
Common Mistakes
✖ Slight Angle from Eyeballing the Mount
Tightening the sensor to "looks about right" is the most common source of angle error. The human eye can't reliably detect 5°.
Fix: Use a machinist's square, speed square, or right-angle bracket as a reference during assembly. Tighten the screws while holding the reference in place.
✖ Sensor Blocked by Extended Mechanism
Tested with the intake retracted, worked fine. Then the intake extended during auton — sensor read the intake at 80 mm and stopped the robot in the middle of the field.
Fix: Always test with every mechanism at every position. Extend the arm, raise the lift, deploy the descorer. Watch the live reading during each motion — it should stay stable at the wall value throughout.
✖ Cable Management Not Done
Cable flops loose, gets caught during a match, pulls the sensor 8° to the left. Works in practice, fails at the worst time.
Fix: Route the cable with enough slack for all robot motions, secure it with a cable tie anchor within 2 inches of the sensor mount. Run the full autonomous once and watch whether the cable moves — if it does, anchor it better.
Key Takeaways
- Alignment is the only thing that matters. Square to the wall, level, clear path. Everything else is secondary.
- Design it in CAD first. A 90° mate constraint in Onshape takes 30 seconds and guarantees the angle. Eyeballing on the robot takes longer and fails more often.
- Test against all four walls. Not just the one you're targeting. If all four readings agree, the mount is right.
- Competition-proof before you leave the shop. Loctite, cable tie, spare sensor in the pit box.
- Document it. The mount decision — why you chose front vs side, how you verified the angle, what you measured — belongs in your notebook.