iPad App for PathPilot with custom HAL component - iPendant


Results 1 to 4 of 4

Thread: iPad App for PathPilot with custom HAL component - iPendant

  1. #1
    Registered
    Join Date
    Nov 2017
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default iPad App for PathPilot with custom HAL component - iPendant

    Hi guys,

    Will be great to get some feedback, ideas and suggestions on what to add before I freeze the current code.

    To give you a little background, the board started as an add-on to the back of my Digital Load Meter as the Load Meter board has the USB connection footprint. I needed a remote Stop button to be about 15 feet away next to my workstation rather than keep standing next to the machine. But once I decided to integrate the iPad, this gave this project its own board and USB powered so no need to connect it to the back of the VFD Load Meter.

    This is my take on the ever so popular pendant for PathPilot. Rather than trying to negotiate Bluetooth with Linux, a dedicated controller with Bluetooth that talks to LinuxCNC over USB is extremely reliable.

    I also added a separate RF transceiver as that will be used for any immediate action buttons including the battery operated Stop/Hold seen in the video. This RF transceiver can also be used as a low-cost link/bridge between other panels / buttons / solutions to LinuxCNC HAL or Keyboard.

    Initially, the project started as Keyboard shortcuts, so the USB connection was being used as HID keyboard only. This worked directly with PathPilot with no changes at all. However, this method only allowed the standard X/Y/Z Keyboard Jog (fast) and the Start/Hold/Stop/Coolant commands. I added more keyboard shortcuts.

    Then the Jog Shuttle driver was tested to emulate the Jog Shuttle and that worked perfectly, the board acted as HID consumer device and used the same bytes format as the Shuttle.

    But nothing beats getting feedback and data from PathPilot so i wrote a HAL component for my controller board and that made a huge difference. At this stage, I only added the 4 DROs & the Tool in spindle. Few other pins are available from HAL and can be added but as it is right now is fully usable when my head inside the enclosure.

    So far on the To do list:
    - Remove the Jog Shuttle page. Was a good test but not much usable with the other direct buttons being easier and precise rather than rotating fingers on the screen.
    - Add Step value and indicate which mode is active (continuous or Increment). No direct HAL pin for this but can be added. I think maybe just the Cont/Inc indication would be enough.
    - An option to show machine coordinates briefly (maybe).
    - See what other values of interest to be useful for the Lathe.
    - iPhone screens? Maybe? The iPad Mini is perfect, and used iPads can be found easily and cheaply. I use it laying on the table as shown on the video. Having a dedicated Mini for the workshop makes sense.
    - Add math to the DROs. At least the /2. Either via dedicated button or within the DRO itself.
    - Homing All.

    Here is the video; first two min are the iPad app presentation then the video showing its fully working on my 770 with PP 2.0.1 follows. Enjoy.



    Similar Threads:


  2. #2
    Registered kstrauss's Avatar
    Join Date
    Apr 2013
    Location
    Canada
    Posts
    1108
    Downloads
    0
    Uploads
    0

    Default Re: iPad App for PathPilot with custom HAL component - iPendant

    Quote Originally Posted by narrobb View Post
    Hi guys,

    Will be great to get some feedback, ideas and suggestions on what to add before I freeze the current code.

    Then the Jog Shuttle driver was tested to emulate the Jog Shuttle and that worked perfectly, the board acted as HID consumer device and used the same bytes format as the Shuttle.
    Very impressive!

    Could you supply further details on your jog shuttle emulator? Does it report the same VID/PID (0b33/0020) as the real ShuttleExpress so that no PathPilot changes are required? Or have I completely misunderstood?



  3. #3
    Registered
    Join Date
    Nov 2017
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default Re: iPad App for PathPilot with custom HAL component - iPendant

    Quote Originally Posted by kstrauss View Post
    Very impressive!

    Could you supply further details on your jog shuttle emulator? Does it report the same VID/PID (0b33/0020) as the real ShuttleExpress so that no PathPilot changes are required? Or have I completely misunderstood?


    Thanks

    Yes, this is what i tried first, as you can have more than one Shuttle inserted. It worked with some minor intermittent lag which i did not track down as it was a test.

    Then I tried it with my own VID/PID but with the mill pins pointed to my file which worked. I am still new to HAL so don't know if there is a way to 'share' a pin out/in to two userspaces components or not but as I was geared up to get the the DROs values into the iPad so I did not pursue the development for the shuttle replacement.

    A design advantage of removing that page; I can go back to flip between various pages with just swipe left/right. This is much faster compared to current menu buttons to navigate. Had to use buttons to navigate as the Shuttle emulator design uses single touch, dual touches, and rotation movement routines heavily that any swipe action to go to next page could trigger a false-positive for jogging.






  4. #4
    Registered
    Join Date
    Nov 2017
    Posts
    61
    Downloads
    0
    Uploads
    0

    Default Re: iPad App for PathPilot with custom HAL component - iPendant

    About changes to PathPilot;

    There are 4 Levels.

    1 - Using Keyboard only (All Axis +/- and Start, Feedhold, Stop, Coolant control): No changes at all (plug and play and the these iPad functions work directly).

    2 - Using HAL component + Standard Keyboard above: Only one line change to tell the system to load the component and 3 new files are copied but these do not override other files. This enables all DROs and Tool number plus any additional new pins/values or functions added to the HAL component.

    3 - All the above + Extra keyboard commands defined to get Step, Continuous/Increment and Zeroing enabled via Keyboard: The above changes plus about 10 lines to be added.

    4 - The above with Probing page; about an extra 50 lines or so and few more new files copied.

    I actually made a script for the above, entire installation is one second then reboot. The script makes backup copies of the files that will be changed first, then it copies over the new files, changes permission and fixes the user/group for the new files & component.

    I may add the Zeroing / Step buttons as HAL pins if available, this way option 3, would still be one line change.

    The same script also prepares the simulator (if running PP on VirtualBox) and hardware/software works fully on the simulator, this how i was developing it and once ironed out there, copied the script to the main machine, run it once, rebooted and it worked directly. Hats off to Tormach for having that option, whether it was meant for end users or just for their own use.



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

iPad App for PathPilot with custom HAL component - iPendant
iPad App for PathPilot with custom HAL component - iPendant