IR sensor reading shifts under gym lights, ambient bias correction?

HC-SR04, MPU6050, IMUs, GPS, LiDAR — distance, motion, and position sensing.
Post Reply
jm_robotics
Posts: 12
Joined: Tue May 05, 2026 10:51 am

Sumo bot uses Sharp GP2Y0A21 for opponent detection. Bench test: solid 10-80cm range, predictable readings.

Competition venue: bright LED ceiling lights. Sensor readings shift by ~15cm equivalent. Bot thinks opponent is closer than reality, drives off ring chasing ghosts.

Approaches I am considering:
  • Modulated 38kHz IR with carrier filter (rebuild detection logic)
  • Periodic ambient sampling (read without emit, subtract from with-emit reading)
  • Optical baffle around sensor lens
Which actually works in practice? Anyone with real venue experience under bright LEDs?
Post Reply