Skip to main content

Grove - Starter Kit for mbed

About mbed and Grove

mbed is an open source development platform for rapid prototyping with microcontrollers. It provides free software libraries, hardware designs and development tools to build projects very easily and fast.

Grove is a modular electronics platform for quick prototyping that does not involve soldering or bread boarding.

About this kit

This kit is designed for you to get started with mbed as soon as possible. It contains many plug-n-play Grove modules to start exploring the mbed world. One goal is to have fun and build confidence with hardware and software in the journey.

tip
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/)

Get Started


All the things to get started are:

Hello, world

1.Click this linkto signup or login mbed, then you will get the mbed online compiler.

2.Import the program and open main.cpp, you will see the code.

3.On mbed online IDE, click "Compile" of the top toolbar (or use CTRL + D) to compile the code and the binary file - Arch_GPIO_Ex1_LPC11U24.bin.

4.Connect the Arch board to the computer and long press the button, a USB drive named CRP DISABLD will pop up.

5.Delete firmware.bin and copy Arch_GPIO_Ex1_LPC11U24.bin to the USB drive.

6.Quick press the button, the program will be running, an LED will be blinking.

#include "mbed.h"

/* Configure a GPIO pin as output for controlling a LED. 'led' is user assigned name and
'LED1' is a internal name given to a port pin P1_8 in this Arch platform. */
DigitalOut led(LED1);

int main()
{
while(1) {
led = 1; // Switch ON the LED.
wait(0.5); // Wait for 0.5 Seconds.
led = 0; // Switch OFF the LED.
wait(0.5); // Wait for 0.5 Seconds.
}
}

The above program uses DigitalOut class and wait() function of mbed C/C++ SDK. LED1 is an pseudonym of I/O pin P1_8 and is labelled D1 in the Arch board. The state of LED1 is changed by writing either 0 or 1 to led. The wait() function produces a delay in seconds. The state of the led is continuous toggled every 0.5 seconds inside the endless while() loop.

More details of DigitalOut can be find in DigitalOut page of mbed handbook Similarly the wait() function is documented in wait page.

Fruit Piano

A piano built with a basket of fruit, a microcontroller and a computer.

The idea is from Makey Makey, but uses different hardware and software. An mbed enabled microcontroller with USB is used.

Hardware

  • An Arch board
  • A basket of fruit
  • A computer with AC power
  • Some wires

Software

  1. Click this link to import the program to mbed online compiler.
  2. Compile the code and download the binary file - Fruit_Piano_LPC11U24.bin.
  3. Connect the Arch board to the computer and long press the button, a USB drive named CRP DISABLD will pop up.
  4. Delete firmware.bin and copy Arch_GPIO_Ex1_LPC11U24.bin to the USB drive.
  5. Quick press the button to run the program
  6. Wire some apples or bananas to A0 - A5 (P0_11 - P0_14, P0_16, P0_22) pins of the Arch board
  7. Open Fruit Piano and play.

More, Step By Step


Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...