Low-Cost Smart Capacitive Sensors for Position and Speed Measurement