587,529 active members*
3,306 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Tormach Personal CNC Mill > Tormach PathPilot™ > PathPilot Simulator & USB I/O Interface Kit
Page 2 of 2 12
Results 21 to 26 of 26
  1. #21
    Join Date
    Jan 2016
    Posts
    386

    Re: PathPilot Simulator & USB I/O Interface Kit

    Very nice!! I am trying to understand how the knobs and such actually talk to PP. Does info pass through an USB port then to an Arduino?

    Steve

  2. #22
    Join Date
    Jul 2016
    Posts
    140

    Re: PathPilot Simulator & USB I/O Interface Kit

    You're close. The inputs (knobs, buttons, sliders, whatever) connect to a board (could be arduino, or others), then the board connects to the controller via USB.

    If you want to add a button (or any other input) to mimic one of the several out-of-the-box PP keyboard shortcuts, then its quite simple and all you really need to do from a software standpoint is keyboard emulation. However if you want to do something that path pilot doesnt have keyboard shortcuts for or you want two-way communication, then its more complicated.

    In my case I'm only doing one-way communication. I added a bunch of keyboard shortcuts to PP because they dont exist for controlling the sliders, probing and all the other things I wanted. The only downside is that I have to readd those changes after every PP update. The good side is that it makes the machine easier to use and the changes only take me about 1/2 day to implement and test.

    When I first started building this out, I didnt know how to add buttons to the PathPilot interface. Since then, I have figured that out and wont need as many physical inputs, but I'll probably keep them just incase my touchscreen takes a dump.

    Here's a screenshot of the probing routines I added to PP 1.9.13 (it also shows the WCS buttons I added at the bottom). I havent added them to 2.0 yet because I knew there would probably be an update soon after the initial release. Turns out I was right.

    Tormach PCNC 1100 Series 3 w/ Rapid Turn, Fusion 360

  3. #23
    Join Date
    Jan 2016
    Posts
    386

    Re: PathPilot Simulator & USB I/O Interface Kit

    Thanks sharmstr. I really like the corner probes screen .How are you assigning new keyboard shortcuts? Sorry for all the questions this has really caught my interest.

    Steve

  4. #24
    Join Date
    Jul 2016
    Posts
    140

    Re: PathPilot Simulator & USB I/O Interface Kit

    By editing the PP core files.
    Tormach PCNC 1100 Series 3 w/ Rapid Turn, Fusion 360

  5. #25
    Join Date
    Mar 2009
    Posts
    388
    Quote Originally Posted by sharmstr View Post
    You're close. The inputs (knobs, buttons, sliders, whatever) connect to a board (could be arduino, or others), then the board connects to the controller via USB.

    If you want to add a button (or any other input) to mimic one of the several out-of-the-box PP keyboard shortcuts, then its quite simple and all you really need to do from a software standpoint is keyboard emulation. However if you want to do something that path pilot doesnt have keyboard shortcuts for or you want two-way communication, then its more complicated.

    In my case I'm only doing one-way communication. I added a bunch of keyboard shortcuts to PP because they dont exist for controlling the sliders, probing and all the other things I wanted. The only downside is that I have to readd those changes after every PP update. The good side is that it makes the machine easier to use and the changes only take me about 1/2 day to implement and test.

    When I first started building this out, I didnt know how to add buttons to the PathPilot interface. Since then, I have figured that out and wont need as many physical inputs, but I'll probably keep them just incase my touchscreen takes a dump.

    Here's a screenshot of the probing routines I added to PP 1.9.13 (it also shows the WCS buttons I added at the bottom). I havent added them to 2.0 yet because I knew there would probably be an update soon after the initial release. Turns out I was right.

    Thats awesome work! Any info on how you add the keyboard shortcuts to PP? Very interested in doing the same as I have a console that emulates a keyboard that I used on a different mill in the past and was just waiting on keyboard hotkeys.

    Thanks,
    Scott...
    Instructional Videos for CNC Guitar Building
    http://www.rmgvideos.com

  6. #26
    Join Date
    Jul 2016
    Posts
    140

    Re: PathPilot Simulator & USB I/O Interface Kit

    Quote Originally Posted by sagreen View Post
    Thats awesome work! Any info on how you add the keyboard shortcuts to PP?
    Thanks, Scott. Off the top of my head, it was something like

    PHP Code:
    if kv == gtk.keysyms.F1 and event.type == gtk.gdk.KEY_PRESS:
        
    do_something(self
    If you're familar with PHP, the PP code is easy to read and well commented.
    Tormach PCNC 1100 Series 3 w/ Rapid Turn, Fusion 360

Page 2 of 2 12

Similar Threads

  1. PathPilot 2.x and PathPilot Simulator
    By draper-ballou in forum Tormach PathPilot™
    Replies: 117
    Last Post: 01-01-2019, 01:42 AM
  2. Interface board Rodgers board/ Romaxx Encoder Interface.
    By Ark1 in forum Wood Lathes / Mills
    Replies: 1
    Last Post: 03-23-2013, 10:57 PM
  3. Any simulator available?
    By CptanPanic in forum OpenSource Software
    Replies: 1
    Last Post: 04-17-2012, 05:39 AM
  4. CNC Simulator
    By GeorgeRace in forum CamBam
    Replies: 9
    Last Post: 11-16-2009, 11:37 AM
  5. cnc simulator
    By Radosl81 in forum Want To Buy...Need help!
    Replies: 2
    Last Post: 09-29-2008, 01:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •