Stepper motor controller SNAP protocol
This is now in a fairly usable state.
When programmed into a PIC16F628 (default), the pinouts are:
Device pinouts
- RA2/AN2/Vref ...... Sync bus connection (A)
- RA3/AN3/Cmp1 ...... Sync bus connection (B)
- RA4/T0CK1/Cmp2 .... Not used
- RA5/MCLR/Vpp ...... Not used
- Vss ............... Ground
- RB0/INT ........... Minimum optointerrupter input
- RB1/RX/DT ......... RX
- RB2/TX/CK ......... TX
- RB3/CCP1........... Maximum optointerrupter input
- RB4/PGM ........... Stepper output 1
- RB5 ............... Stepper output 2
- RB6/T1OSO/T1CK1/PGC Stepper output 3
- RB7/T1OS1/PGD ..... Stepper output 4
- Vdd ............... +5V
- RA6/OSC2/CLKOUT ... Not used
- RA7/OSC1/CLKIN .... Not used
- RA0/AN0 ........... Not used
- RA1/AN1 ........... Not used
The software is currently set up to use a unipolar stepper motor (or motor with compatible sequencing).
PIC16F628 code images are included below. The three images are put one on each axis and provide controllers on network addresses 2, 3 and 4.
See Building A Stripboard Stepper Controller for construction details.
-- Main.SimonMcAuliffe - 30 Dec 2005