Control of coils of servomotors and micromotors, actuators and relays