Home
// Digital Technology - Year 7 //

MICRO:BIT +
GROVE KITS

Over the next 10 sprouts you and a partner plug in real sensors, lights, speakers and displays, work through all 12 activities in the Grove booklet, then invent a gadget of your own and show it off at the Inventor Fair.

🌱 micro:bit V2
🧩 12 Activities
💡 Your Own Gadget
🎪 Inventor Fair
Inventor Kit
💻
MakeCode
Blocks only, in Chrome or Edge. Sign in every lesson so your projects save to the cloud. Gear icon, Extensions, search grove to add the Grove blocks.
🧩
Grove Inventor Kit
12 kits, one per pair: Grove Shield, Red LED, Light Sensor, Rotary dial, Speaker, Gesture sensor, Ultrasonic Ranger, 4-Digit Display and a 30-LED strip, plus a micro:bit V2.
⚠ micro:bit in the shield with the LED matrix facing up.
📘
The Booklet
Seeed's Grove Inventor Kit project guide: Activities 1 to 12. Its pictures are from 2017, so when the booklet and this page differ, build the blocks on this page.
💾
Saving
Signed in, MakeCode saves to the cloud as you edit: watch the cloud status at the bottom of the editor. Every Download also keeps a .hex in Downloads as a backup.
🧠
AI Assistant
copilot.microsoft.com - ask it what a sensor does or for gadget ideas. Check its answers against the blocks you can actually see.
⚠ AI often invents blocks - only use blocks that appear in MakeCode!
🎪
Inventor Fair
On the final day every pair demos its gadget while the class visits, tries it out and votes: Most Creative, Best Build, Most Useful and People's Choice.
// Primary Objective

With a partner, master every module in the Grove kit through the booklet's activities, then plan, build, test and demo a gadget of your own at the Inventor Fair.

Plug in sensors, lights, sound and displays on the Grove Shield
Code inputs, rules and outputs in MakeCode Blocks
Invent a gadget that combines two or more modules
Test it, fix it and demo it at the Inventor Fair
// Marking Key & Rubric
Criteria Seedling
(0-1)
Sprout
(2-3)
Bloom
(4)
Superbloom
(5)
Score
Booklet Activities Fewer than 4 activities working Some activities working with help Activities 1 to 11 working All working, plus Try it challenges and Level Ups / 5
Gadget Code Gadget does not run Runs with help, one input and one output Senses, decides with an if and acts, ports match the plan Extra feature added and you can explain every block / 5
Plan & Testing No plan or tests Plan card started, a few tests Plan card done, five tests logged, one fix made Every test passes after fixes, gadget reliable on the day / 5
Fair & Teamwork No demo, or very uneven teamwork Demo with help, name card started Clear demo and name card, both partners built and coded Confident demo, feedback given and acted on / 5
Total / 20
Scroll sideways to see every column
Sprout Log
Week 1
01
🔌 Plug In
▾
// SPROUT GOALSigned in to MakeCode with your school Microsoft account, the micro:bit in the Grove Shield the right way up, the Grove extension added, and booklet Activities 1 and 2 working.
  • Welcome, inventors! You and a partner will work through the Grove booklet one module at a time, then invent a gadget of your own and show it off at the Inventor Fair
  • Open makecode.microbit.org in Chrome or Edge. Click Sign In (the person icon, top right), choose Continue with Microsoft and log in with your school account (the sign-in card is in the Inventor Kit). Signed in, your projects save to the cloud and follow you to any laptop
  • Collect a kit with your partner. Push the micro:bit into the Grove Shield with its LED matrix facing up (Seeed warns the other way round can damage the board)
  • Click New Project and name it act1-light. Click the gear icon, choose Extensions, search grove and click the Grove tile. A purple Grove drawer appears. Add it to every new project
  • Do Activity 1 and Activity 2 below. For each one: plug in, build the blocks, flash, test, then have a go at Try it
  • Flash it: plug the micro:bit's own micro-USB port into the laptop, click Download, then drag the .hex file from Downloads onto the MICROBIT drive (if a connect box opens instead, follow its steps)
Activity 1 · Control the Light★★★★
Parts: Red LED in P0/P14
// Blocks: Activity 1 (build it, no Copy)
on button [A] pressed
    digital write pin [P0] to (1)
on button [B] pressed
    digital write pin [P0] to (0)
Try it: Make button A turn the light on when pressed, and off when pressed again.
Activity 2 · Sunshine micro:bit★★★★
Parts: Light Sensor in P0/P14
// Blocks: Activity 2 (build it, no Copy)
forever
    plot bar graph of (analog read pin [P0]) up to (255)
    pause (ms) (10)
Try it: Change the up to number from 255 and see what happens.
💡 HintYour blocks look a little different from the booklet's pictures? The booklet is from 2017 and MakeCode has changed since. Build the blocks on this page.
🔍 Google Image Search"grove shield for microbit"
// ASK AI"What is the difference between an input and an output on a micro:bit?"
02
🎛️ Turn & Tune
▾
// SPROUT GOALActivity 3 (a dial that fills the LED bar) and Activity 4 (a two-button music player) working, with both Try it challenges attempted.
  • Open MakeCode and check you are signed in. Last lesson's projects are under My Projects, each with a cloud icon
  • Analog means a number anywhere in a range. analog read pin [P0] gives a number from 0 to 1023, and the Rotary Angle Sensor turns about 300 degrees
  • New Project, add the Grove extension (gear icon, Extensions, search grove), then do Activity 3. Turn the knob slowly and watch the bar. Why does it fill differently from Activity 2?
  • New Project, add the Grove extension (gear icon, Extensions, search grove), then do Activity 4. Too loud or too quiet? Turn the small screw on the Grove Speaker. The micro:bit V2's own speaker plays the notes too
  • Swap jobs with your partner: whoever plugged in last time codes this time
  • Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
Activity 3 · LED Bar Control★★★★
Parts: Rotary Angle Sensor in P0/P14
// Blocks: Activity 3 (build it, no Copy)
forever
    plot bar graph of (analog read pin [P0]) up to (1023)
    pause (ms) (100)
Try it: Change up to from 1023 to other numbers. Is it different from Activity 2?
Activity 4 · Music Player★★★★
Parts: Speaker in P0/P14. Its small screw sets the volume
// Blocks: Activity 4 (build it, no Copy)
on button [A] pressed
    play [tone (Middle C) for (1 beat)] [until done]
on button [B] pressed
    play [melody [dadadum]] [in background]
Try it: Use on button [A+B] pressed to play another melody.
Booklet check: The booklet's start melody block has been replaced: use play [melody [dadadum]] [in background] from the Music drawer.
💡 HintBar not moving? Check the cable is in P0/P14, and the block says pin P0.
🔍 Google Image Search"grove rotary angle sensor microbit"
// ASK AI"What does analog mean when a micro:bit reads a sensor?"
// LEVEL UPAdd a third sound to your music player: press A and B together for a different melody.
// Blocks: A+B melody (build it, no Copy)
on button [A+B] pressed
    play [melody [birthday]] [in background]
Week 2
03
👋 Wave & Guard
▾
// SPROUT GOALActivity 5 (gestures shown on the micro:bit) and Activity 6 (a Smart Guard that frowns when you get closer than 10 cm) working.
  • The Gesture sensor sees your hand move. Seeed says it knows 9 gestures, including left, right, up, down and clockwise
  • Plug it into the I2C port (not P0, P1 or P2). New Project, add the Grove extension (gear icon, Extensions, search grove), then do Activity 5. Swipe your hand slowly over the sensor
  • The Ultrasonic Ranger sends out a sound too high to hear and times the echo. A longer echo means further away
  • For Activity 6, plug a second micro-USB cable into the shield's USB port too. Seeed says the ultrasonic needs the shield's own power
  • New Project, add the Grove extension (gear icon, Extensions, search grove) and do Activity 6. Move your hand towards it: sad face closer than 10 cm
  • Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
Activity 5 · Gesture Recognition★★★★
Parts: Gesture sensor in the I2C port
// Blocks: Activity 5 (build it, no Copy)
on Gesture [Right]
    show string ["RIGHT"]
on Gesture [Left]
    show string ["LEFT"]
on Gesture [Clockwise]
    show icon [happy]
Try it: Show more gesture names or icons on the micro:bit.
Activity 6 · Smart Guard★★★★
Parts: Ultrasonic Ranger in P0/P14, plus the shield's USB power
// Blocks: Activity 6 (build it, no Copy)
forever
    if <((V2)Ultrasonic Sensor (in cm) at [P0]) ≥ (10)> then
        show icon [happy]
    else
        show icon [sad]
    pause (ms) (100)
Try it: Change the warning distance or the icons, then guard your favourite toy.
Booklet check: Use the Grove block that starts (V2): Seeed added it for the micro:bit V2, which is what we use.
💡 HintSmart Guard always sad? Check the shield's USB power is plugged in and you used the (V2) block.
🔍 Google Image Search"grove gesture sensor hand swipe"
// ASK AI"How does an ultrasonic sensor measure distance?"
📤 Submit via ConnectYour Activity 6 Smart Guard .hex file
// LEVEL UPMake your gesture project react to a wave as well.
// Blocks: wave (build it, no Copy)
on Gesture [Wave]
    show icon [surprised]
04
🔢 Count & Measure
▾
// SPROUT GOALActivity 7 (a shake counter on the 4-Digit Display) and Activity 8 (an ultrasonic meter) working, plus a ruler test of five distances.
  • A variable is a named box that stores a number. The shake counter keeps its count in a variable called shakes
  • New Project, add the Grove extension (gear icon, Extensions, search grove). In Variables, click Make a Variable and name it shakes. The 4-Digit Display block makes a variable for the display: rename it display
  • Do Activity 7: Display in P0/P14. Shake the micro:bit and count along
  • For Activity 8 move the Display to P1/P15, Ultrasonic Ranger in P0/P14, and keep the shield's USB power in
  • Ruler test: hold a book at 5, 10, 20, 30 and 50 cm and write down what the display shows each time
  • Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
Activity 7 · Shake Counter★★★★
Parts: 4-Digit Display in P0/P14
// Blocks: Activity 7 (build it, no Copy)
on start
    set display to 4-Digit Display at [P0] and [P14]
    set shakes to (0)
on [shake]
    change shakes by (1)
    display show number (shakes)
    pause (ms) (100)
Try it: Play a game with a friend: who gets the highest score in 1 minute?
Booklet check: The booklet calls the variables Display and N. Any names work if you use the same ones everywhere.
Activity 8 · Ultrasonic Meter★★★★
Parts: Ultrasonic Ranger in P0/P14, 4-Digit Display in P1/P15, plus the shield's USB power
// Blocks: Activity 8 (build it, no Copy)
on start
    set display to 4-Digit Display at [P1] and [P15]
forever
    display show number ((V2)Ultrasonic Sensor (in cm) at [P0])
    pause (ms) (100)
Try it: Measure distances around your room.
📏 Ruler Test
Real distance5, 10, 20, 30 and 50 cm
Display showsWrite each reading next to the real distance
Way off?Check the (V2) block, the cable in P0/P14 and the shield's USB power, then point it at something flat
💡 HintReadings jump about? Point the sensor at something flat and wide like a book, not a pen.
🔍 Google Image Search"grove 4 digit display microbit"
// ASK AI"What is a variable in coding? Explain it like I'm 12."
// LEVEL UPAdd a reset button to the shake counter so a new player can start from 0.
// Blocks: reset (build it, no Copy)
on button [A] pressed
    set shakes to (0)
    display show number (shakes)
Week 3
05
🛡️ Guardians
▾
// SPROUT GOALActivity 9 (a rainbow LED strip moved by the dial), Activity 10 (a light-sensing bag guardian) and Activity 11 (an ultrasonic room guardian) working, and the booklet's Activities 1 to 11 finished.
  • New Project, add the Grove extension (gear icon, Extensions, search grove). The NeoPixel blocks come with it. Do Activity 9 and turn the dial
  • map turns one range into another: the dial's 0 to 1023 becomes 4 to 360, the colours of the rainbow
  • Do Activity 10: a box or bag guardian. When the lid opens, light gets in and the alarm goes off. Test it inside a pencil case
  • Do Activity 11 with the shield's USB power in. It is like Activity 10 but uses distance. Read the booklet check first: these blocks fix a mistake in the booklet
  • Tick off Activities 1 to 11 with your teacher
  • Got fruit in your bag? Try the bonus below. Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
Activity 9 · Rainbow on the Desk★★★★
Parts: Rotary Angle Sensor in P0/P14, LED strip in P1/P15
// Blocks: Activity 9 (build it, no Copy)
on start
    set strip to NeoPixel at pin [P1] with (30) leds as [RGB (GRB format)]
    strip set brightness (40)
forever
    strip show rainbow from (1) to (map (analog read pin [P0]) from low (0) from high (1023) to low (4) to high (360))
Try it: Change the numbers in map to make the rainbow flow more slowly.
Booklet check: The NeoPixel blocks come with the Grove extension. strip set brightness (40) is our extra, to keep the 30 LEDs easy on the eyes.
Activity 10 · Guardians of the Secrets in Your Bag★★★★
Parts: Speaker in P0/P14, Light Sensor in P1/P15, Red LED in P2/P16
// Blocks: Activity 10 (build it, no Copy)
forever
    set light to (analog read pin [P1])
    if <(light) ≥ (100)> then
        digital write pin [P2] to (1)
        play [tone (Middle C) for (1 beat)] [until done]
        pause (ms) (100)
        digital write pin [P2] to (0)
        pause (ms) (100)
    else
        digital write pin [P2] to (0)
    pause (ms) (100)
Try it: Protect your secrets in a drawer or pencil case.
Activity 11 · Guardians of the Secrets in Your Room★★★★
Parts: Speaker in P0/P14, Ultrasonic Ranger in P1/P15, Red LED in P2/P16, plus the shield's USB power
// Blocks: Activity 11 (build it, no Copy)
forever
    set distance to ((V2)Ultrasonic Sensor (in cm) at [P1])
    if <(distance) < (60)> then
        repeat (4) times
            digital write pin [P2] to (1)
            play [tone (Middle C) for (1 beat)] [until done]
            pause (ms) (100)
            digital write pin [P2] to (0)
            pause (ms) (100)
    pause (ms) (100)
Try it: Protect your room: point it at the door.
Booklet check: The booklet's blocks read the sensor on P2 and flash the LED on P0, but its picture plugs them into P1/P15 and P2/P16. These blocks match the picture.
💡 HintAlarm going off all the time? Show the reading with show number (light) to see the real numbers, then pick a better threshold.
// ASK AI"Why does a light sensor alarm work inside a closed box?"
📤 Submit via ConnectYour Activity 10 or 11 guardian .hex file
// 🍌 FRUIT BONUS: ACTIVITY 12Got a banana or other fruit? Do Activity 12: hold the GND fruit in one hand and touch the P1 or P2 fruit with the other.
Activity 12 · Magic Musician★★★★
Parts: Gesture sensor in I2C, Speaker in P0/P14, crocodile clips from the micro:bit's GND, 1 and 2 rings to pieces of fruit
// Blocks: Activity 12 (build it, no Copy)
on Gesture [Right]
    play [melody [dadadum]] [in background]
on Gesture [Left]
    play [melody [entertainer]] [in background]
on pin [P1] pressed
    play [melody [birthday]] [in background]
on pin [P2] pressed
    play [melody [wedding]] [in background]
Try it: Use more gestures or fruit, or make a band with a friend.
Booklet check: Step 2 of the booklet says Gesture Right twice. The second one is Left, as its picture shows.
06
📝 Gadget Plan
▾
// SPROUT GOALYour pair's gadget chosen from the Inventor Menu (or your own idea), with a plan card listing its input, rule, output and ports, and a labelled sketch.
  • Time to invent! A gadget combines at least two Grove modules to do something useful or fun
  • Read the Inventor Menu with your partner. Each one grows out of a booklet activity
  • Pick one, or invent your own that uses the same kind of blocks
  • Fill in the plan card: Input (what it senses), Rule (when it acts, with a number), Output (what it does) and the port for each module
  • Two modules cannot share a port. The Gesture sensor always goes in I2C
  • Sketch your gadget with labels and show your teacher
🌙 Night LightLight Sensor in, LED strip out. Glows when the room goes dark (starts from Activity 2 and 9).
🚨 Desk AlarmUltrasonic Ranger in, Speaker and Red LED out. Beeps when someone reaches for your stuff (Activity 11).
🌈 Mood LampRotary dial or gestures in, LED strip out. Turn or swipe to change the colour (Activity 5 and 9).
📏 Distance BuddyUltrasonic Ranger in, 4-Digit Display and Speaker out. Shows the gap and beeps when it is too close (Activity 8).
🎮 Shake BattleShake in, 4-Digit Display and Speaker out. Counts shakes, then plays a melody at a target score (Activity 7).
🍪 Snack GuardianLight Sensor in, Red LED, Speaker and Display out. Counts how many times the lid opens (Activity 10).
📝 Plan Card
InputWhich sensor or button, and which port
RuleWhen it acts, with a number: darker than 300, closer than 10 cm
OutputLED, strip colour, display, sound or icon, and which port
TestHow you will prove it works
💡 HintKeep it small enough to finish in three lessons. You can add extras later.
🔍 Google Image Search"microbit gadget invention sketch"
// ASK AI"Give me 5 fun gadget ideas for a micro:bit with a light sensor, LED strip and speaker"
📤 Submit via ConnectYour plan card and sketch
Week 4
07
🛠️ Build It
▾
// SPROUT GOALYour gadget wired to match its plan, and its core code (one input, one rule, one output) flashed and working.
  • Plug in every module your plan lists, in the ports your plan lists
  • New Project, add the Grove extension (gear icon, Extensions, search grove) named after your gadget
  • Start from the booklet activity closest to your idea. Here is an example that combines Activity 2's sensor with Activity 9's strip: a night light
  • Build in small steps: get the input showing a number first, then add the rule, then the output. Flash and test after each step
  • Flash it: plug the micro:bit's own micro-USB port into the laptop, click Download, then drag the .hex file from Downloads onto the MICROBIT drive (if a connect box opens instead, follow its steps)
  • Write one thing that works and one thing to fix. Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
// Blocks: night light example (build it, no Copy)
on start
    set strip to NeoPixel at pin [P1] with (30) leds as [RGB (GRB format)]
    strip set brightness (40)
forever
    set light to (analog read pin [P0])
    if <(light) < (300)> then
        strip show color [orange]
    else
        strip show color [black]
    pause (ms) (200)
💡 HintNothing happens? Check the cable is in the port your code names, the shield's USB power is in, and you flashed the newest .hex.
🔍 Google Image Search"microbit night light neopixel"
// ASK AI"Help me plan the blocks for a micro:bit gadget that uses a light sensor and an LED strip"
// LEVEL UPMake it easy to tune: pressing A shows the sensor reading. Change light to the variable your gadget uses.
// Blocks: show the reading (build it, no Copy)
on button [A] pressed
    show number (light)
08
✨ Add a Feature
▾
// SPROUT GOALOne new feature added to your gadget (a second module, sound, icon or display) and five tests logged.
  • Pick one feature: a second output (sound, icon, display), a second input (a button or gesture), or a better rule
  • Add it, flash and test
  • Plan five tests, such as dark and bright, near and far, button pressed fast and slow
  • Run each test and log it: what you did, what should happen, what did happen
  • Fix the test that failed, then run it again
  • Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
🧪 Test Log
TestWhat you did, e.g. torch on the sensor
ExpectedWhat should happen
ActualWhat did happen
Pass?Yes or no, then fix the no's
💡 HintChange one number at a time and test again. If you change three things at once, you won't know which one fixed it.
🔍 Google Image Search"microbit grove project kids"
// ASK AI"How can I test a micro:bit gadget to make sure it works every time?"
📤 Submit via ConnectYour gadget .hex and test log
// LEVEL UPAdd a start-up message: in on start, use show string with your gadget's name.
Week 5
09
🧪 Test & Polish
▾
// SPROUT GOALYour gadget tested again and working reliably, a name card made, and a 45-second demo rehearsed with another pair.
  • Run your five tests again. Everything should pass
  • Tidy the build: cables neat, modules taped or stuck to a cardboard base so they don't fall over
  • Make a name card (paper or Canva): gadget name, inventors, what it does and how it works (input, rule, output)
  • Rehearse a 45-second demo: what it is, show it working, explain the rule, one bug you fixed
  • Demo to another pair and swap one piece of feedback each
  • Signed in, MakeCode saves to the cloud as you work. Check the cloud status at the bottom of the editor before you pack up
🎤 45-Second Demo
10 sWhat it is and who it helps
15 sShow it working
10 sIts rule: if this, then that
10 sOne bug you fixed
💡 HintBefore the Fair: the right .hex on the micro:bit, power in, sensor pointing the right way.
🔍 Google Image Search"kids science fair invention table"
// ASK AI"Help me write a 45-second demo script for my micro:bit gadget"
// LEVEL UPMake a cardboard case or stand for your gadget, with holes for the sensors and cables.
10
🎪 Inventor Fair
▾
// SPROUT GOALYour gadget demoed live at the Inventor Fair, other gadgets tested and voted on, and your final files and reflection submitted.
  • Set up your table: gadget powered on, right program running, name card out
  • Half the pairs demo while the other half visit, then swap. Give every demo you visit one piece of feedback
  • Visitors try the gadgets: cover sensors, wave, shake, walk up close
  • Vote for the awards: Most Creative, Best Build, Most Useful and People's Choice
  • Write your reflection: what your gadget does, the hardest bug you fixed, and what you would add next
  • Submit your final .hex, a photo of your gadget and your reflection
💡 HintIf something breaks on the day, explain what it should do and why. Inventors stay calm.
// ASK AI"Help me write a short reflection about inventing a gadget with a micro:bit and Grove kit"
📤 Submit via ConnectYour final .hex, photo and reflection
🎪

The Inventor Fair Awaits

After 10 sprouts of plugging in, coding, testing and tinkering, every pair's gadget goes on show. Demo yours live, try everyone else's, then vote for the awards.

💡 One gadget each pair
⚡ Live demos
🏆 Four awards

Sign in, plug in // Sprout 01

SYSTEM ONLINE // YEAR 7 DIGITAL TECHNOLOGY GROVE KITS // 10 SPROUTS