The invention relates to the field of micro-generators, and discloses an
electromagnetic generator, which comprises a coil substrate module, a power supply module, a power supply module, a power supply module, a power supply module and a power supply module, and is characterized in that the coil substrate module comprises a coil and a
magnet yoke; the
magnet can slide in a reciprocating mode in the horizontal direction under the influence of external movement, the
magnet is located above the coil base module, the
magnetic flux in the coil is adjusted when the magnet moves, and current is generated in the coil; and attraction force facing the magnet yoke in the vertical direction exists between the magnet yoke and the magnet. The
electromagnetic generator comprises the coil base module and the magnet, the magnet moves in the horizontal direction, and the
magnetic flux in the coil can be adjusted when the magnet reciprocates, so that current is formed in the coil,
kinetic energy is converted into
electric energy, and power generation is achieved. Moreover, the magnets and the magnet yokes are distributed up and down in the vertical direction, and the magnet yokes are arranged below the magnets, so that when the magnets are subjected to vertically-downward attraction force, when the magnets move in the horizontal direction, the operation stability of the magnets can be improved under the action of the attraction force of the magnet yokes.