I am using PORTB.0 for the encoder, i am using interrupts to capture the pulses.
The relays do not control the motor directly but instead drive an AC Drive Inverter which creates the 3 Phase 330V AC required by the motor. The relays are the G5V-1 micro relays and are being driven by a ULN2003.
Bookmarks