Grove Inventor Kit For Microbit User Manual
Grove Inventor Kit For Microbit User Manual
Project Guide
Content
About Seeed Product Introduction 1-2
Diversified demands cannot be fully satisfied by mass production. The booming of open source hardware, 3D How to program Grove on micro:bit 3-4
printing, crowd-funding and global logistics creates a evolutional easy platform to hardware innovators. 1.Control the Light 5-6
Products are becoming democratized, as some of the consumers now calling themselves makers.
2.Sunshine micro:bit 7-8
Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By 3.LED Bar Control 9-10
working closely with technology providers of all scale, Seeed provides accessible technologies with quality, 4.Music Player 11-12
speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000
5.Gesture Recognition 13-14
pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up
with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups 6.Smart Guard 15-16
beyond. 7.Shake Counter 17-18
8.Ultrasonic Meter 19-20
9.Rainbow on The Desk 21-22
1.Grove Shield for micro:bit 2.Grove - Rotary Angle Sensor (P) 7.Grove – Gesture 8.Grove - 4-Digit Display
Because micro:bit does not have the There is a 10kΩ potentiometer in the This gesture sensor can recognize 9 This display is very suitable for
Grove interface, the Grove Shield for sensor, when you rotate the rotary knob, different gestures: left, right, up, down, displaying numbers. It can be used to
micro:bit adds 4 grove interfaces. This the value of this potentiometer will forwards, backwards, clockwise rotation, display time, distance, or display other
allows Grove modules to connect to the change. This causes the output signal to counter-clockwise rotation, and waving. You sensor’s values.
Grove shield and communicate with change linearly based on the angle can use this sensor to build very fun applica-
micro:bit. (0˚~300˚). You can use this rotary knob tions such as using your gestures to switch
to control volume, speed, or any other songs or adjust the music volume.
variable!
To program Grove modules with micro:bit, you will need to add the Grove PXT packages
Grove
to your makecode environment.
A Microsoft MakeCode package for
Seeed Studio Grove Module
Steps
1. Find the “Add Package” option at the bottom
Images
3.If you find “Grove” under “Math”, congratulations! You have successfully added the Grove Package !
Pins
Serial
Control
Add Package
3 4
Steps
1. Control the Light
Difficulty Level 3 1 Add an input block for on button A is pressed,
2.
and add a pin block digital write pin 0 to 1.
1
Description
In this demo, you will learn how to
use the 2 buttons on the micro:bit to
2 P0/P14
4. Click Download to transfer your code in your
micro:bit!
1 Add to this demo! Have button A turn the light on when pressed, and the off
when pressed again! you.
Part List 23. Add basic block pause(ms), change the value to
2
1 1x Grove - Light Sensor “10”.
2 1x Grove Shield for micro:bit
3 1x micro:bit 3. Click Download to transfer your code in your
micro:bit!
2
Description
4. Put your hand over the light sensor to block the
In this demo you will learn how to light, and see how the LEDs on micro:bit change.
use the LED bar graph on your P0/P14
micro:bit to show the current light
level. The stronger the light is, the
more LEDS will be turned on.
1 Try to change the “up to” value from 255 and see what happens
Difficulty Level bar. Replace the first value with pin block analog
read pin P0, and change the second value to “1023”.
Add basic block pause (ms) (100).
2
Part List
2. Hardware connection: Connect the rotary angle
1 1x Grove - Rotary Angle Sensor(P)
sensor to P0 port of micro:bit
2 1x Grove Shield for micro:bit 2
3 1x micro:bit
3. Click Download to transfer your code in your
2
micro:bit!
Description
In this demo you will learn to control 4. Rotate the knob on the rotary angle sensor and
the LEDs on your micro:bit with the P0/P14
see the change of LED Bar.
rotary angle sensor. The number of
LEDs turned on will increase or
decrease as you rotate the knob on
the sensor.
1 Try to change the “up to” value from 1023 to other numbers and see what will
happen. Is there a difference compared to Demo 2?
Part List 23. Add an input block for on button B is pressed, the
1 1x Grove - Speaker speaker executes start melody dadadum once. 2
2 1x Grove Shield for micro:bit
3 1x micro:bit
3. Click Download to transfer your code in your
Description
This demo will teach you how to use
2 P0/P14
micro:bit!
1 Try to use block on button A+B pressed and let the speaker play
other sounds or melodies.
Difficulty Level on Gesture Right, then add basic block show string, amend the
word to ‘Right’.
22. Add another block on Gesture Left, then add basic block
Part List show string, amend the word to ‘Left’.
1 1x Grove - Gesture 2
2 1x Grove Shield for micro:bit 33. Add another block on Gesture, choose “Clockwise”. Then
3 1x micro:bit choose basic block show icon, then choose “smile face”.
2
4. Hardware connection: Connect the Grove - Gesture to I2C
Description port of Grove shield for micro:bit
The gesture sensor can recognize 9 3
Right
different gestures, in this demo, you I2C 5. Click Download to transfer your code in your micro:bit.
will learn how to display the recog-
nized gesture name on micro:bit. 6. Use your hand to make different gesture in front of the
gesture sensor and see if the micro:bit can show the exact
1
gesture you are doing.
2
55. For “else”, add basic block show icon, choose the
Description
‘sad face’ icon.
The ultrasonic ranger is able to detect
66. Add basic blocks pause (ms) (100).
distance. In this demo, we will use the P0/P14
ultrasonic ranger to detect if the is too 7. Hardware connection. Connect the Grove – Ultrasonic Sensor to P0 port of Grove shield for micro:bit.
close. If something is too close the micro:bit
8. Click Download to transfer your code in your micro:bit.
will show a sad face on it.
Note: This project requires high input 9. Move your hand up and down in front of the Ultrasonic Sensor, when your hand is less than 10cm close to the sensor, the micro:bit will
voltage, please use the Grove Shield for show sad face.
micro:bit to power the circuit.
1 Try to change the warning distance or the warning icon. You may also place
this smart guardian on your favorite toy to protect it! protect it.
Description
In this demo, every time your shake
2 P0/P14
variable block ‘N’.
4
the micro:bt, it will increase the 4-Digital Display to P0 port of Grove shield for
number displayed by 1. micro:bit.
8888
6. Click Download to transfer your code in your
micro:bit.
1
:
7. Shake the micro:bit and you will find the number raises by 1 every time your shake the board.
Use this demo to play a game with you friend. See who can get
the highest score in 1 minute.
Part List 2
1 1x Grove - Ultrasonic Ranger 22. Add basic block forever, then add Grove block item
2 1x Grove - 4-Digit Display show number 0, rename ‘item’ to ‘Display’, replace ‘0’
3 1x Grove Shield for micro:bit
with Grove block Ultrasonic Sensor (in cm) at P0. 3
4 1x micro:bit
3
33. Add basic block pause (ms) (100),
Description P1/P15
In this demo, you will learn how to use the P0/P14 4. Click Download to transfer your code in micro:bit!
1
ultrasonic sensor to measure distance and
show the value on a display.
Note: This project requires high input :
8888 5. Use your hand to move up and down on the
ultrasonic ranger and read the value on the 4-Digit
voltage, please use the Grove Shield for display.
2
micro:bit to power the circuit.
6. Rotate the knob on the Grove – Rotary Angle Sensor and see if the rainbow flows.
4
closed and no light is deteced.
3 1x Grove - Red LED
4 1x Grove Shield for micro:bit P0/P14 55. Add basic block pause (ms) (100).
5 1x micro:bit
P1/P15 6. Hardware connection: Connect the speaker to P0 port,
Grove – light sensor to P1 port, Grove - Led to P2 port,
Description
1
P2/P16
7. Click Download to transfer your code in your micro:bit!
In this demo, you will make a guardian 4
to guard your secret stuff. If anyone 8. Open and close your secret box to see how it works.
opens the box, the guardian will flash a
2
red light and sound an alarm!
5
Try to use this creation to protect
your secrets in the drawer.
in Your Room grove block Ultrasonic Sensor (in cm) at P1, Rename “item” to
“distance” 2
Difficulty Level 2 Add logic block “if…then…”.For condition “if”, add logic block
0 ≥ 0, replace the first “0”with variable block distance, change
Part List another “0”to “60”.
1 1x Grove - Speaker 33. For ‘then’, add loop block repeat 4 times, the add a pin block 3
2 1x Grove - Ultrasonic Ranger digital write pin P2 to 1 and a music block play tone High C for 1
3 1x Grove - Red LED
4
beat. Add block pause (ms) (100), then add a pin block digital write
4 1x Grove Shield for micro:bit pin P2 to 0 and a block pause (ms) (100) after it.
5 1x micro:bit
P0/P14
P1/P15 44 Add the last basic block pause (ms) (100).
P2/P16
Description
3
5. Hardware connection: connect the Grove modules as
instructed in page 25. 4
This demo will help guard your room. If
anyone enters your room, the red LED will 6. Click Download to transfer your code in your micro:bit!
flash and the speaker will play an alarm. It is
similar to the previous demo, except that this
demo uses the ultrasonic sensor. If you have
1 7. Move your hand up and down in front of the ultrasonic
sensor and see if your guardian works well.
2
tried the demo, “smart guard”, this one
should be a piece of cake.
Note: This project requires high input Try to use this creation to protect your room.
voltage, please use the Grove Shield for
micro:bit to power the circuit.
4
5 1x Grove Shield for micro:bit block start melody (wedding) repeating once, or choose the
1x micro:bit
3
6
5
another melody you like.
I2C 5. Connect the hardrware pieces as instructed in page 27. 4
Description P0/P14
6. Click Download to transfer your code in your micro:bit!
This is a challenging level 4 demo;
Right
however, it is not as hard as it seems if 7. For gesture control, use your hand to move left and right
you have tried the “Gesture Recognition” above the gesture sensor, you will hear different music.
demo. This demo is very fun because 8. For banana control, use one of your hand to touch the banana that is connected to
you can use gesture and Bananas to GND, use another hand to touch the banana on P1 or P2, you will hear different music.
2
create an instrument. Show this demo to
1
your family and friends, they will be Try to use more bananas or gestures to play more sounds and
amazed by you! melodies you like. Maybe make a band with a friend!
Left
However if you drag an old hex file which uses old Grove package into the new project, the old package
will override the new one. In this case, you can update the package by following below steps.
1. Click the gear icon on the right top.
29 30
Grow the difference