A polyaxial bone screw assembly includes a threaded shank body having an upper capture structure, a head and an open, compressible retainer collar. A per-processor readwrite lock is established for each of one or more processors. A microprocessor reads the phase angle and adjusts the duty cycle or current based on the error signal of the control loop.