Raspberry Pi 4

More
5 years 8 months ago #197930 by The Feral Engineer

andypugh wrote: That sounds like the system isn't receiving keyup events, for some reason.

Keyboard jogging should only go as far as the axis limits, but that is not much of a safety net if you are jogging Z down.

FWIW I don't trust USB / GUI for jogging any of my machines. It's much more dependable to jog via HAL pins, for example with an MPG.
I have never seen the problems you have, but I am aware of the possibility.


I'm in the same boat as you, I prefer true tactile feedback and already have a project box that I'm going to be building an operator panel from for this machine. I actually wouldn't mind just removing the software jogs and cycle buttons entirely for this build. Maybe I'll have to work on my own gui :lol:

Please Log in to join the conversation.

More
5 years 7 months ago #203601 by tjtr33
Replied by tjtr33 on topic Raspberry Pi 4
I have posted the src file for a new hal_pi_gpio that has
inputs, inverted input
outputs, inverted outptus reset outputs ( allowing double step for rpi opi bpi )

this forum is hard to follow so i have not ( this morning ) found where i posted it .
so, here it is again
the 'easy' way to build it
is to do it in a RIP
Code:
cd cd yourRIPdir . scripts/rip-environment
( yes thats DOT SPACE before the 's' )

find your old hal_pi_gpio.c file
remove it from 'that place'
store it away for safety
then put my new hal_pi_gpio.c file in 'that place'
then 'touch' it to isure it's 'new' and will be compiled
Code:
touch hal_pi_gpio.c
go back down to the src dir
Code:
sudo make modules

its only a few seconds to finsih

now use it
in a hal file
Code:
loadrt hal_pi_gpio pi_pins=\ {3,>,0,Y}{5,>,1,N){11,<.+,x}

that makes pin 3 an ouput with initial value 0 and is resetable
and make pin 5 and output with initial value 1 and not resetable.
and makes pin 11 and input with and additional inverted pin ( th x is just a place holder for nice columns of print )

read the code to see more
some of the pin 'features' are enabled with these {...} sets
so the feature still needs to be turned on
like
Code:
loadrt hal_pi_gpio pi_pins={40,>,1,Y}
will creare a resettable pin
BUT you need to say
Code:
setp hal_pi_gpip.pin-40-out-reset 1
to turn on the feature

hth
tomp

Please Log in to join the conversation.

More
5 years 4 months ago #212860 by qiwating
Replied by qiwating on topic Raspberry Pi 4
thank you very much for the information above, it really helpful for us

Please Log in to join the conversation.

More
4 years 10 months ago #228431 by Boaschti
Replied by Boaschti on topic Raspberry Pi 4

Please Log in to join the conversation.

More
4 years 10 months ago #228902 by virencq
Replied by virencq on topic Raspberry Pi 4
Thanks 
  • tjtr33
  • All Inputs, Outputs working with reverse, reset functions.
  • Thanks again

Please Log in to join the conversation.

More
4 years 3 months ago #246606 by andypugh
Replied by andypugh on topic Raspberry Pi 4

I have posted the src file for a new hal_pi_gpio that has
inputs, inverted input
outputs, inverted outptus reset outputs ( allowing double step for rpi opi bpi )
Was it your intention that this should be merged into LinuxCNC? Did you make a pull request? 

Please Log in to join the conversation.

More
4 years 3 months ago #248045 by euridium
Replied by euridium on topic Raspberry Pi 4
I have needed to make some changes to the c code as there are a few errors in pin and gpio assignments. 
Not all of the pins are mapped to a gpio and pin 23 was transposed with its neighbour.
I appreciate that this may have been done Intentionally for your needs? 

Happy to post the corrected version if anyone is interested? 

thanks 



​​

Please Log in to join the conversation.

More
4 years 2 months ago #249960 by virencq
Replied by virencq on topic Raspberry Pi 4
Sir, I am interested to try.
Please share your version.

Please Log in to join the conversation.

Time to create page: 0.722 seconds
Powered by Kunena Forum