Free virtual lab

Obstacle-avoiding rover

A 2WD rover drives forward, and when the ultrasonic sensor on its servo head sees something close it stops, looks both ways and turns to the clearer side.

  1. Mount the motors on the chassis and wire them to the L298N
  2. Put the HC-SR04 on the SG90 servo
  3. Power the motors from the LiPo, the logic from the board
  4. Drive it in the physics sim

Loading the lab…

Try free. Guest progress lasts while this page is open. Register to save on this device.