Why don't you make the circuit in such way that every pin controls one coil?would be easier to program I think?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16