1️⃣ – Basic motor control. 2️⃣ Avoid an Obstacle – If distance < 10 cm → reverse + turn. 3️⃣ Follow a Black Line – If left sensor sees black → turn left; if right sensor sees black → turn right.
Here are 3 must-try mBot script ideas: 🔹 – Use the IR sensors to stay on track. 🔹 Obstacle Avoidance – Ultrasonic sensor + loop = auto-navigation. 🔹 Light Chaser – Make your mBot follow a flashlight beam.
✔️ Line follow ✔️ Obstacle avoid ✔️ Remote control