Replies: 5 comments 15 replies
-
You have modified the board map and added pin mappings for the encoder? BTW the H7 driver is by @dresco, I do not have any H7 boards available at the time. |
Beta Was this translation helpful? Give feedback.
-
yes, pin mapped, there is some thing to check if spindle sync is really active by grbl command, like $sync? |
Beta Was this translation helpful? Give feedback.
-
I've bench tested on my own prototype board, so the basic functionality should be working on the H7 driver. The commit where support was updated is here. You'll note that there are a couple of clock input options, and I did hardcode an internal pullup on the spindle sync input (not optimal - but don't think there was a setting for this & I never got around to asking). Can you share your pin mappings etc. I also have an SKR3 here, so can have a look.. |
Beta Was this translation helpful? Give feedback.
-
ok, using PC6 and PD14, rotation is recognized but is very oscillating, and when I try PID Tuner, after pressing "Get Data" (IOSender), console print: error:20 - Unsupported or invalid g-code command found in block. Any suggestion? |
Beta Was this translation helpful? Give feedback.
-
@terjeio @dresco please help me, I need to solve as soon as possible, i can pay for a faster help if you need! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm retrofitting an old lathe, it as encoder onboard and I've wired everything to SKR3, but encoder not reading, this is my platformio env:
`[env:btt_skr_30_h723_tmc5160]
board = generic_stm32h723vg
board_build.ldscript = STM32H723VGTX_FLASH.ld
build_flags =
${common.build_flags}
${usb_h723.build_flags}
;${sdcard.build_flags} ; disattivalo per test flash
-D BOARD_BTT_SKR_30
-D HSE_VALUE=25000000
-D DRIVER_SPINDLE_ENABLE=7 ; 1|2|4 = SPINDLE_ENA|SPINDLE_DIR|SPINDLE_PWM
-D VARIABLE_SPINDLE
-D SPINDLE_ENCODER_ENABLE=1
-D SPINDLE_SYNC_ENABLE=1
-D SPINDLE_ENCODER_USE_QEI=1
-D SPINDLE_SYNC_USE_QEI=1
-D SPINDLE_ENCODER_CLK=1
-D PROBE_ENABLE=0
-D SPINDLE0_ENABLE=11
-D N_SPINDLE=1
-D MY_MACHINE
-I Inc
-include Inc/my_machine.h
lib_deps =
${common_h723.lib_deps}
${usb_h723.lib_deps}
;${sdcard.lib_deps}
motors
lib_extra_dirs =
${common.lib_extra_dirs}
${usb_h723.lib_extra_dirs}
;${sdcard.lib_extra_dirs}
upload_protocol = dfu
monitor_speed = 115200
monitor_echo = yes
`
old encoder has 5 wires: 5v, gnd, out1, index, out2
Beta Was this translation helpful? Give feedback.
All reactions