Hi, Hasher
You have two options to drive a servo with PoKeys device - with a servo driver (with your Gecko servo driver) or directly with PoKeys with external power switches.
Gecko servo driver accepts STEP and DIR signals which PoKeys can provide via integrated Pulse engine. This feature must be activated first for your device - send the serial number of your PoKeys device to support@poscope.com in order to obtain the activation number.
For example on how to use the pulse engine, see the Example_PulseEngine in the VB.NET examples folder.
To drive the servo directly, take a look at the PoBlocks - it is a free small PLC that is already integrated into the latest PoKeys firmware. You can easily construct the logic for a simple servo driver that will be executed on the device itself. If needed, you can use PID block that is already supported by the firmware.
Regarding the wiring:
* wire the motor encoder to pins 1 and 2 and enable fast encoder for these pins (via PoKeys configuration software).
* wire the motor to dual half-bridges and connect the input of those bridges to pins 17 and 18 (pins with PWM output)
Then, in PoBlocks, use Encoder block to read the value of the encoder and PWM outputs to drive the motor.
Regards,
Matevž