The invention provides a shooting module and an automatic focusing method thereof. The shooting module comprises a motor and a camera embedded in the motor, and further comprises a
ranging module, a control module and a drive module. The
ranging module comprises a transmitting unit, a receiving unit and a
processing unit, the transmitting unit is used for transmitting a
ray to an object to be shot, the receiving unit is used for receiving the
ray reflected by the object to be shot, and the
processing unit is used for calculating the
object distance between the shooting module and the object to be shot according to the time when the
ray is transmitted and received and sending the measured
object distance to the drive module. The control module is used for receiving the measured
object distance, determining a corresponding drive instruction according to the corresponding relation between the object distance and a
motor drive instruction, and sending the corresponding control instruction to the drive module. The drive module is used for outputting the drive instruction to the motor after receiving the control instruction, the motor drives the camera to the corresponding focusing position. According to the
camera module and the focusing method, the focusing time is short, and the focusing speed is high.