../../../../_images/seeed_grove.png

Grove Button Shields

Bridle supports a couple of different Button shields carrying Seeed Studio Grove System [1] connectors. Please download and read through the Preface - Getting Started [3] and Introduction to Grove [4] before use the product. Also have a look on the SiPEED Wiki page about the Grove standard interfaces [5].

Seeed Studio Button Shields

Variants and Versions

Here find the comparison between various variants and versions of Seeed Studio Button Shields:

Parameter

Button V1.2

Button V1.0

Release Date

Dec 2016

Apr 2011

Operation Voltage

3.3V or 5V

3.3V or 5V

Operation Temperature

-25℃ to +70℃

Grove Connectors

1

1

Digital Ports

1

1

Analog Ports

UART Ports

I2C Ports

SPI Ports

Grove Button V1.2 and V1.0

Overview

Model: 101020003, 111020000

The Grove Button V1.2 [6] or Grove Button V1.0 [8] is a momentary push button module in Grove form factor. With V1.2 an additional series resistance in the signal line was added and also the pull down resistance was reduced.

SEEED_GROVE_BUTTON

Pinout Diagram

The pinout of Grove Button following the Grove Digital Layout [2].

Pin

Function

Meaning

Shield

Board

1

Dn

Digital Signal

Output

Input

2

3

VCC

3.3V or 5V

Input

Output

4

GND

Ground

Hardware

The button outputs a HIGH signal when pressed, and LOW when released.

Utilization

Requirements

This shield can only be used with a development board or shield that provides a configuration for Grove System [1] connectors with Grove Digital Layout [2] and defines a device tree phandle grove_gpios as an Laced Grove Signal Interface.

Programming

Set -DSHIELD=grove_btn_dX when you invoke west build, wherein X corresponds to the ordinal number of a signal from the Laced Grove Signal Interface. For example:

  1. Grove Base Shield V2 on NXP MIMXRT1060-EVK for GPIO driven Button on Grove D4:

    Using west:

    west build -b mimxrt1060_evkb -p --shield "seeed_grove_base_v2 grove_btn_d4" -d build/helloshell-seeed_grove_base_v2-grove_btn_d4 bridle/samples/helloshell
    west flash -d build/helloshell-seeed_grove_base_v2-grove_btn_d4
    

    Using CMake and ninja:

    # Use cmake to configure a Ninja-based buildsystem:
    cmake -Bbuild/helloshell-seeed_grove_base_v2-grove_btn_d4 -GNinja -DBOARD=mimxrt1060_evkb -DSHIELD=""seeed_grove_base_v2 grove_btn_d4"" bridle/samples/helloshell
    
    # Now run the build tool on the generated build system:
    ninja -Cbuild/helloshell-seeed_grove_base_v2-grove_btn_d4 flash
    
  2. Grove Base Shield V1.3 or Grove Base Shield V1.2 on NXP MIMXRT1060-EVK for GPIO driven Button on Grove D4:

    Using west:

    west build -b mimxrt1060_evkb -p --shield "seeed_grove_base_v1 grove_btn_d4" -d build/helloshell-seeed_grove_base_v1-grove_btn_d4 bridle/samples/helloshell
    west flash -d build/helloshell-seeed_grove_base_v1-grove_btn_d4
    

    Using CMake and ninja:

    # Use cmake to configure a Ninja-based buildsystem:
    cmake -Bbuild/helloshell-seeed_grove_base_v1-grove_btn_d4 -GNinja -DBOARD=mimxrt1060_evkb -DSHIELD=""seeed_grove_base_v1 grove_btn_d4"" bridle/samples/helloshell
    
    # Now run the build tool on the generated build system:
    ninja -Cbuild/helloshell-seeed_grove_base_v1-grove_btn_d4 flash
    

References