Control of coils for stators and power motors