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.

Collision Class

Module: collision
  • ID: collision
  • Name: Collision Sensor
  • Other Names: Grove Collision Sensor
  • Category: accelerometer
  • Manufacturer: seeed
  • Connection: gpio

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

Item Index

Methods

Collision

(
  • pin
)
Number

Collision sensor constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

isColliding

() Boolean

Returns:

Boolean:

bool Defines whether something is colliding with sensor