FSM#2: How to… structure your FSM: a general overview
From theory, we define a Finite State Machine (FSM) as an abstract machine that can be in exactly one of a finite number of states at any given time, and is composed of a START state, a STOP state and a series of states, conditions and transitions. But how is this definition practically implemented in LSM6DSO sensor?
For the LSM6DSO sensor, FSM is intended to detect a specific gesture: there are up to 16 independent state machines, both XL and G (and external MAG sensor) data can be used, and a number of interrupts and source registers for the event detection management are available.
The activity recognition spans from Free Fall, to Glance, to Flip up and down, passing through Pickup, Shake and Wrist Tilt.
If you are interested in a detailed explanation of the LSM6DSO FSM structure, that enables you to develop your own machine, please follow the next posts!

