Question: If the left light sensor senses white, slightly turn right. 2 . If the right light sensor senses white, slightly turn left. 3 . Otherwise,

If the left light sensor senses white, slightly turn right.
2. If the right light sensor senses white, slightly turn left.
3. Otherwise, continue moving forward until both sensors detect white at
the end of the path.
4. Reverse the robot direction by making a 180\deg turn.
5. Repeat steps 1-3 once.
6. Stop the mBot and give a light or sound signal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!