I'm trying to think of the easiest/best way to steer a compass needle using a PCB. Specifically, placing a PCB of some kind under a compass (assume no shielding between the PCB and the compass) and electrically steering the needle in the direction I choose using a circuit on the board.
I feel like this is best achieved simply by conducting current on some sort of pattern-like trace on the board, but for some reason I'm having trouble visualizing the kind of pattern this would take, and how to calculate the current needed in a given pattern to produce a sufficient field to drive the needle.
Can anyone point me to the right idea with the kind of pattern/approach that would realize this sort of actuation and how I can calculate requisite current for the given solution/pattern?
Thanks!