ME2120 - Fall 2025
Overview
Ryan Cooper reviews how to model a four-bar linkage with vector loop constraints, then differentiates those constraints to relate the input crank speed to the other link angular velocities. He demonstrates a 2-by-2 linear system solved with NumPy in nanoHUB, using an input speed of 10 rad/s, while working through sign and arithmetic errors and asking students to verify the provisional numerical results.
Key takeaways
- A four-bar linkage’s connected geometry can be represented with a vector loop, converting the physical constraint into equations that relate link angles.
- Differentiating the position constraints yields two scalar velocity equations, using sine and cosine components to solve for two unknown link angular velocities.
- Relative link directions must be calculated from position differences such as RB minus RA; using an absolute point position can give the wrong angle components.
- The angular-velocity equations form a 2-by-2 linear system, A x = b, which can be solved efficiently with NumPy in a nanoHUB workspace.
- Sign errors can produce implausible results, so check each component against the actual direction of travel and compare calculated speeds with the 10 rad/s input and linkage dimensions.
- The worked numerical solution remains provisional: Cooper changes signs and coefficients while debugging and tells students to verify the answer rather than rely on the displayed values.
Chapters
- Ryan Cooper identifies the central task as translating the connected links at O, A, B, and C into equations that predict how angles 2 and 3 respond to angle 1.
- Differentiating time-dependent position constraints produces velocity constraints relating the links’ angular speeds.
- Cooper notes that special geometries can make one link’s angular velocity zero, so the linkage dimensions and configuration matter.
- Point A is represented by the position vector with components L1 cos(theta1) and L1 sin(theta1).
- The example gives A coordinates of approximately 0.2 along i and 0.146 along j, which can be divided by L1 to obtain the angle’s cosine and sine.
- For link 2, Cooper uses the relative vector from A to B, calculated as RB minus RA, rather than treating RB itself as the link direction.
- Cooper constructs link 3’s direction from the relative position of B and C, emphasizing that component signs depend on the chosen travel direction.
- Differentiating the vector constraints gives two scalar equations, one involving sine components and the other cosine components, with theta1, theta2, and theta3 angular velocities.
- The worked example sets the input crank speed theta1 dot to 10 rad/s and uses the geometry to form two equations in the unknown theta2 dot and theta3 dot.
- Cooper rearranges known terms to express the system as A times x equals b, where x contains theta2 dot and theta3 dot.
- He enters a 2-by-2 coefficient array and a two-entry right-hand-side array in NumPy using a nanoHUB workspace.
- The matrix approach lets him change coefficients and recompute quickly, rather than repeatedly substituting one angular velocity into the other equation.
- Initial computations produce implausibly large angular velocities, prompting Cooper to recheck the sine and cosine components, coefficient values, and signs.
- He uses the 10 rad/s input and the linkage’s approximate dimensions as a reasonableness check, rejecting a result near 100 to 280 rad/s as suspicious.
- Cooper revises signs and coefficients during the calculation, but does not present the final values as verified; he explicitly asks students to check the arithmetic and expected rotation directions.
- Cooper explains that the same two velocity equations apply to the next linkage problem, with new geometry substituted into the sine and cosine terms.
- For the next setup, he gives theta1 dot as 10 rad/s and L1 as 0.25 m as starting values for students to use.
- He asks students to solve the new case independently and track signs carefully, noting that theta2 may change little while theta3 may move more noticeably.
Transcript excerpt
0:02 Hello. I'm starting the stream. I'm making sure that I actually have the stream started. So, let's go over to live. Says I'm live and I can see my own stream. I won't be able to check the chat just because everything's all on one window. I don't have like two computers going on. Now, we have my infinite scrolling over there. So, I'll close this out. We'll minimize it for now. And we're coming back to what I wanted to do was kind of wrap up this. We were working on our four bar linkage. And really to me, the most important thing we did was go through
0:49 this step of like what how do I describe constraints with vectors? And really that's what we were doing here is taking taking a um taking an understanding I'm just making sure that I'm muted so I'm not listening to myself. There we go. How do I take my like kind of intuitive understanding of like yes, these links at all at positions O, A, B, and C, they're all connected together, but how do I turn that into a math a math equation where I can start doing some some analytical work like actually predicting based on where angle one is, how do angles two and three respond?
1:38 So to me that's the most important part. From there we start getting into like trigonometry definition like okay here is the position based on angle and then we start dealing with now we take derivative derivatives of that. Um we remember the product rule we came up with uh kind of a general definition for like hey look we have these functions that are functions of time. If I take a derivative, I need both partial with that x and derivative of the x.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Professor Ryan C. Cooper.