Y2 Step Pin Not Working #50
-
I built a copy of the RP2040 driver using the picobob_map.h file. In my_machine.h I turned on Y_AUTO_SQUARE but when I issue a Y-Axis jog command from cncjs I see the Y1 step signal but not the Y2 step signal. As far as I'm aware, the following code in picobob_map.h tells me it should be GPIO3 that I'm looking for the step signal on. I checked the direction pin for Y2 (GPIO12) and I am seeing that change when jogging back and forth but I'm still not seeing GPIO3 change. Any help would be appreciated.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As noted in the map file there, the '3' does not reference the pico pin. It references the pin for the PIO state machine that is used to generate steps. Line 33 in 833128e That line shows that the PIO base pin is 17, and it uses n_axis number of consecutive pins (plus additional ganged axes) so in your case the Y2 step signal is on GPIO20. The direction pin is not driven by PIO so it is referenced directly. |
Beta Was this translation helpful? Give feedback.
As noted in the map file there, the '3' does not reference the pico pin. It references the pin for the PIO state machine that is used to generate steps.
RP2040/picobob_map.h
Line 33 in 833128e
That line shows that the PIO base pin is 17, and it uses n_axis number of consecutive pins (plus additional ganged axes) so in your case the Y2 step signal is on GPIO20.
The direction pin is not driven by PIO so it is referenced directly.