UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

GroveCollision Class

Module: grovecollision
  • ID: grovecollision
  • Name: Collision Sensor
  • Category: accelerometer
  • Manufacturer: seeed
  • Connection: gpio

The Grove Collision Sensor can detect whether any collision movement or vibration happens. It outputs a low pulse signal when vibration is detected.
grovecollision.jpg

Item Index

Methods

GroveCollision

(
  • pin
)
Number

Grove collision sensor constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

isColliding

() Boolean

Returns:

Boolean:

bool Defines whether something is colliding with sensor