In my experience (using magnets and designing metal detection equipment), 3 inches is a very long way for coils that might only have a diameter of about 1 inch.

At 3 inches, if you used two similar magnets can you detect the repelling force (or attracting force)? If not then you cannot expect an electromagnet to produce anything like the same magnetic field so it won't work at that distance.

Lets start with a few basics here

$$V = N \dfrac{d}{dt} \Phi = N \cdot A_e \dfrac{d}{dt}B$$

Here \$ B \$ is flux density and for a typical ferrite running at 20kHz I would personally be designing for a flux density swing of around \$200 \text{ mT}\$

Assuming the input voltage is is 27 volts peak to peak maximum, 50% duty cycle @ 20kHz \$ dt = 25 \mu s\$

We now know everything except \$A_e\$ and \$N\$ so we can rearrange the above equation to find \$ N \cdot A_e\$

$$N \cdot A_e = \dfrac{V \cdot dt}{dB} = \dfrac{27 \cdot 25 \times 10^{-6}}{0.2} = 3.38 \times 10^{-3}$$

Note that this product is using Area in SI units (\$m^2\$) and the data sheet probably gives \$A_e\$ in \$\text{mm}^2\$ so we want \$3380000\text{mm}^2\$

In theory any combination of \$N \cdot A_e\$ will work but we note the more turns we have the more area is needed for the windings and the size of the wire we need is set by the current it needs to carry. A typical figure for wire size is to assume a maximum current density of \$ J= 4.5 \cdot \dfrac{\text{amp}}{\text{mm}^2}\$

Given our current of 7.5 amps this requires a wire diameter of \$ \sqrt{\dfrac{4 \cdot I}{J \cdot \pi}}\approx 1.5\text{mm}\$

So we can have a core with a lot of turns and small \$A_e\$ or few turns and big \$A_e\$ the most economic design will be the smallest core into which the turns will fit and if we assume that the wire packs poorly the area required for a single turn is \$A_t = (1.5 \text{mm})^2 = 2.25 \text{mm}^2\$

We can thus work out the area required for the winding \$ A_w = N \cdot A_t \Rightarrow N = \dfrac{A_w}{A_t}\$

Substituting this into the equation above

$$N \cdot A_e = \dfrac{A_w \cdot A_e}{A_t}=\dfrac{V \cdot dt}{dB} \Rightarrow A_w \cdot A_e = \dfrac{A_t\cdot V \cdot dt}{dB} = 7605000 \text{mm}^4$$

Where \$A_e\$ is the core effective area and \$A_w\$ is the available winding area taking into account the bobbin.

Now the coil you have designed will have much more inductance than you want so you will need to introduce an air gap. I usually don't try to calculate this but ask my winding house to gap the core, in the center leg to give me the inductance I want.

The boost converter can be designed in a similar way but I'd ask further advice as at such high frequencies skin and proximity effects are significant.

## Best Answer

There will be some interaction but very small compared to using a permanent magnet and a coil. The magnetic field produced by the coils will be individually weak hence no apparent interaction but the magnetic field strength from a permanent magnet will be massive in comparison and this is enough to produce a noticeable effect.

Have you tried winding the coils around an iron core to increase the flux density? Here's a formula that should give you some general idea about the force from an electromagnet acting on a piece of magnetizable metal: -

Force = \$(N\cdot I)^2\cdot 4\pi 10^{-7}\cdot \dfrac{A}{2g^2}\$

Detail above taken from here