Stepper motor controller SNAP protocol

From RepRap
Revision as of 05:14, 27 February 2006 by AdrianBowyer (talk) (version migrated from twiki)
Jump to: navigation, search

This is now in a fairly usable state.

When programmed into a PIC16F628 (default), the pinouts are:

Device pinouts

  1. RA2/AN2/Vref ...... Sync bus connection (A)
  2. RA3/AN3/Cmp1 ...... Sync bus connection (B)
  3. RA4/T0CK1/Cmp2 .... Not used
  4. RA5/MCLR/Vpp ...... Not used
  5. Vss ............... Ground
  6. RB0/INT ........... Minimum optointerrupter input
  7. RB1/RX/DT ......... RX
  8. RB2/TX/CK ......... TX
  9. RB3/CCP1........... Maximum optointerrupter input
  10. RB4/PGM ........... Stepper output 1
  11. RB5 ............... Stepper output 2
  12. RB6/T1OSO/T1CK1/PGC Stepper output 3
  13. RB7/T1OS1/PGD ..... Stepper output 4
  14. Vdd ............... +5V
  15. RA6/OSC2/CLKOUT ... Not used
  16. RA7/OSC1/CLKIN .... Not used
  17. RA0/AN0 ........... Not used
  18. 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