How Accelerometers Work - The Learning Circuit