Iconasys has updated the FTDI SDK to allow testing of stepper motors.
*This SDK is related to testing Iconasys Silver and Platinum Series Turntables
Using an FTDI chip and the Iconasys SDK you can use DB0 for sending a train of pulses to a stepper motor and DB1 for setting the stepper motor direction. To use the SDK please follow these steps:
- Download the appropriate SDK as mentioned above.
- Please also read this article on using the SDKs for testing USB turntables to find the details on how to install the drivers for Windows and Mac.
- Please be aware that on Windows you have to install the drivers twice.
- On Apple you will have to run the internal FTDI disable tool the very first time. Again, this is mentioned in the aforementioned article.
- After unzipping the SDK run the binary file by double clicking on it.
- The following menu will open up (shown on Mac, but exact same menus are on Windows):
- Enter P to send a pulse train on pin DB2 of the FTDI chip. The menu you will see next is:
- The first entry is for the number of milliseconds DB2 is high.
- The second number is the number of milliseconds DB2 is low.
- The third number is the number of pulses you want to send on DB2. If you are driving a motor with 800 steps per revolution, entering 800 for the number of pulses should be equivalent to 1 full turn.
- The fourth number is the value of the DB1 pin. Zero means low and 1 means high. This allows you to set the direction of the stepper motor.
- Using the above settings the pulse you would get out of DB0 would look similar to this:
- The pin assignments are as follows:
const static unsigned char MASK_STEP_MOTOR_ENABLE = 0x01; // DB0
const static unsigned char MASK_STEP_MOTOR_DIR = 0x02; // DB1
const static unsigned char MASK_STEP_MOTOR_PULSE = 0x04; // DB2
const static unsigned char MASK_STEP_USB_ENABLE = 0x08; // DB3
const static unsigned char MASK_STEP_CAMERA_FOCUS = 0x10; // DB4
const static unsigned char MASK_STEP_CAMERA_SHUTTER = 0x20; // DB5