- Posts: 12
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Just an update - while playing around with spindle I found that, I am missing spindle-index signal (my encoder does not have this functionality). I've add a simple patch to arisc.c driver (for H3) that can emulate index.
This patch just zeroes position and reports back to hal that index arrived - I am NOT SURE if this is right, but it seems to work for me. Please check it!!!
That was completely wrong. DO NOT use simulate_index.patch, use simulate_index_v1.patch file!!
Now simulated index always waits for next full revolution before clearing spindle position and sending back index signal to HAL. In this way our virtual index fires at the position that spindle was at linuxcnc startup.
Patch file and HAL config are attached here. To use simulated index just set "arisc.encoder.X.simulate-index" parameter to 1, then connect spindle.X.index-enable in normal way.
Please Log in or Create an account to join the conversation.
Hello!Sorry, I'm not working with git much - after a few tutorials I'm still not sure how to create a valid pull request. Please check the patch files from this message.
I've added new output to HAL (period_ticks) for testing the ARISC code. It is pin A period in raw timer ticks. Then the hal driver calculates velocity from period output, until about 110kHz when it switches back to frequency. Of course this is rather poor, and we should use method described by PCW. Anyway this code seems to work orangePi H3 (the only board I have).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.