Railway Patroller | Maqueen Mechanic Getting Started Guide Lesson 5

5-1. Project Introduction

If the Maqueen car detected that there is an obstacle on the way when patrolling, it uses the gripper to clamp and place it at a designated position. In this project, the line patrolling map and the assembled Maqueen Mechanic-Beetle need to be modified.

5-2. Hardware Preparation

projectImage

Note: the color of electrical tape can be selected freely except black.

5-3. Modification Steps

projectImage

5-4. Scene after Assembly

projectImage

Note: the direction that the Maqueen car should be placed is shown in the graph.

5-5. Flowchart

Here we use a flowchart to analyze what functions the entire program needs to realize.

projectImage

These are several situations the Maqueen will encounter when patrolling:

projectImage

5-6. Program Link

https://makecode.microbit.org/_2LzDMCR9CFJt

5-7. Program Screenshot

projectImage

5-8. Effect Display

When the Maqueen car detects obstacles in front of it during line-tracking, the gripper closes. Then it will transport the obstacle to the designated place and drop it, and continue driving along the line to detect if there are obstacles ahead.

projectImage
License
All Rights
Reserved
licensBg
1