Miniature sensors are key components for applications in the Internet of Things (IoT), wireless sensor networks, autonomous vehicles, smart cities, and smart manufacturing. As a miniature and self-powered magnetic sensor, the Wiegand sensor possesses advantageous traits including changing-rate-independent output, low cost, and remarkable repeatability and reliability. A typical Wiegand sensor requires hard magnetic pole pieces that provide external fields for triggering voltage outputs that are called Wiegand pulses. However, the wire-shaped sensing element of Wiegand sensors is the critical issue that limits the design, selection, and adoption of the external triggering magnets. Currently, the widely used pole piece materials are rare-earth magnets. However, adopting rare-earth magnets brings strong stray fields, causing an electromagnetic interference (EMI) problem. In this study, patterned CoNiP hard magnets were electrodeposited on flexible substrates through microfabrication. Origami magnetization was utilized to control the resultant stray fields and thus the pole piece of CoNiP magnets can successfully trigger the output of the Wiegand pulse. In comparison, the output voltage of the triggered pulse acquired through the patterned CoNiP magnets is comparable to that acquired by using the rare-earth magnets. Furthermore, both the volume (and hence the weight) of the Wiegand sensor and the EMI issue can be significantly reduced and mitigated, respectively, by the CoNiP magnets.