A method for producing a coil assembly includes overlaying printed circuit traces on a core. The traces include terminals for coupling to conductive connections on a base on which the coil assembly is to be mounted. Two or more wires are wrapped around the core so as to define two or more coils, wrapped in different, respective directions. The ends of the wires are coupled to the printed circuit traces, so as to connect the wires through the traces to the terminals.