how to get control panel jog buttons for X Y Z working in gmoccapy

More
29 Sep 2020 20:56 #184326 by newbynobi
I will post here if I found a solution

You are welcome ?

Please Log in or Create an account to join the conversation.

  • BeagleBrainz
  • BeagleBrainz's Avatar
  • Visitor
  • Visitor
29 Sep 2020 21:13 #184329 by BeagleBrainz
Here’s an article on using an arduino to act as a USB keyboard.
www.sparkfun.com/tutorials/337

Set it up to send an enter key and you are done. No need for any HAL connections. You can even use it to send key combinations.

Please Log in or Create an account to join the conversation.

More
30 Sep 2020 18:43 #184404 by depronman
After the slightly bad news from Norbert about currently there being no button to emulate the keyboard enter key, I decided to explore one of your suggestions re hacking a keyboard to get the enter key button onto my control panel
I decided to use the older keyboard connector as I have a few spare ps/2 keyboards.
Once I stripped a keyboard down it was fairly simple to trace the enter button traces on the plastic film to the two appropriate two strips on the circuit board. I soldered wires to these two traces and tested it - perfect worked first time
I also tried a usb keyboard as well as the ps/2 keyboard connector, bingo PC saw them both and linux recognised them both
just goes to show whata littler latteral thinking can come up with - thankyou BB
The following user(s) said Thank You: BeagleBrainz

Please Log in or Create an account to join the conversation.

More
30 Sep 2020 19:08 #184405 by depronman
do you have an example of how I would use the or2 command to allow the use of both the pendant button and the panel buttons

(from the hal file)
net run-btn <= parport.1.pin-10-in-not => halui.mode.auto => halui.program.run

(from the pendant section on ini file)
start-pause = std_start_pause

so, how would I use the or2 command with the above

Thanks in advance
Paul

Please Log in or Create an account to join the conversation.

More
30 Sep 2020 20:32 #184416 by newbynobi
Just connect parport pin to or.0.in0 and the physical button to or. 0.in1 then or. 0.out to the start pause halui pin.

Do not forget to load with loadrt and connect or also to servo-thread.

All out of memory, so check the Hal pin names etc.

Norbert

Please Log in or Create an account to join the conversation.

  • BeagleBrainz
  • BeagleBrainz's Avatar
  • Visitor
  • Visitor
01 Oct 2020 01:21 #184441 by BeagleBrainz
Docs are always a good place to start
linuxcnc.org/docs/2.8/html/

The devs have put a lot of effort into the docs, give them a go.

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.058 seconds
Powered by Kunena Forum