Miniature sensors are key components for the 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, Wiegand sensor possesses the advantageous traits including changing-rate-independent output, low cost, and remarkable repeatability and reliability. 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 sensor 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 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 hence the pole piece of CoNiP magnets can successfully trigger the output of Wiegand pulse. In comparison, the output voltage of the triggered pulse acquired through the patterned CoNiP magnets is comparable to that by using the rare-earth magnets. Furthermore, both the volume (meanwhile the weight) of the Wiegand sensor and the EMI issue can be significantly reduced and mitigated by the CoNiP magnets.