Chapter 2: Import the MakeCode Graphical LibraryChapter 1: Introduction to Bluguard Maqueen Lite Bluguard Maqueen is a micro:bit plug-and-play module allows children to learn graphic programming in a most entertaining and fun way. It is nurturing children's logical thinking and programming skills.
Bluguard Maqueen Lite Chapter 2: Import the MakeCode Graphical Library Chapter 2: Import the MakeCode Graphical Library 1. Click the link https://makecode.microbit.org, enter the makecode graphical online programming platform and create New Project. (Note: Loading will be slow the first time, please wait patiently) 2.
Page 8
Bluguard Maqueen Lite 4. Import completed. Ver 1.0...
Bluguard Maqueen Lite Chapter 3: Read Ultrasonic Distance Chapter 4: Light Operated SpriteChapter 3: Read Ultrasonic Distance In this chapter, users will learn how to use ultrasonic to read the distance of ultrasound. The ultrasonic detects the obstruction in front and the distance will be displayed on the dot- matrix screen in centimeters.
Bluguard Maqueen Lite Chapter 4: Light Operated Sprite Chapter 5: Flash LED LightsChapter 4: Light Operated Sprite The car does not move in the darker light, and as the flashlight illuminates the LED, the vehicle's forward speed begins to increase as the intensity of the light increases.
Page 11
Bluguard Maqueen Lite For condition ‘else’, slot in the block ‘motor [all] stop’ (Maqueen). Click Download to transfer your code to micro:bit. Flash the light towards micro:bit and Maqueen will move forward else will stop. Program Link : https://makecode.microbit.org/_XieA1wc05XHu Ver 1.0...
Bluguard Maqueen Lite Chapter 5: Flash LED Lights Chapter 6: Motor ControllingChapter 5: Flash LED Lights This chapter will teach you how to control the left and right LEDs flash alternately at an interval of 500 milliseconds. Meanwhile, the buzzer makes two different tones with the flashing frequently.
Page 13
Bluguard Maqueen Lite Duplicate 2 units block ‘LEDlight [ ] turn [ ]’. Change it to ‘LEDlight [left] turn [OFF]’, ‘LEDlight [right] turn [ON]’. Add the block ‘play tone [Middle E] for [1 beat]’ (Music) ‘pause (ms) [500]’ (Basic). Click Download to transfer your code to micro:bit.
Bluguard Maqueen Lite Chapter 6: Motor Controlling In this chapter, you will learn how to control the Maqueen moves forward 1 second, turn right 1 second, turn left 1 second, move backwards 1 second and turn right 1 second. Step of Makecode Graphical Program: Chapter 7: Ultrasonic Obstacle AvoidanceChapter 6: Motor Controlling Add the block ‘forever’...
Page 15
Bluguard Maqueen Lite Duplicate 2 units block ‘motor [ ] move [ ] at speed [ ]’. Change it to ‘motor [left] move [Forward] at speed [0]’ ‘motor [right] move [Forward] at speed [255]’. Next is duplicate block ‘pause (ms) [1000]’.
Page 16
Bluguard Maqueen Lite Duplicate 2 units block ‘motor [ ] move [ ] at speed [ ]’. Change it to ‘motor [left] move [Backward] at speed [255]’ ‘motor [right] move [Backward] at speed [0]’. Next is duplicate block ‘pause (ms) [1000]’.
Bluguard Maqueen Lite Chapter 7: Ultrasonic Obstacle Avoidance This demo will show you how to use the ultrasonic sensor to constantly detect the distance between the Maqueen and the obstacle ahead, if it is smaller than 30cm, Maqueen randomly turns left or right to avoid the obstacle.
Page 18
Bluguard Maqueen Lite Go to (Variables) and make a variable ‘strip’. For condition ‘then’, add the block ‘set [strip] to [0]’ (Variables). Replace the ‘[0]’ with ‘pick random true or false’ (Math). Add the block ‘if…then’ (Logic). For condition ‘if’, add the block ‘[0] =...
Page 19
Bluguard Maqueen Lite For condition ‘then’, add the block ‘motor [left] move [Forward] at speed [255]’ (Maqueen), ‘motor [right] move [Forward] at speed [0]’ (Maqueen) and block ‘pause (ms) [800]’ (Basic). Duplicate the block of 2 conditional block ‘if’. Change the value ‘[true]’ to ‘[false]’, ‘[255]’...
Page 20
Bluguard Maqueen Lite Slot in block step 9 as a new condition. For condition ‘else’ is add the block ‘motor [all] move [Forward] at speed [255]’ (Maqueen). Click Download to transfer your code to micro:bit. Program Link : https://makecode.microbit.org/_7Ay2qVeUUPi0 Ver 1.0...
Bluguard Maqueen Lite Chapter 8: RGB Colourful Breathing LEDs Chapter 9: Line TrackingChapter 8: RGB Colourful Breathing LEDs In this chapter, you will learn how to let the RGB ambient lights at the bottom of the Maqueen show a variety of colours to present a breathing effect.
Page 22
Bluguard Maqueen Lite Add the block ‘repeat [255] times…do’ (Loop). Add the block ‘change [R] by [1]’ and ‘change [B] by [-1]’ (Variables). Next, add the block ‘[strip] show color [red]’ (Neopixel) and replace ‘[red]’ to ‘[red[R]green[G]blue[B]’ (Neopixel…more). At last add the block ‘pause(ms)[1]’...
Page 23
Bluguard Maqueen Lite Finally add steps 4, 5 and 6 in block ‘forever’ (Basic). Click Download to tranfer your code to micro:bit. Program Link : https://makecode.microbit.org/_4DWCPH6ezaRs Ver 1.0...
Bluguard Maqueen Lite Chapter 9: Line Tracking Chapter 10: Let’s PartyChapter 9: Line Tracking This chapter will let the Maqueen drive along the black line on the track map. If you don’t have a track map, you can make one using black adhesive tape.
Page 25
Bluguard Maqueen Lite For condition ‘then’, add the block ‘motor [all] move [Forward] at speed [200]’ (Maqueen). To create condition ‘else if…then’, click on the symbol ‘+’. Just click on it. Duplicate the block of 1 condition ‘if’ ‘[----] and [----]’.
Page 26
Bluguard Maqueen Lite Add the block ‘motor [left] move [Forward] at speed [200]’ ‘motor [right] move [Forward] at speed [0]’ (Maqueen). Create 2 condition ‘else if…then’, click on the symbol ‘+’. Ver 1.0...
Page 27
Bluguard Maqueen Lite Duplicate the block of condition ‘else if’ ‘[----] and [----]’. Slot in condition ‘else if’ change the value ‘[0]’ to ‘[1]’. Add the block ‘motor [left] move [Forward] at speed [200]’ ‘motor [right] move [Forward] at speed [0]’...
Page 28
Bluguard Maqueen Lite Add the block ‘motor [left] move [Forward] at speed [0]’ and ‘motor [right] move [Forward] at speed [200]’ (Maqueen). Create 4 condition ‘else if…then’, click on symbol ‘+’. Duplicate the block of 3 condition ‘else if’ ‘[----] and [----]’.
Page 29
Bluguard Maqueen Lite Add the block ‘motor [left] move [Forward] at speed [0]’ and ‘motor [right] move [Forward] at speed [200]’ (Maqueen). To remove the condition ‘else’, click on the symbol ‘ ‘. Just click on it. Click Download to transfer your code to micro:bit.
Bluguard Maqueen Lite Chapter 10: Let’s Party In the last chapter, you will learn to Press Button A to light up RGBs, Press Button B to move Maqueen and Press Button A and B to make Maqueen play sound. Step of Makecode Graphical Program: Load the LED strip library from Extensions →...
Page 31
Bluguard Maqueen Lite ‘repeat [4] times…do’ (Loop) in the block ‘on button [A] pressed’ (Input). Slot in the block Add the block ‘[strip] show color [red]’ (Neopixel) and add the block ‘pause(ms)[500]’ (Basic). Add the block ‘[strip] show color [orange]’ (Neopixel) and add the block ‘pause(ms)[500]’...
Page 32
Bluguard Maqueen Lite ‘repeat [2] times…do’ (Loop) in the block ‘on button [B] pressed’ (Input). Add the block Add the block ‘motor [left] move [Forward] at speed [120]’ (Maqueen) and the block ‘pause(ms)[3000]’ (Basic). Add the block ‘motor [all] stop’...
Page 33
Bluguard Maqueen Lite Add the block ‘play tone [Middle G] for [1 beat]’ (Music) and duplicate it. Add the block ‘play tone [Middle A] for [1 beat]’ (Music) and duplicate it. Add the block ‘play tone [Middle G] for [2 beats]’...
Need help?
Do you have a question about the Maqueen Lite and is the answer not in the manual?
Questions and answers