pyupm_collision module

class pyupm_collision.Collision(pin)[source]

Bases: object

API for the Collision Sensor.

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.

C++ includes: collision.hpp

isColliding()[source]

bool isColliding()

bool Defines whether something is colliding with sensor