The invention relates to an electronic lock of a charging
pile, which is characterized in that a movable terminal and a static terminal are arranged on one side of a transmission rod, and a lug rotating along with the transmission rod is used for controlling the connection or disconnection of the movable terminal and the static terminal, so that the function of sending a locking or unlocking
signal by a microswitch is realized, and the situation that the microswitch is used for sending a
signal can be avoided; and meanwhile, the mounting flexibility of the static terminal and the movable terminal is higher, the static terminal and the movable terminal can be conveniently arranged in the charging
pile electronic lock, the size of the charging
pile electronic lock can be further reduced, the winding cost of the charging pile electronic lock is further reduced, and meanwhile the assembling flexibility of the charging pile electronic lock in the charging pile is improved.