Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
How to Mate Ball Detent Mechanism?
matthew_stacy
Member Posts: 487 PRO
in General
https://cad.onshape.com/documents/44a7b2091bb2172e2534ecf8/w/c6b3397d7540caddc1f6b980/e/136c2b924d0a8ea21a8c7d80 (Public & shared with Support)
Any suggestions as to how I could mate the components in a ball detent mechanism?
The slug and ball are mated to the origin with CYLINDRICAL's, such that their axial degrees of freedom orthogonal to one another. My intent is to animate the slug left/right (along global X-axis) and have the ball translate fore/aft (along the global Y-axis) to track the surface of the slug.
I am stumped on two fronts:
- Applying TANGENT mate fixed the axial degree of freedom on both parts (locked them up)
- I can't figure out how to make a compound selection along the slug faces to provide continuous tangency throughout the motion
0
Comments
Final model link: https://cad.onshape.com/documents/1d32c693466a04ab93886854/v/4661912d1fb034cb0dd97e50/e/aa7e02d6663c411bddef20c4
Step 1:
Make a sketch, something like this. The middle arc should be tangent to the groove, the outer lines should be coincident with the edges of the cylindrical thing ("Intersection" makes this easy in the sketch environment), and there should be an arc connecting the two. Note the tangent constraints between all of the arcs and the construction lines (and their "normal to curve" constraints) from the start of the transition of the actual groove to the "skeleton" arc setup we have. I used a distance of 0.3 mm, but you can use a smaller one if you are brave or a bigger one if you are cautious.
Step 2:
Use the "unified spline" custom feature to create a 3D spline curve containing the lines and arcs. This will make our skeleton surface have a single face and no tangency lines, increasing reliability in some cases. This is really great whenever you have this sort of continuous tangent motion. For example, you can use it to model a pipe resting in a v profile rollers.
Step 3:
Create another sketch on the same plane as the first one and project the curve back onto it. This seems like a redundant step (why don't we just use the original sketch?), but it is useful since it turns the 3 arcs and 2 lines into a single, continuous spline sketch entity (but still with the correct shape!). This will let us extrude the profile without separate faces/tangency lines, and it needs to be a sketch since even a "flat" 3D curve can't be extruded since it doesn't have a "normal" direction.
Step 4:
Oh yeah, it's all starting to come together now! Extrude the surface an arbitrary amount, and make it symmetrical so that the tangent mate doesn't have to solve contact right at the edge. Don't make it too big to be distracting when you're adding the mates, and don't make it so small that it's hard to select. Note how it is perfectly tangent to the cylindrical portion and just barely comes in at the deepest point of the groove, but interferes in the intermediate area. This is the smooth transition we need for the solver to stop complaining about singularities and the AI takeover of the planet or something.
Step 5:
Add a group between the slug and the skeleton surface. Then, add slider mates between the slug and origin as well as the ball and the origin. If you leave them as cylindrical mates, the solver can get confused from the spare degrees of freedom and it will lock up as soon as you show the model to someone important (of course, it will resume functioning once the important person has left the room). Optionally add a limit to the slug's motion to keep the model from flying apart and turning angry.
Step 6:
Sit back and relax, and spend 5 minutes playing with the assembly, completely trapped by its mesmerizing motion, until you remember you have three problem sets due on Tuesday and you really wanted to get them done by tonight so that you could have free time to work on doing the lab, tutorial, lecture, and writing sections of your classes over the weekend (since you spent too much time using onshape during the week and now there's a pile of work to do...)
Hope this helps, and have a great weekend!
@alnis is my personal account. @alnis_ptc is my official PTC account.