An electrical connector, comprising: a first portion (201, 301) comprising a U-shape section and configured to conduct an electric current to a device, wherein the U-shape section has a downward portion configured to be soldered to a circuit board of the device; a second portion (202, 302) configured to slidingly engage with the first portion (201, 301), comprising at least one contact point (203, 204) configured to receive the electric current from a corresponding connector and to conduct the electric current to the first portion (201, 301), wherein the first portion (201, 301) comprises: two retaining spring arms (207, 208) extending upwards; wherein a space between the retaining spring arms (207, 208) is configured to receive the second portion (202, 302); and the retaining spring arms (207, 208) are configured to slidingly engage with the second portion (202, 302), characterized in that the second portion (202, 302) comprises: a first contact element having a first contact point; a second contact element having a second contact point; and a magnetic element configured between the first contact element and the second contact element, the magnetic element having poles aligned to generate a magnetic field to attract the corresponding connector to the first contact element and the second contact element, wherein each of the retaining spring arms (207, 208) is configured to slidingly engage with a respective one of the first and second contact elements (221, 222). a first portion (201, 301) comprising a U-shape section and configured to conduct an electric current to a device, wherein the U-shape section has a downward portion configured to be soldered to a circuit board of the device; a second portion (202, 302) configured to slidingly engage with the first portion (201, 301), comprising at least one contact point (203, 204) configured to receive the electric current from a corresponding connector and to conduct the electric current to the first portion (201, 301), wherein the first portion (201, 301) comprises: two retaining spring arms (207, 208) extending upwards; wherein a space between the retaining spring arms (207, 208) is configured to receive the second portion (202, 302); and the retaining spring arms (207, 208) are configured to slidingly engage with the second portion (202, 302), two retaining spring arms (207, 208) extending upwards; wherein a space between the retaining spring arms (207, 208) is configured to receive the second portion (202, 302); and the retaining spring arms (207, 208) are configured to slidingly engage with the second portion (202, 302), characterized in that the second portion (202, 302) comprises: a first contact element having a first contact point; a second contact element having a second contact point; and a magnetic element configured between the first contact element and the second contact element, the magnetic element having poles aligned to generate a magnetic field to attract the corresponding connector to the first contact element and the second contact element, wherein each of the retaining spring arms (207, 208) is configured to slidingly engage with a respective one of the first and second contact elements (221, 222). a first contact element having a first contact point; a second contact element having a second contact point; and a magnetic element configured between the first contact element and the second contact element, the magnetic element having poles aligned to generate a magnetic field to attract the corresponding connector to the first contact element and the second contact element, wherein each of the retaining spring arms (207, 208) is configured to slidingly engage with a respective one of the first and second contact elements (221, 222).