Playing with Grove Components:

As you noticed, Grove Inventor kit for Micro:bit offers you additional components to realise, slightly complex and closer to real-life, applications. We will provide you a walk-through on how you could use these components in your programs.
This chapter helps you learn interfacing these ‘new’ components with Micro:bit and use them in your applications. As a stepping stone, intentionally, we can have kept the exercises to a very basic level.
Enjoy the ride…
Exercise 1 – LED Control: Curriculum Mapping
Victorian Curriculum Mapping
Digital Technologies
- Creating Digital Solutions (Year 3 and 4): Define simple problems, and describe and follow a sequence of steps and decisions involving branching and user input (algorithms) needed to solve them [VCDTCD023]
- Creating Digital Solutions (Year 5 and 6): Develop digital solutions as simple visual programs [VCDTCD033]
- Creating Digital Solutions (Year 7 and 8): Develop and modify programs with user interfaces involving branching, iteration and functions using a general-purpose programming language [VCDTCD043]
- Creating Digital Solutions (Year 7 and 8): Evaluate how well student-developed solutions and existing information systems meet needs, are innovative and take account of future risks and sustainability [VCDTCD044]
Mathematics:
- Number and Algebra (Year 7): Design and implement mathematical algorithms using a simple general-purpose programming language [VCMNA254]
- Number and Algebra (Year 8): Use algorithms and related testing procedures to identify and correct errors [VCMNA282]
Science:
- Science Understanding (Year 5 and 6): Energy from a variety of sources can be used to generate electricity; electric circuits enable this energy to be transferred to another place and then to be transformed into another form of energy; exploring circuit features, for example, wires and switches, and electrical devices, for example, light globes, LEDs and motors [VCSSU081]
- Science Understanding (Year 9 and 10): Electric circuits can be designed for diverse purposes using different components; investigating the properties of components such as LEDs, and temperature and light sensors; exploring the use of sensors in robotics and control devices [VCSSU130]
Learning Objectives
After completing this exercise, you will be able to:
- Connect LED (Red) module with Micro:bit using Grove shield
- Identify functional block used to read or write an input/output pin of Micro:bit
- Program Micro:bit to turn LED on / off by pressing button A and B
Task List
Program the Micro:bit to:
- Switch on the LED (from Red LED module) with button A press
- Switch off the LED when button B is pressed
Hint:
You may want to use following functional blocks:

Solution:
You can verify your code with the solution presented here. Your code may look like this:

Check out our Grove collection www.pakronics.com.au/microbit
Also Grove eco-system can be found here www.pakronics.com.au/grove
Exercise 2 – Light Meter: Curriculum Mapping
Exercise 3 – Bar graph with
You can find trial or complete online course for the microbit – https://www.pakronics.com.au/collections/microbit-online-course