1 of 65

Maqueen Workshop for Kids

by https://www.vorburger.ch and work colleagues (anon)

This is the English version; there is also a German translation.

2 of 65

Agenda

  1. What is a computer?
  2. Your own (tiny) computer!
  3. What is a robot?
  4. Assemble your robot!
  5. Make your robot move!
  6. Follow the line!
  7. What’s next?

3 of 65

What is a computer?

LeT’s play a quiz... Is this a computer?

4 of 65

5 of 65

6 of 65

7 of 65

8 of 65

9 of 65

Google Home Mini

10 of 65

11 of 65

Fitbit

12 of 65

13 of 65

14 of 65

~10’ into

15 of 65

YOUR own new (tiny) computer

16 of 65

Our robot “brains”

Important: Hold the controller board by the sides!

17 of 65

Our robot “brains”

18 of 65

Let’s get started!

  1. Navigate to https://makecode.microbit.orgThere are lots of potential beginner projects, but we’ll skip them
  2. Click on New Project

  • Give it any name you want

19 of 65

Let’s build a dice roller

  1. Click on Input
    1. Drag On Shake block to work area
  2. Click on Basic
    • Drag show number into on-shake
  3. Click on Math
    • Drag pick random 0 to 10�into show number
  4. Change the numbers to 1 and 9

20 of 65

Try your program in the simulator

21 of 65

Let’s program the controller

  1. Unpack micro:bit
  2. Plug in the USB cord into the computer and into micro:bit
  3. Press [...] button next to Download in your project
  4. Do you have a Connect Device button?
    • Yes? Click Connect Device and follow the instructions. Then, click download.
    • No? Click Download, which should download a microbit-*****.hex file. Drag that file into the MICROBIT drive.
  5. Yellow LED will start blinking
  6. When the blinking stops the controller is programmed
  7. Play with your electronic dice roller

It should appear as a disk (MICROBIT)

Hold micro:bit by the edges!�(But later hold the robot on wheels.)

Do not unplug the USB cord while the light is blinking!

22 of 65

23 of 65

More sides

Fewer sides

24 of 65

Changing the possible dice rolls

  • Click on Variables
    • Click on Make a Variable…
    • Name it maxDiceValue
    • Drag set maxDiceValue to 0 into on start block
    • Change 0 to 6
  • Click on Input
    • Drag On Shake block to work area
  • Click on Basic
    • Drag show number into on-shake
  • Click on Math
    • Drag pick random 0 to 10 into show number
  • Change 0 to 1
  • Drag maxDiceValue from Variables to replace 10

25 of 65

Program buttons

26 of 65

~30’ into

27 of 65

What is a robot?

28 of 65

29 of 65

30 of 65

DIY ?

DIY = “Do-It-Yourself”

Let’s build one!

31 of 65

32 of 65

Your Maqueen robot

33 of 65

What can Maqueen “see”

Infrared light sensor

Ultrasonic sensor

interface

Infrared line-tracking sensors

34 of 65

What can Maqueen show

Right LED

Left LED

Line-tracking status LEDs

Color LEDs (RGB)

Power on

35 of 65

What can Maqueen do

Buzzer to make sounds

Left motor

Right motor

36 of 65

How do we control Maqueen

Buzzer switch

On/off switch

micro:bit interface

37 of 65

Let’s assemble the robot step by step

  1. Assemble wheels and tires.
  2. Find the battery holder.
  3. Find double-sided tape.
  4. Glue one side of the tape as shown

DO NOT HURRY!

WAIT FOR EVERYONE!

Tape goes here

38 of 65

Assembly continued...

  1. Plug in the battery cord into the board
  2. Glue the battery holder to the wheel motor cases
  3. Plug in the ultrasonic sensor

DO NOT HURRY!

WAIT FOR EVERYONE!

39 of 65

Finish assembly

  1. Plug in the micro:bit board with LEDs facing towards the ultrasonic sensor
  2. Insert batteries

DO NOT HURRY!

WAIT FOR EVERYONE!

40 of 65

Battery Insertion⚠️

You HAVE to make sure the batteries are inserted with the correct +/- “Polarity”.

If you put them in the wrong way, the robot will 👩‍🚒 BURN and Google will 🧨 EXPLODE.

Actually not really (the latter, but the former could). Ask your Table Lead to help or check!

41 of 65

Configure MakeCode

  1. Click on +Extensions
  2. Click on the “maqueen” picture (below)
  3. You now have new Maqueen blocks

42 of 65

Simple first program

When button A is pressed then:

  • Turn on the lights
  • Turn on one motor

Download and transfer to micro:bit:

  1. Switch the robot off!
  2. Connect USB cable (You can leave the micro:bit in the robot)
  3. Download
  4. Unplug USB cable
  5. Switch robot on

43 of 65

~90’ into

44 of 65

Second program, with the ultrasonic sensor

Did it fall off the table? ;-)

Stop the motor and turn off the lights when its ultrasonic sensor sees something is within 10cm.

45 of 65

Navigate!

Make your robot wander around the room without crashing into anything.

Instead of stopping when it sees something in the way, what should it do?

Other ideas:

  1. Use the LED lights as turn/reverse signals.
  2. Increase and decrease speed when buttons pressed or near an obstacle.
  3. Make it play some music when it moves.
  4. Make it stop and play rock paper scissors with you when it hears a loud sound.
  5. ANY other ideas you have... it’s yours now!

46 of 65

Example solutions

Navigating around obstacles example solution & demo.

Changing speed around obstacles example solution.

47 of 65

Idea: Make Lights blink!

48 of 65

~120’ into

49 of 65

Follow the Yellow brick road

Black line

50 of 65

Our mission: get Maqueen to follow a route

51 of 65

What do we do?

52 of 65

What do we do? Go right!

53 of 65

What do we do?

54 of 65

What do we do? Turn left!

55 of 65

What do we do?

56 of 65

What do we do? Go straight!

57 of 65

What do we do?

58 of 65

What do we do????? Need to find our way!

59 of 65

What do we do????? Run in a circle!

60 of 65

Putting it all together

  • If both sensors are on the black strip�→ Go straight until we find the edge
  • If exactly one sensor is on the strip we know where the road is�→ Turn to try to get both sensors on the line
  • If no sensor is on the strip�→ We are lost�→ Try going in a circle to find the line

61 of 65

Jump start with the code

Hint: don’t set the speed to high!

62 of 65

Maqueen: More things, to try out at home!

63 of 65

Appendix

64 of 65

Simple follow-the-line solution

You’ll have to adjust the speed for your robot.

65 of 65

Possible alternative follow-the-line solution

You’ll have to adjust the speed for your robot.