In this file, I see the pin mapping for a stepper motor:
Code: Select all
if (num == 0) {
pwma = 8;
ain2 = 9;
ain1 = 10;
pwmb = 13;
bin2 = 12;
bin1 = 11;
} else {
pwma = 2;
ain2 = 3;
ain1 = 4;
pwmb = 7;
bin2 = 6;
bin1 = 5;
}
steppers[num].PWMApin = pwma;
steppers[num].PWMBpin = pwmb;
steppers[num].AIN1pin = ain1;
steppers[num].AIN2pin = ain2;
steppers[num].BIN1pin = bin1;
steppers[num].BIN2pin = bin2;
The sample code seems to work, in terms of the stepper motor is moving. I want to probe/monitor the AINx and BINx pins. I am trying to probe the pins numbers described in the source code above. AIN1 for example would be pin 10 for Motor 1.
I am not seeing any activity on these pins. Any suggestions on what the issue may be?
I am using this with the Feather 32u4 BLE. On pin 10/AIN1, for example, I am looking at pin "D10" as shown on the 32u4 BLE pinout.
Thanks!