Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

New custom feature: Arbitrary gear path

imants_smidchensimants_smidchens Member Posts: 82 EDU
edited June 3 in FeatureScript

hey all! another janky feature from the smidchens household - take whatever path you want (elliptical, polygonal, spline…) and generate gear teeth along that path using local curvature to drive involute profile.

snag it here: https://cad.onshape.com/documents/8f033780ed64a1971e38c2a9/

image.png image.png GearPathAnimation.gif image.png

Comments

  • Konst_ShKonst_Sh Member Posts: 156 PRO

    Cool stuff, never had to use one of non-cylindrical gear types but always admired the coherence

  • martin_kopplowmartin_kopplow Member Posts: 1,434 PRO

    Very cool! There are times you could make good use of that, E.G. for retractable devices in automotive applications.

  • Derek_Van_Allen_BDDerek_Van_Allen_BD Member Posts: 977 PRO

    I know not yet which project this will be useful for, but my company has dozens of gear walls in the portfolio. This opens up the design space a little more to get weird with it. Surely we will not regret making square gears the primary drive of an exhibit.

  • imants_smidchensimants_smidchens Member Posts: 82 EDU

    Lots of improvements in latest version! Better performance, better stability, fixed some geometry issues, added more feature capabilites (root fillet, clocking, editing logic, and lots more)

    plus published with guide pdf etc.

  • S1monS1mon Member Posts: 4,235 PRO

    What wizardry is this?

    I kinda get the pitch circle and the other pitch ribbon, but the other wavy one…. can you explain the man behind the curtain here?

    image.png

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • imants_smidchensimants_smidchens Member Posts: 82 EDU

    Ok it's a bit jank, but the principle is as such:
    it's not hard to set up the path for the pinion (tangency between pitch curves, coplanar), the hard part is getting the rotation to match the motion along the path.

    My thought process was:
    * I am converting from translational motion to rotation, so I will need something like a rack and pinion relationship
    * The ratio changes as the pinion moves along the path. This ratio can be expressed by the accumulated rolling distance along the path
    * I wrote a quick script to convert between the x position on the pitch path (assuming it is monotonic in x) and the accumulated rolling distance, fitting a spline to this. That's all that second ribbon is: a geometric representation of the function mapping from x coordinate to rolling distance as a y coordinate
    * there's some helper geometry to essentially just capture the relevant stuff from there:

    * a line pointing from center of circle to the tangent path, with a tracker on that intersection (the contact point between the rack and pinion)
    * a thingy that matches the x position of the tracker and travels along the x axis (probably redundant but ehh)
    * a thingy that matches the x position of that, tangent to the function curve
    * a thingy that matches the y position of that, locked to the y axis with a slider relation
    * a rack and pinion relationship between this y axis thingy and the rotation of the pinion

  • S1monS1mon Member Posts: 4,235 PRO
    edited 4:06AM

    Clever.

    How much more amazing it would be if we ever get FeatureScript in Assemblies? One can imagine a Gear Mate Plus feature.

    Simon Gatrall | Product Development, Engineering, Design, Onshape | Ex- IDEO, PCH, Unagi, Carbon | LinkedIn

  • jnewthjnewth Member, OS Professional Posts: 133 PRO
    63050.png

    Along these lines: Here's a truly cursed piece of track I made recently. Nothing so clever as your script. There's a video of this in action coming to a YouTube near you soon.

  • glen_dewsburyglen_dewsbury Member Posts: 1,338 PRO

    Pretty cool Imants. Haven't worked with elliptical gears since college. Was a lot of work with a drafting board and math book.(1979) Did manage some velocity curve printouts on the school Main Frame using the punch cards for Wat4-Wat5 Fortran. He He 🙄

    Sure didn't try to work through anything more free form like this.

  • imants_smidchensimants_smidchens Member Posts: 82 EDU

    that's pretty neat! I'd love to see the video when it's up :)

    now part of me wants to get the script to work on 3D paths…

  • imants_smidchensimants_smidchens Member Posts: 82 EDU
    edited 5:33AM
  • imants_smidchensimants_smidchens Member Posts: 82 EDU

    That's extremely cool. Do you by chance have any photos of the original drafting board drawings?

  • glen_dewsburyglen_dewsbury Member Posts: 1,338 PRO

    No. They probably went to the same person I loaned the drafting board to. Didn't ask for it back. It was a beast to move around and by the mid eighties I was working with a computer for drawings and an up to date version of Fortran.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.