Simulation of the analog part (without the accelerometer and the signal ...

Responsive image
source