Microbit Robotics & Engineering
Expert
45 mins
Teacher/Student led
+175 XP
What you need:
Chromebook/Laptop/PC
Microbit
Move Motor Car

Move Motor Pen Challenges

Using the pen slot in your Move Motor Car, can you program it to draw different shapes.

Teacher Class Feed

Load previous activity

    1 - Introduction

    The Move Motor comes with a pen slot that will fit a marker such as a sharpie. In this project we're going to put a marker in the slot and code the Move Motor to draw some shapes.

    You'll need the following for this project:

    1. Your Move Motor assembled with your Microbit attached.
    2. A marker such as a sharpie. You may need to test a few different markers to find one that fits.
    3. Lots of sheets of paper. The larger the sheets the more room you have to draw!
    You may also want to put some newspaper down under the sheets of paper you will draw on, just in case the car drives off the sheets of paper.

    2 - Create a new Microbit project

    Go to the https://makecode.microbit.org website, create a new project and add the kitronik-move-motor extension to your project.


    3 - Program a circle

    Try and work out how you could program your car to draw a circle when you press the A button on the Microbit. Think about what code you would need to use and then try create the code in your project. If you need a hint click on the button below.

    see the code

    Note that each car may be slightly different with different battery levels etc. so you may need to change and tweak the values in the blocks to get them to work better for your car.

    4 - Draw the circle

    Now let's test to see if it works.

    1. Download and send the code to your Microbit in the Move Motor.
    2. Unplug the USB cable.
    3. Put in the marker.
    4. Place your Move Motor on your sheet of paper.
    5. Turn your Move Motor on.
    6. Press the A button and your Move Motor should drive in a circle while the pen draws.

    5 - Program a square

    To make it move in a square we will get it to drive forward and turn 90 degrees. As a square has 4 sides we need to do this 4 times.

    Think about what code you would need to use to program the B button to draw a square and then try add the code to your project. If you need a hint click on the button below.

    see the code

    Note that each car may be slightly different with different battery levels etc. so you may need to change and tweak the values in the blocks to get them to work better for your car.

    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more