WOLFRAM SYSTEM MODELER

JoystickReturnTrajectory

Model simulating response of three joystick designs to circularly varying test force.

Diagram

Wolfram Language

In[1]:=
SystemModel["IndustryExamples.ConsumerProducts.Joystick.JoystickReturnTrajectory"]
Out[1]:=

Information

 

Joystick Design: Return Trajectory

 

Introduction

This model compares the return trajectory of three analog joysticks after being suddenly released after being displaced from the center equilibrium position. Each joystick has a handle re-centering mechanism based on a symmetrical arrangement of a different number of tension springs.

View the model diagram for this model.

The other model in this example is JoystickForceResponse, which compares the response of the three joysticks to a circularly varying test force.

 

Hierarchical Modeling

The joystick model is constructed hierarchically. Double-click on a component such as fourSpringReturn1 to see its model diagram. Inside fourSpringReturn1 double-click on one of the tension springs to see its model diagram, and so on:

hierarchical

 

Simulation & Animation

To simulate the model and view a 3D animation of it, follow the steps below:

  • Click the simCenter button in the top-right corner.
  • When the build is finished, click the Simulate button simulate.
  • Click the Animate button animate.
  • Use your mouse or trackpad to drag the animation into a good angle, and zoom in with your scroll wheel or by using the trackpad. Then click the play button to play the animation.
  • Change the Time Scale at the bottom of the animation window to 0.1 to watch the joystick in slow motion.

The animation shows the trajectory of the joystick handle as it springs back after being suddenly released from a position away from the center equilibrium:

returnTrajectoryAnimation

Note that the handle does not return along a linear trajectory. The joysticks with a larger number of symmetrically spaced springs (four or six) follow a path that is more nearly linear.

 

Visualization

After simulating the model, look at the stored plots to see parametric plots of the path along which each joystick returns.

The parametric plots look like this:

parametricPlotsReturnTrajectory

You can see that the six-spring arrangement leads to the most linear return trajectory.

By simulating the other model in this example, JoystickForceResponse, you can also obtain the following parametric plots of the response of each joystick to a circularly varying test force:

parametricPlotsForceResponse

You can see that the-six spring arrangement leads to the most circular force response.

 

Parameters (2)

initialAngles

Value: {0.5, 0.1}

Type: Angle[2] (rad)

Description: Initial angles of the joysticks, first rotating aroung the X-axis and then rotating around the Y-axis.

springConstants

Value: 100

Type: TranslationalSpringConstant (N/m)

Description: Base spring constant of the joystick springs.

Components (23)

world

Type: World

joystickJoint1

Type: JoystickJoint

bodyCylinder1

Type: BodyCylinder

bodyCylinder2

Type: BodyCylinder

threeSpringReturn1

Type: ThreeSpringReturn

fixedTranslation1

Type: FixedTranslation

fixedTranslation2

Type: FixedTranslation

fourSpringReturn1

Type: FourSpringReturn

bodyCylinder3

Type: BodyCylinder

bodyCylinder4

Type: BodyCylinder

joystickJoint2

Type: JoystickJoint

fixedTranslation3

Type: FixedTranslation

joystickJoint3

Type: JoystickJoint

bodyCylinder5

Type: BodyCylinder

bodyCylinder6

Type: BodyCylinder

sixSpringReturn1

Type: SixSpringReturn

fixedTranslation4

Type: FixedTranslation

fixedTranslation5

Type: FixedTranslation

fixedShape21

Type: FixedShape2

fixed1

Type: Fixed

fixedTranslation6

Type: FixedTranslation

fixedTranslation7

Type: FixedTranslation

fixedTranslation8

Type: FixedTranslation