A compact optical module configured for coupling with an image sensor component of an auto focus digital camera module for a camera module-enabled device, the device comprising a device processor, and the compact optical module comprising: an optical train comprising multiple lenses (L1-L5) including at least one movable lens; a housing configured to contain the optical train and coupled with the image sensor component; a MEMS actuator configured to move the at least one movable lens along an optical axis to focus a subject onto an image sensor of the image sensor component that is disposed at a focal plane of the optical train and that is coupled to a printed circuit to carry electronic signals that include digital images captured by the image sensor; an alignment compensation component comprising: a capacitance measurement component (1808, 2112) configured to determine capacitance values of the MEMS actuator as the movable lens is moving from one focus distance to a specific focus distance; a capacitance estimator configured to estimate an expected displacement of the movable lens to the specific focus distance; a closed loop control component comprising an adaptive control component; the alignment compensation component being configured to determine displacement of the movable lens based on the capacitance values determined by the capacitance measurement component, and the closed control loop component being configured to program the device processor to generate alignment compensation signals for dynamically adapting a position of the at least one movable lens along the optical axis based on the determined displacement and the expected displacement to account for the specific focus distance of the at least one movable lens, as the movable lens moves to the specific focus distance; and a pair of lens actuator control pads configured to couple to the printed circuit for receiving from the device processor lens actuator control signals including said alignment compensation signals. an optical train comprising multiple lenses (L1-L5) including at least one movable lens; a housing configured to contain the optical train and coupled with the image sensor component; a MEMS actuator configured to move the at least one movable lens along an optical axis to focus a subject onto an image sensor of the image sensor component that is disposed at a focal plane of the optical train and that is coupled to a printed circuit to carry electronic signals that include digital images captured by the image sensor; an alignment compensation component comprising: a capacitance measurement component (1808, 2112) configured to determine capacitance values of the MEMS actuator as the movable lens is moving from one focus distance to a specific focus distance; a capacitance estimator configured to estimate an expected displacement of the movable lens to the specific focus distance; a closed loop control component comprising an adaptive control component; the alignment compensation component being configured to determine displacement of the movable lens based on the capacitance values determined by the capacitance measurement component, and the closed control loop component being configured to program the device processor to generate alignment compensation signals for dynamically adapting a position of the at least one movable lens along the optical axis based on the determined displacement and the expected displacement to account for the specific focus distance of the at least one movable lens, as the movable lens moves to the specific focus distance; and a capacitance measurement component (1808, 2112) configured to determine capacitance values of the MEMS actuator as the movable lens is moving from one focus distance to a specific focus distance; a capacitance estimator configured to estimate an expected displacement of the movable lens to the specific focus distance; a closed loop control component comprising an adaptive control component; the alignment compensation component being configured to determine displacement of the movable lens based on the capacitance values determined by the capacitance measurement component, and the closed control loop component being configured to program the device processor to generate alignment compensation signals for dynamically adapting a position of the at least one movable lens along the optical axis based on the determined displacement and the expected displacement to account for the specific focus distance of the at least one movable lens, as the movable lens moves to the specific focus distance; and a pair of lens actuator control pads configured to couple to the printed circuit for receiving from the device processor lens actuator control signals including said alignment compensation signals.