A power supply circuit for supplying power to a camera module, wherein the camera module is detachably connected to a body of an electronic device, a power source module is arranged in the body, characterized in that, the power supply circuit comprises: a first power supply pin and a second power supply pin, wherein the first power supply pin and the second power supply pin are separately arranged on the body; a power source pin and a ground pin, wherein the power source pin and the ground pin are separately arranged on the camera module, and in a case that the camera module is mounted at a preset position of the body, the power source pin is in contact with one of the first power supply pin and the second power supply pin and the ground pin is in contact with the other of the first power supply pin and the second power supply pin; a first switch, wherein a first end of the first switch is connected to the first power supply pin, a second end of the first switch is connected to the power source module, a third end of the first switch is connected to a ground end, and the first switch is configured to control on/off the connection between the first power supply pin and the power source module, and control on/off the connection between the first power supply pin and the ground end, wherein the first power supply pin (P1N1) is either connected to the power source module or to the ground end as a result of said controls on/off performed by the first switch; a second switch, wherein a first end of the second switch is connected to the second power supply pin, a second end of the second switch is connected to the power source module, a third end of the second switch is connected to the ground end, and the second switch is configured to control on/off the connection between the second power supply pin and the power source module, and control on/off the connection between the second power supply pin and the ground end, wherein the second power supply pin is either connected to the power source module or to the ground end as a result of said controls on/off performed by the second switch; and a processor, wherein the processor is separately connected to the first switch and the second switch, and the processor is configured to control on/off of the first switch and the second switch. a first power supply pin and a second power supply pin, wherein the first power supply pin and the second power supply pin are separately arranged on the body; a power source pin and a ground pin, wherein the power source pin and the ground pin are separately arranged on the camera module, and in a case that the camera module is mounted at a preset position of the body, the power source pin is in contact with one of the first power supply pin and the second power supply pin and the ground pin is in contact with the other of the first power supply pin and the second power supply pin; a first switch, wherein a first end of the first switch is connected to the first power supply pin, a second end of the first switch is connected to the power source module, a third end of the first switch is connected to a ground end, and the first switch is configured to control on/off the connection between the first power supply pin and the power source module, and control on/off the connection between the first power supply pin and the ground end, wherein the first power supply pin (P1N1) is either connected to the power source module or to the ground end as a result of said controls on/off performed by the first switch; a second switch, wherein a first end of the second switch is connected to the second power supply pin, a second end of the second switch is connected to the power source module, a third end of the second switch is connected to the ground end, and the second switch is configured to control on/off the connection between the second power supply pin and the power source module, and control on/off the connection between the second power supply pin and the ground end, wherein the second power supply pin is either connected to the power source module or to the ground end as a result of said controls on/off performed by the second switch; and a processor, wherein the processor is separately connected to the first switch and the second switch, and the processor is configured to control on/off of the first switch and the second switch.