Skip to content

Grove - Touch Sensor Tutorial

This tutorial shows how to use Grove-Touch Sensor module with Base Dock.

Requirements

Connect the hardware

Connect Grove-Touch Sensor to Port#1 on the Base Dock, and then insert the battery.

Build and Run the Example

The following steps show how to build and run the grove-touch_sensor example:

  1. Navigate to the example directory:

    # For nRF52832-MDK board
    $ cd ./base-dock/examples/grove-touch_sensor/nrf52832_mdk/armgcc
    
    # For nRF52840-MDK board
    $ cd ./base-dock/examples/grove-touch_sensor/nrf52840_mdk/armgcc
    
  2. Connect nRF52832-MDK or nRF52840-MDK to your PC.

  3. Build the example and flash to the board.

    $ make flash_all
    
  4. Start a terminal application like PuTTY or screen and establish a UART connection.

    $ screen /dev/cu.usbmodem142310 115200
    
  5. The sensor output will be printed on the console while touching or releasing.

  6. The board can be powered by the AA battery after removing the USB cable!

Create an Issue

Interested in contributing to this project? Want to report a bug? Feel free to click here: