---
title: "Pull-the-Plug: micro:bot Robotic Competition Challenge"
description: In this challenge, students will design, build, and program a robot and compete with other teams to retrieve the most targets from the playing field.
---

[STEAM Activities](https://activities.sparkfuneducation.com)

# [Pull-the-Plug: micro:bot Robotic Competition Challenge](https://activities.sparkfuneducation.com/pull-the-plug-microbot-competition-challenge)

 Written by [Carol Zafiropoulos](https://activities.sparkfuneducation.com/author/carol-zafiropoulos) | Aug 13, 2019 9:47:17 PM

**Activity:**

Pull-the-Plug: micro:bot Robotic Competition Challenge

**Grade Level:**

6 (Could work for 7 & 8 too)

**Time Required:**

Three 45-minute sessions

**Expendable Cost/Group:**

- Approx. $1.00 per group for straws, pipe cleaners, tape, etc. for robot arm construction
- One-time field construction cost: $15

**Group Size:**

2-3 students

**Subject Areas:**

science, technology

 

**Summary**

Robot battles with flame-throwers and buzz saws may be exciting to watch, but it’s just as exciting to face off against other robotics teams with something a little less destructive if you design the robot yourself. In this challenge, students will design, build, and program a robot which will compete against other teams to retrieve the most targets from the playing field. To succeed, they’ll need to learn about motor-speed matching, the physics of robot arms, and game strategy.

 

**Keywords**

robot, autonomous, criteria, constraint, robotic arm, lever, simple machines, servo, motor, motor-matching, speed, accuracy, iterative testing, competition

 

**Educational Standards**

*ISTE*

- Empowered Learner 1c
- Computational Thinker 5c

*NGSS*

- MS-ETS1-1
- MS-ETS1-4

 

**Prerequisite Knowledge**

The teacher should be familiar with the SparkFun [micro:bot](https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#introducing-the-microbot-kit). Students should have a basic knowledge of programming the micro:bit and downloading programs, such as having completed the “Nametag” and “Rock, Paper, Scissors” activities at [makecode.microbit.org](http://makecode.microbit.org). If they have not already used pins 0, 1, and 2 in previous projects, they will need instruction on where to find the pin commands in the programming environment.

 

If students do not have previous experience programming a servo, the teacher should provide them with the servo code provided in the successful example code. They will still need to adjust the values to fit their robot design. If a more in-depth understanding of servo use is needed, read through the [SparkFun micro:bot servo tutorial](https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#experiment-5-controlling-a-servo---battle-bot).

 

**Learning Objectives**

After this activity, students should be able to:

- Identify the basic parts of a robot (controller, power supply, movement, manipulators, sensors)
- Explain how relative motor speed affects how straight a robot moves
- Explain how both their robot arm and their own forearm function as third-class levers
- Identify criteria and constraints in an engineering challenge
- Use iterative testing to improve a design
- Program a micro:bot to perform basic autonomous tasks

 

**Materials List**

*Playing field:*

- pine grade stakes (2): $1.00/ea
- recycled corks (8): no cost
- pipe cleaners (8): $2.50/pack of 40
- PVC end caps (8): $0.75/ea
- screws (8): $5.00/pack of 100

*Materials for robot arm construction, may include:*

- drinking straws
- coffee stirrers
- pipe cleaners
- small cable ties
- index cards
- construction paper
- cardboard
- masking tape
- electrical tape
- transparent tape
- scissors

*Each group needs:*

- 1 SparkFun micro:bot (assembled) The line-follower attachment is not needed for this challenge
- 1 micro:bit
- 1.5V battery holder with micro:bit battery connector
- 1 download cable
- 1 computer or netbook with access to [makecode.microbit.org](http://makecode.microbit.org)
- 1 servo with horn attachments
- 1 [competition rules sheet](https://activities.sparkfuneducation.com/hubfs/EDU/Activities/2019/Pull%20the%20Plug/Pull%20the%20Plug%20-%20Competition%20Rules.pdf)
- 1 [“Movement and Manipulators” worksheet](https://activities.sparkfuneducation.com/hubfs/EDU/Activities/2019/Pull%20the%20Plug/Pull%20the%20Plug%20-%20Worksheet.pdf)

 

**Introduction / Motivation**

A lot of people think of Battle Bots or Robot Wars when they think about robot competitions. They’re certainly exciting (show this short [video](https://www.youtube.com/watch?v=NoRAeAOoDCc) of a VERY quick Battle Bot round) Think about how these robots know what to do. Are they controlled by programming or some other way? *(Take time to let multiple students try to explain. Answer: They are controlled by remote control, much like an RC car.)*

 

Some robotics competitions are autonomous. This means that the robot must complete the tasks without ANYONE controlling it. The robot can only rely on its programming to help it navigate and do things. There may not be any flamethrowers or spinning blades, but this type of competition can actually be a lot more challenging. *(Teacher shows this [video](https://www.youtube.com/watch?v=j5xIQse0PJI) from the beginning to the 1:37 mark.)*

Those college students had six months to get ready for their robotics competition. You will have two days.

 

Our challenge for the next couple of days will be an autonomous robotics competition. Your team’s robot will be going head-to-head with other team's robots to see who has the fastest, most accurate, and most strategic robot. Each team will start with exactly the same base robot and the same basic program. It’s up to your team to design and build a robot arm and customize your code to make your robot the best.

 

**Day 1**

 

*Background*

On the first day, students will learn about the basic parts of a robot, identify criteria and constraints for the engineering challenge, learn the rules of the robot game, and identify some of the key challenges they’ll have to overcome to make their robot successful. They will also begin to design and build their robot arm.

 

*Before the Activity*

- Build the playing field elements
- Assemble, program, and test one demonstration micro:bot using the starter code found in the "With the Students". Adjust the code as needed to successfully demonstrate the robot moving forward and backward. Don’t demonstrate an arm, just the basic driving base.
- Be ready to show the videos of students testing their robots. IMPORTANT NOTE: These students are testing their designs. During competition, there is only one robot on each side and the robots must start completely behind the baseline:
- Assemble micro:bot kits ahead of time. Students will be customizing these with robot arms, but the basic robot should already be assembled. Note: the line-following sensors are not used in this challenge. For more information on the micro:bot and assembly, see this [guide](https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all)
- Copy [worksheet](https://activities.sparkfuneducation.com/hubfs/EDU/Activities/2019/Pull%20the%20Plug/Pull%20the%20Plug%20-%20Worksheet.pdf) and [rules sheet](https://activities.sparkfuneducation.com/hubfs/EDU/Activities/2019/Pull%20the%20Plug/Pull%20the%20Plug%20-%20Competition%20Rules.pdf), and be sure to have the [teacher guide](https://activities.sparkfuneducation.com/hubfs/EDU/Activities/2019/Pull%20the%20Plug/Pull%20the%20Plug%20-%20Worksheet%20(Teacher%20Copy).pdf) on hand
- Organize the following items in a box or tub for each team of 2-3 students:
- Organize a materials station in the classroom so that students can have access to materials to build their robot arm. Materials may include:

*With the Students:*

1. Divide the class into groups of 2 or 3.
2. Present the Introduction/Motivation information and demonstration.
3. Introduce the students to the playing field.
4. Pass out the rules, one copy to each team.
5. Show the students one or both videos of other students testing their robots. Emphasize to the students that these videos showing testing, not the competition itself. During each round of the actual competition, teams will need to follow the rules. These practice videos do not show competition rounds. [https://youtu.be/gpIF4qW\_zCQ](https://youtu.be/gpIF4qW_zCQ) and [https://youtu.be/KtNFRmykmac](https://youtu.be/KtNFRmykmac)
6. As a class, read the information on the worksheet, “Movement and Manipulators”.
7. Watch one or both of the practice videos again. Ask students to identify problems that some of the robots are having. (examples: robot does not go straight, arm is not at proper level, arm throws the peg instead of simply lifting it).
8. Explain that all teams are starting with the same basic robot and program. It will be up to the teams to design and build the arm, test their robot several times, and adjust their code to fix problems with their robot. Provide the starter code either onscreen or as a downloadable file.
9. If students have not worked with servos before, explain that servos are not like the motors that turn the robot wheels. The robot wheel motors turn continuously. The robot arm servo does not turn in a full circle. Instead, it can be precisely moved from one position to another. The number in the “servo write pin” line of code tells the servo which position to move to. If teams try to move their servos too far, they can stop turning (see troubleshooting). For more information on servos, see the SparkFun servo [tutorial](https://learn.sparkfun.com/tutorials/hobby-servo-tutorial).
10. Distribute the robots and starter code to the teams. Before they begin designing their arm, they should make sure their robot can run the default code and move forward and back. Students will need to install the moto:bit extension in their make:code window (Click [here](https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#installing-the-motobit-extension-in-makecode) for instructions)

 

**Day 2**

 

*Before the Activity*

Create a round-robin competition bracket and post it in the classroom. Day 2 is for testing and Day 3 for the competition, but seeing the bracket on Day 2 will motivate the teams. You can create the bracket online using a website such as this [one](https://www.printyourbrackets.com/round-robin-generator.php).

 

*With the Students:*

1. Ask students to share successes and problems they have had so far designing their robot arm and adjusting their code.
2. Ask each team to report briefly what their team will be doing today to fix, improve, or innovate with their robot design.
3. Students will continue testing their driving and recording the motor settings on the “Movement and Manipulators” worksheet, as well as building and testing their robot arms.
4. By the end of the class period, students should be ready to begin competition on the following day. Remind students that they may continue to improve their robots between competition rounds. This is a very important part of real-life robotics competitions and teams can dramatically change the success of their robot with changes they make between rounds.

 

**Day 3**

 

*Before the Activity*

Post the round-robin competition bracket on the board or displayed on screen so that scores may be entered as the competition progresses.

 

*With the Students:*

1. Give students a short time to prepare their work area (their pit) and get their robot ready for competition. Remind them that they may continue to improve their robot between rounds.
2. Run the competition, following the “Pull-the-Plug” competition rules sheet handout.
3. Optional: Use the results to create a follow-up competition with an upper bracket (top half of the teams) and a lower bracket (bottom half of the teams). The winner of the lower bracket has the chance to face off against the winner of the upper bracket. Sometimes by this time, the teams have made enough changes on their robots that the lower-bracket winner can beat the upper-bracket winner. This option keeps all the teams involved and demonstrates the power of constant improvement and iterative testing. You will need more time to use this option, though.

 

**Troubleshooting Tips**

- *Wheels are turning the wrong way:*
- *Servo does not move/makes a clicking noise*

 

**Going Further**

- Explore the connection between human anatomy and levers. The three classes of levers and their equivalents in the human body are summarized in this [video](https://www.youtube.com/watch?v=d1wS_OlJzmI).
- Learn more about servos by reading the [SparkFun hobby servo tutorial](https://learn.sparkfun.com/tutorials/hobby-servo-tutorial/introduction).

[View full post](https://activities.sparkfuneducation.com/pull-the-plug-microbot-competition-challenge)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Carol Zafiropoulos"
  },
  "dateModified" : "2019-08-13T21:47:17.189Z",
  "datePublished" : "2019-08-13T21:47:17Z",
  "headline" : "Pull-the-Plug: micro:bot Robotic Competition Challenge",
  "image" : {
    "@type" : "ImageObject",
    "height" : 2042,
    "url" : "https://cdn2.hubspot.net/hubfs/2224003/pull%20the%20plug%20arm%203.jpg",
    "width" : 1865
  },
  "mainEntityOfPage" : "https://activities.sparkfuneducation.com/pull-the-plug-microbot-competition-challenge",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Activities for the STEAM Classroom"
  }
}
```