grove_inventor_kit_for_microbit_user_manual.pdf

(19601 KB) Pobierz
Grove Inventor Kit for micro:bit
Project Guide
About Seeed
Diversi ed demands cannot be fully satis ed 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.
Seeed is a hardware innovation platform for makers to grow inspirations into di erentiating products. By
working closely with technology providers of all scale, Seeed provides accessible technologies with quality,
speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000
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
beyond.
Content
Product Introduction
How to program Grove on micro:bit
1.Control the Light
2.Sunshine micro:bit
3.LED Bar Control
4.Music Player
5.Gesture Recognition
6.Smart Guard
7.Shake Counter
8.Ultrasonic Meter
9.Rainbow on The Desk
10.Guardians of The Secrets in Your Bag
11.Guardians of The Secrets in Your Room
12.Magic Musician
1-2
3-4
5-6
7-8
9-10
11-12
13-14
15-16
17-18
19-20
21-22
23-24
25-26
27-28
29-30
@seeedstudio
How to update the Grove package
5.Grove – Light Sensor V1.2
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!
6.Grove - WS2812 Waterproof LED
Strip - 30 LEDs 1 meter
This is a RGB LED strip. RGB means
each LED can change colors and You
can control each LED separately to
show different colors. It is also water-
proof so you are free to use it outdoor
without worrying about rain.
Grove Starter Kit for micro:bit
1.Grove Shield for micro:bit
Because micro:bit does not have the
Grove interface, the Grove Shield for
micro:bit adds 4 grove interfaces. This
allows Grove modules to connect to the
Grove shield and communicate with
micro:bit.
2.Grove - Rotary Angle Sensor (P)
There is a 10kΩ potentiometer in the
sensor, when you rotate the rotary knob,
the value of this potentiometer will
change. This causes the output signal to
change linearly based on the angle
(0˚~300˚). You can use this rotary knob
to control volume, speed, or any other
variable!
7.Grove – Gesture
This gesture sensor can recognize 9
different gestures: left, right, up, down,
forwards, backwards, clockwise rotation,
counter-clockwise rotation, and waving. You
can use this sensor to build very fun applica-
tions such as using your gestures to switch
songs or adjust the music volume.
8.Grove - 4-Digit Display
This display is very suitable for
displaying numbers. It can be used to
display time, distance, or display other
sensor’s values.
3.Grove – Speaker
The speaker can emit a variety of
sounds such as a car horn, a doorbell,
and an alarm. By changing the frequen-
cy of the input signal, you will get
different sounds. You can also adjust
the loudness by changing the angle of
the cross screw.
4.Grove – Ultrasonic Ranger
This sensor sends out an ultrasonic
sound. Based on when (or if) the sound
returns to the sensor it can tell how far
away an object is. This can be used to
build projects that output different
effects such as lights or sounds by
changes in distance.
9.Grove - Red LED
This is a simple red LED. The
maximum
brightness
can
be
controlled by the onboard potentiom-
eter that integrates grove interface.
Note
Some projects with more than 1 Grove modules demands
relatively more current, in order to make those Groves
function better, we recommend using the USB port on Grove
Shield for micro:bit to power the circuit.
1
2
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.
Steps
1. Find the “
Add Package
” option at the bottom
Add Package…
github.com/seeed-studio/pxt-grove
?
Grove
A Microsoft MakeCode package for
Seeed Studio Grove Module
Images
Pins
Serial
Control
Add Package
2. Now you can add Grove Packages by:
1) Searching the keyword ‘
Grove’
2) Simply enter project URL:
github.com/seeed-studio/pxt-grove
3.If you nd “
Grove
” under “Math”, congratulations! You have successfully added the Grove Package !
3
4
1. Control the Light
Di culty Level
Part List
1
2
3
3
Steps
1
2. Add an input block for
on button A is pressed,
and add a pin block
digital write pin 0 to 1.
1
1x Grove - Red LED
1x Grove Shield for micro:bit
1x micro:bit
2
3. Add an input block for
on button B is pressed,
and add a pin block
digital write pin 0 to 0.
2
Description
In this demo, you will learn how to
use the 2 buttons on the micro:bit to
turn the LED on and o .
2
3. Hardware connection: Connect the Grove – Red
LED to P0 port of Grove Shield for Micro:bit.
P0/P14
4. Click
Download
to transfer your code in your
micro:bit!
5. Press
button A
and
button B
to see if the code
works as expected.
1
Project 1 :
Control the Light
Add to this demo! Have button A turn the light on when pressed, and the off
when pressed again! you.
5
6
Zgłoś jeśli naruszono regulamin