Author Topic: Simple question about stepper pins  (Read 127 times)

Tommy_Lee

  • New Member
  • *
  • Posts: 2
    • View Profile
Simple question about stepper pins
« on: December 08, 2016, 07:20:17 AM »
Hi,

I'm trying to run the code with the few hardware I have (Arduino 2560, 1 Arduino Motor shield, 1 stepper motor and 1 joystick).
Does anyone have done some code / functions for use with the Motor shield?

Motor Shield have the following pinout:
   #define dirA    12  // Direction Channel A
   #define dirB    13  // Direction Channel B
   #define brakeA  9   // Brake Channel A
   #define brakeB  8   // Brake Channel B
   #define pwmA    3   // Speed Channel A
   #define pwmB    11  // Speed Channel B
   #define Sense_A A0  // Current sensing Channel A
   #define Sense_B A1  // Current sensing Channel B

What would be the correspondance for at least azimuth pins
   pinMode(azimuthStepPin, OUTPUT);
   pinMode(azimuthDirPin, OUTPUT);

Thank you for advices. :)