Motion Element
Design a security system by attaching it to a door that gives a warning when the door opens. Create a fitness tracker that measures the number of footsteps walked.
The Plezmo Motion Element recognizes the movement of the object it is attached to. It can sense motion of the Element such as up/down, forward/back or tilt as well as tap or double tap.
What's Inside

Size: 40mm x 40mm x 10mm
Battery Life: approximately 4hrs
Key hardware components:
- Smart power module to regulate the power to the element and manage charging of the battery
- Intelligent BLE-module for communication with Apps
- Tricolor (RGB) LEDs for status indications
- Accelerometer to support basic features like double-tap to wake-up
- Long-lasting 250mAH Li-Polymer battery
- A high precision MEMS Inertial Motion Unit with a 3D digital accelerometer and a 3D digital gyroscope
Tilts

def motionTiltListener1():
# Do Something
pass
# Whenever Motion tilts one way : Left, Right, Front or Back, do something
Motion.onTilt(‘Motion’, motionTiltListener1, Tilt.LEFT)
Moves

def motionMovementListener1():
# Do Something
pass
# Whenever Motion sensor detection movement
Motion.onMotion(‘Motion’, motionMovementListener1, Movement.START)
Detects a step

def motionStepListener1():
# Do Something
pass
# Whenever Motion sensor detects a step
Motion.onStep(‘Motion’, motionStepListener1)