Encoder signals to BBB
07 May 2024 13:47 #300036
by keryboros
Encoder signals to BBB was created by keryboros
Hello
I have made my DIY CNC milling machine with BeagleBone Black (Machinekit) and DIY cape. I used ARM.BeagleBone.Xylotex setup as base and modified that to work with my machine.
I used old Omron servo drivers and motors with DIR and STEP signals. It kinda works but now I'd like to add feedback signals from servos to BBB (2048 pls/rev).
So there is quadrature signals from X, Y and Z. I'm planning to use these pins P9:25, P9:27, P9:28, P9:29, P9:30, P9:31
I have understood that these pins are in PRU0 and first I have to config the those as "pruin" in setup.sh file?
Then the ini-file now:
[PRUCONF]
DRIVER=hal_pru_generic
CONFIG=pru=1 num_stepgens=3
PRUBIN=xenomai/pru_generic.bin
so can I change it to:
CONFIG=pru=0 num_stepgens=3 num_encoders=3
And how to I do the HAL wiring?
Here is the pins that are in use now:
P8.07 out # gpio2.2 Enable System
P8.10 in # gpio2.4 XLIM
P8.11 out # gpio1.13 X_Dir
P8.12 out # gpio1.12 X_Step
P8.13 out # gpio0.23 PWM0/SPINDLE
P8.14 in # gpio0.26 YLIM
P8.15 out # gpio1.15 Y_Dir
P8.16 out # gpio1.14 Y_Step
P8.18 in # gpio2.1 ZLIM
P9.15 out # gpio1.16 Z_Step
P9.23 out # gpio1.17 Z_Dir
P8.09 in # gpio2.5 STOPin
Are these step/dir signals used by PRU 1? Or can I use these with PRU 0?
I have made my DIY CNC milling machine with BeagleBone Black (Machinekit) and DIY cape. I used ARM.BeagleBone.Xylotex setup as base and modified that to work with my machine.
I used old Omron servo drivers and motors with DIR and STEP signals. It kinda works but now I'd like to add feedback signals from servos to BBB (2048 pls/rev).
So there is quadrature signals from X, Y and Z. I'm planning to use these pins P9:25, P9:27, P9:28, P9:29, P9:30, P9:31
I have understood that these pins are in PRU0 and first I have to config the those as "pruin" in setup.sh file?
Then the ini-file now:
[PRUCONF]
DRIVER=hal_pru_generic
CONFIG=pru=1 num_stepgens=3
PRUBIN=xenomai/pru_generic.bin
so can I change it to:
CONFIG=pru=0 num_stepgens=3 num_encoders=3
And how to I do the HAL wiring?
Here is the pins that are in use now:
P8.07 out # gpio2.2 Enable System
P8.10 in # gpio2.4 XLIM
P8.11 out # gpio1.13 X_Dir
P8.12 out # gpio1.12 X_Step
P8.13 out # gpio0.23 PWM0/SPINDLE
P8.14 in # gpio0.26 YLIM
P8.15 out # gpio1.15 Y_Dir
P8.16 out # gpio1.14 Y_Step
P8.18 in # gpio2.1 ZLIM
P9.15 out # gpio1.16 Z_Step
P9.23 out # gpio1.17 Z_Dir
P8.09 in # gpio2.5 STOPin
Are these step/dir signals used by PRU 1? Or can I use these with PRU 0?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
11 May 2024 19:25 #300396
by tommylight
Replied by tommylight on topic Encoder signals to BBB
Might want to try the MachineKit forums, they use BBB, we do not, although MachineKit is a fork of LinuxCNC.
Please Log in or Create an account to join the conversation.
11 May 2024 21:49 #300406
by PCW
Replied by PCW on topic Encoder signals to BBB
Unfortunately, the Machinekit forum seems dead (tumble weeds and all)
A lot of great code infrastructure that would have improved LinuxCNC seems lost
A lot of great code infrastructure that would have improved LinuxCNC seems lost
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
11 May 2024 22:07 #300408
by tommylight
Replied by tommylight on topic Encoder signals to BBB
Still on github, hal section had an update 2 months ago, cnc section 4 years ago.
github.com/machinekit/machinekit
What was/is so good? Have not messed with it in more than 10 years...
github.com/machinekit/machinekit
What was/is so good? Have not messed with it in more than 10 years...
Please Log in or Create an account to join the conversation.
12 May 2024 01:14 #300416
by cornholio
Replied by cornholio on topic Encoder signals to BBB
The mailing list is still active, not very, but if some one asks a question there are replies.
Found some info buried at home
Found some info buried at home
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds