RPI Pico W Pendant
07 Jun 2024 16:11 #302536
by oryweaver
RPI Pico W Pendant was created by oryweaver
I'm working on a pendant based on a RPI Pico W. I have gotten all the way to seeing the halui analog values updating in Halshow, but I'm stalled on making it "wiggle it's big toe." I know I'm just not connecting the analog command to the axis or joint correctly. I'm very new to LinucCNC and pretty green in Python so I expect a good ribbing for my fuggly code. I plan to move my custom commands out of my main hal file once I get it working. Using version 2.9.2. This is a simulated hardware setup just for testing. Thanks in advance for any guidance. jog_server.py is running on the machine and the cnc_pendant.py is what's running on my pico.
Please Log in or Create an account to join the conversation.
07 Jun 2024 17:41 #302543
by Aciera
Replied by Aciera on topic RPI Pico W Pendant
Not sure what your symptoms are but axis jogging will only work after homing.
Please Log in or Create an account to join the conversation.
07 Jun 2024 17:56 #302547
by oryweaver
Replied by oryweaver on topic RPI Pico W Pendant
Thanks for the reply. All axis have been homed and the jog command from halui still isn't moving either axis.
I'm pretty sure my error is is that this:
net jog-x my_python_comp.poop-x => halui.axis.x.analog
Isn't connecting to one of these properly:
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
I tried it like this:
net jog-x my_python_comp.poop-x => halui.joint.0.analog
But, no joy there either.
I'm pretty sure my error is is that this:
net jog-x my_python_comp.poop-x => halui.axis.x.analog
Isn't connecting to one of these properly:
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
I tried it like this:
net jog-x my_python_comp.poop-x => halui.joint.0.analog
But, no joy there either.
Please Log in or Create an account to join the conversation.
07 Jun 2024 19:00 #302553
by Aciera
Replied by Aciera on topic RPI Pico W Pendant
So what are the values you are seeing for 'halui.axis.x.analog'?
Note there is a pin that sets deadband:
halui.axis.jog-deadband
www.linuxcnc.org/docs/html/man/man1/halui.1.html
Also note that if your jog-speed is zero then there is going to be no movement because 'halui.axis.L.analog' value is multiplied with the current jog-speed:
'The value, typically set between 0.0 and ±1.0, is used as a jog-speed multiplier.'
Note there is a pin that sets deadband:
halui.axis.jog-deadband
www.linuxcnc.org/docs/html/man/man1/halui.1.html
Also note that if your jog-speed is zero then there is going to be no movement because 'halui.axis.L.analog' value is multiplied with the current jog-speed:
'The value, typically set between 0.0 and ±1.0, is used as a jog-speed multiplier.'
The following user(s) said Thank You: oryweaver
Please Log in or Create an account to join the conversation.
08 Jun 2024 03:53 #302598
by oryweaver
Replied by oryweaver on topic RPI Pico W Pendant
jog-speed was zero. Thank you very much.
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds