on the 2560 only certain pins have PWM capability
Pin Number Pin Name Mapped (arduino) Pin Name
1 PG5 ( OC0B ) Digital pin 4 (PWM) USED
5 PE3 ( OC3A/AIN1 ) Digital pin 5 (PWM) USED
6 PE4 ( OC3B/INT4 ) Digital pin 2 (PWM) X+
7 PE5 ( OC3C/INT5 ) Digital pin 3 (PWM) X-
15 PH3 ( OC4A ) Digital pin 6 (PWM) USED
16 PH4 ( OC4B ) Digital pin 7 (PWM) USED
17 PH5 ( OC4C ) Digital pin 8 (PWM) USED??
18 PH6 ( OC2B ) Digital pin 9 (PWM) USED
23 PB4 ( OC2A/PCINT4 ) Digital pin 10 (PWM) USED
24 PB5 ( OC1A/PCINT5 ) Digital pin 11 (PWM) USED
25 PB6 ( OC1B/PCINT6 ) Digital pin 12 (PWM)
26 PB7 ( OC0A/OC1C/PCINT7 ) Digital pin 13 (PWM) LED (probably)
38 PL3 ( OC5A ) Digital pin 46 (PWM) Z_STEP_PIN
39 PL4 ( OC5B ) Digital pin 45 (PWM)
40 PL5 ( OC5C ) Digital pin 44 (PWM) aux-2
I presume D8 is still the bed....
leaving D12,D44,D45, to find
EDIT: D44 on AUX-2 should have worked....
I suspect it doesn't becase its #define E1_CS_PIN 44 so probably removed from M42 control.
This is not used unless you have SPI based stepper drivers.
Or you could use which X endstop you not using currently... as they are both PWM outs
Edited 5 time(s). Last edit at 02/13/2018 10:38PM by Dust.