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.
- Mount the motors on the chassis and wire them to the L298N
- Put the HC-SR04 on the SG90 servo
- Power the motors from the LiPo, the logic from the board
- 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.

