- Posts: 79
- Thank you received: 0
Raspberry Pi 4
- The Feral Engineer
- Offline
- Senior Member
-
Less
More
5 years 8 months ago #197930
by The Feral Engineer
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:
Replied by The Feral Engineer on topic Raspberry Pi 4 mmap
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.
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
( 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
go back down to the src dir
its only a few seconds to finsih
now use it
in a hal file
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
will creare a resettable pin
BUT you need to say
to turn on the feature
hth
tomp
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
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
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}
BUT you need to say
Code:
setp hal_pi_gpip.pin-40-out-reset 1
hth
tomp
Please Log in to join the conversation.
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.
4 years 10 months ago #228431
by Boaschti
Replied by Boaschti on topic Raspberry Pi 4
Hi gtt38,
can you check my post here: forum.linuxcnc.org/27-driver-boards/4444...-board-for-raspberry
can you check my post here: forum.linuxcnc.org/27-driver-boards/4444...-board-for-raspberry
Please Log in to join the conversation.
4 years 3 months ago #246606
by andypugh
Replied by andypugh on topic Raspberry Pi 4
Was it your intention that this should be merged into LinuxCNC? Did you make a pull request?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 )
Please Log in to join the conversation.
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
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.
Time to create page: 0.722 seconds
