SAMPLE CODES

NEW PROJECT

Creating a project from the start? Use this template with all the Maqueen code-blocks installed!

MOVE CHALLENGE 1

Move forward and turn left 

MOVE FORWARD

Make Maqueen move forward

MOVE CHALLENGE 2

Move in a Zig Zag forever 

MOVE CHALLENGE 3

Walk in a square forever

DANCE SEQUENCE

Make Maqueen do a little dance sequence. Edit the code to make your own sequence of moves for Maqueen!

SHOW LED's

Show a smiley face and a heart on the micro:bit’s LED display.

LED DIRECTIONS

Show an arrow on the LED display to show which way Maqueen is turning

FRONT LIGHT'S ON

Turn on Maqueen’s front lights when Maqueen is moving.

FLASH FRONT LIGHTS

Make Maqueen’s front lights flash on and off.

LINE FOLLOWER

Make Maqueen follow a path you draw on white paper with a think black line.

FLASH MOVING

Make Maqueen’s front lights flash on and off while moving. Uses variables and loops.

SINGING MAQUEEN

Make Maqueen sing a song.

MAQUEEN SIREN

Make Maqueen’s lights flash and play a siren like a fire engine.

READ ULTRASONIC DISTANCE

Show how far away an obstacle is in centimetres on Maqueen’s LED display.

REVERSE BUZZER & LIGHTS

Make Maqueen beep and flash lights when reversing.

OBSTACLE AVOIDANCE

Make Maqueen automatically avoid obstacles – set Maqueen free around the room!

MAQUEEN SIREN

Make Maqueen’s lights flash and play a siren like a fire engine.

READ ULTRASONIC DISTANCE

Show how far away an obstacle is in centimetres on Maqueen’s LED display.

REVERSE BUZZER & LIGHTS

Make Maqueen beep and flash lights when reversing.

BUZZER & LIGHT - TEMPLATE

Template for reversing buzzer and lights.

SUPER MAQUEEN

Obstacle avoiding maqueen upgraded with many other features that we learnt to code!

OBSTACLE AVOIDANCE TEMPATE

Template to make Maqueen avoid obstacles.

-

-

0207 183 1398

80 Sudbourne Road

London

SW2 5AH