Grove Inventor Kit for micro:bit 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 printing, crowd-funding and global logistics creates a evolutional easy platform to hardware innovators. Products are becoming democratized, as some of the consumers now calling themselves makers. How to program Grove on micro:bit 3-4 1.Control the Light 5-6 2.
5.Grove – Light Sensor V1.2 6.Grove - WS2812 Waterproof LED Strip - 30 LEDs 1 meter The light sensor is used to detect how much bright light is. This sensor is a photo-resistor which controls the current. Based on how much light the senor detects, you could turn volume up or down, sound an alarm, or increase how fast an LED blinks! This is a RGB LED strip. RGB means each LED can change colors and You can control each LED separately to show different colors.
How to program Grove on micro:bit To program Grove modules with micro:bit, you will need to add the Grove PXT packages to your makecode environment. Add Package… ? github.com/seeed-studio/pxt-grove Grove A Microsoft MakeCode package for Seeed Studio Grove Module Steps 1. Find the “Add Package” option at the bottom Images Pins 3.If you find “Grove” under “Math”, congratulations! You have successfully added the Grove Package ! Serial Control Add Package 2.
1. Control the Light 3 Difficulty Level 2 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 3.2 Add an input block for on button B is pressed, and add a pin block digital write pin 0 to 0. Part List 1 Steps 1x Grove - Red LED 1x Grove Shield for micro:bit 1x micro:bit 2 Description In this demo, you will learn how to use the 2 buttons on the micro:bit to turn the LED on and off. 3.
2. Sunshine micro:bit 3 Difficulty Level Part List 1x Grove - Light Sensor 2 1x Grove Shield for micro:bit 3 1x micro:bit 1 Steps 12. 1 23. Add basic block pause(ms), change the value to “10”. 2 Add basic block forever, then add LED block plot bar graph of…..up to, amend the block to be plot bar graph of Light Sensor up to 255. 3.
3. LED Bar Control 3 Difficulty Level Part List Steps 1 Add basic block forever, then add Led block plot 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 2.
3 4. Music Player Difficulty Level Part List Steps 12. Add an input block for on button A is pressed, the speaker executes play tone middle C for 1 beat. 23. Add an input block for on button B is pressed, the speaker executes start melody dadadum once. 1x Grove - Speaker 1x Grove Shield for micro:bit 3 1x micro:bit 1 1 2 2 2 Description This demo will teach you how to use the 2 buttons on micro:bit to play music. 3. Click Download to transfer your code in your micro:bit! P0/P14 3 4.
5. Gesture Recognition 3 Difficulty Level 2 3 11. If you have added the ‘Grove Package’ successfully, add block on Gesture Right, then add basic block show string, amend the word to ‘Right’. 1 22. Add another block on Gesture Left, then add basic block show string, amend the word to ‘Left’. Part List 1 Steps 1x Grove - Gesture 1x Grove Shield for micro:bit 1x micro:bit 33. Add another block on Gesture, choose “Clockwise”. Then choose basic block show icon, then choose “smile face”.
6. Smart Guard 3 Difficulty Level 2 3 1 Add basic block forever, then add logic block if…then…else… 22. For condition ‘if’, add logic block 0≥0 33. If you have added the Grove Package successfully, replace the left ‘0’ with Grove block Ultrasonic Sensor (in cm) at P0. Change another “0” to “10”. Part List 1 Steps 1x Grove - Ultrasonic Ranger 1x Grove Shield for micro:bit 1x micro:bit 44. For ‘then’, add basic block show icon, choose the ‘happy face’ icon.
3 7. Shake Counter Difficulty Level Part List 1 2 3 Steps 11. Add basic block on start, then add variable block set item to 0, rename ‘item’ to ‘Display’. If you have added the Grove Package successfully, add block 4-Digit Display at (P0) and (P14). 22. Add input block on shake, then add variable block change item by 1,rename ‘item’ to ‘N’. 1x Grove - 4-Digit Display 1x Grove Shield for micro:bit 1x micro:bit 2 Project 7 : Shake Counter 2 33.
8. Ultrasonic Meter 4 Difficulty Level Steps 12. Add basic block on start, then add variable blocks set item to 0, rename ‘items’ to ‘Display’. If you have successfully added the Grove package, replace “0”with Grove block 4-Digit Display at P1 and P15. Part List 22. Add basic block forever, then add Grove block item show number 0, rename ‘item’ to ‘Display’, replace ‘0’ with Grove block Ultrasonic Sensor (in cm) at P0.
4 9. Rainbow on The Desk Difficulty Level Steps 1. To use 'Grove - WS2812b LED strip', you need to add the 'neopixel' package first. 22. Add basic block on start, then add variable block set item to 0, rename ‘item’ to ‘Rainbow, replace ‘0’ with block Neopixel at pin (P1 ) with (30 ) leds as RGB.
10. Guardians of The Secrets in Your Bag 5 Difficulty Level Part List 1 2 3 4 5 1x Grove - Speaker 1x Grove - Light Sensor 1x Grove - Red LED 1x Grove Shield for micro:bit 1x micro:bit Description In this demo, you will make a guardian to guard your secret stuff. If anyone opens the box, the guardian will flash a red light and sound an alarm! 4 3 P1/P15 1 22. Now we add a logic block if...then..
5 11. Guardians of The Secrets in Your Room Steps 11. Add basic block forever, then add variable block set item to and grove block Ultrasonic Sensor (in cm) at P1, Rename “item” to “distance” Difficulty Level 1 2 2 Add logic block “if…then…”.For condition “if”, add logic block 0 ≥ 0, replace the first “0”with variable block distance, change another “0”to “60”. Part List 1x Grove - Speaker 1x Grove - Ultrasonic Ranger 3 1x Grove - Red LED 4 1x Grove Shield for micro:bit 5 1x micro:bit 33.
6 12. Magic Musician Steps Difficulty Level GND 22. In the Grove Package, add on Gesture Right to trigger the speaker start melody (entertainer) repeating (once). Part List 1 2 3 4 5 6 1x Grove - Gesture 1x Grove - Speaker 4x Crocodile Clip 4x Bananas 1x Grove Shield for micro:bit 1x micro:bit Description This is a challenging level 4 demo; however, it is not as hard as it seems if you have tried the “Gesture Recognition” demo.
How to update the Grove package Just like the driver of your computer, the Grove package also needs updating. So how to update the Grove package on your side? Here are 2 ways. The first way is starting a new project, then you will find that there is no Grove package in the console, Add Grove package using the way showed in page 3 to 4 and you will have the latest Grove package. 3. Find the “Explorer” under micro:bit. Click it. 4. Scroll down and find the Grove package, click the refresh icon.
Grow the difference