Patent attributes
A wireless charger for charging an electronic device includes a holder with a primary coil and a number of holding coils fixed thereon and a resilient member sleeved thereon. The wireless charger further includes a sensing module, a storing module, a comparing module and an adjusting module. The sensing module detects each current value of the holding coils when the wireless charger is powered on. The storing module stores each current value of the holding coils from the sensing module and predetermines a reference current value for each holding coil. The comparing module compares the current value with the reference current value to determine whether the current value equals to the reference current value. The adjusting module changes the current values to the reference current values when the current value is not equal to the reference current value to adjust an angle of the secondary coil relative to the primary coil.