Skip to content
LearnLoop
← Robotics

Obstacle avoider

See it

Look around, then choose

  • One sensor isn't enough. Robots use several.
  • Check the most important sensor first (the one in front).
  • In an if / else if chain, the first true check wins, so the order matters.
Front clear?
go forward
Left clear?
turn left
Neither
turn around